The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Prevent users logging in as root Sepia SUN Solaris 3 06-05-2008 10:45 AM
What change in freeBSD OS to allow root logging using ssh? 100days UNIX for Advanced & Expert Users 5 01-19-2006 04:39 PM
how to access root priveliges if root password is lost wojtyla Linux 1 02-18-2005 03:24 AM
Run non-root script as root with non-root environment bubba112557 UNIX for Dummies Questions & Answers 2 12-02-2004 09:39 PM
Logging in as root on SuSE 9.1 CTroxtell21 Linux 10 11-10-2004 11:19 PM

Closed Thread
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 03-08-2002
Registered User
 

Join Date: Feb 2002
Posts: 8
Logging in and then su to root

We have several people that log in using root. What I need to do is have everyone to log in using there own account then su to root. How would I do this. We have aix 4.2
Forum Sponsor
  #2  
Old 03-08-2002
killerserv's Avatar
Unix Predator
 

Join Date: Dec 2000
Location: Phoenix, AZ
Posts: 670
Cant understand your question...

Quote:
We have several people that log in using root. What I need to do is have everyone to log in using there own account then su to root
Are you trying to say everyone login their own password and also use su root login? su command can be usen by anyone having to know the root password are you saying that you want to prevent that login ? Please re-define your question.
  #3  
Old 03-08-2002
Registered User
 

Join Date: Feb 2002
Posts: 8
hello,
thanks for your reply ,
yes, it will be helpful for me to prevent them to use su command
.is there any way
  #4  
Old 03-08-2002
killerserv's Avatar
Unix Predator
 

Join Date: Dec 2000
Location: Phoenix, AZ
Posts: 670
First of all the su command can/must be used by previeleged users ie. root. Frequent change of password must be done to obtain maximum security between the server site and client side.

one way to do it is to add a script to either /etc/profile or the particular user's .profile that tests to restrict the user. Something like this in /etc/profile will work:

IAM=`who am i | cut -d" " -f1`
COUNT=`w | cut -d" " -f1 | grep "^$IAM$" | wc -l`
[ $COUNT -gt 1 ] && exit 0


Not sure whther that command works or not but one thing for suggestion. Do not disable the password. Changing the password will do (just an advise). In case of problem then your user might face some problem.
  #5  
Old 03-08-2002
LivinFree's Avatar
Goober Extraordinaire
 

Join Date: Jul 2001
Location: Portland, OR, USA
Posts: 1,584
Wait, your first post says that people are curretly logging in as root, and that you want them to log in as themselves and use su to get root.

Your second post says that you don't want them using su.

I'm lost.

OK... lets see...

If you don't want people to log directly in as root, edit the /etc/securetty file (different for some versions of Unix - post back with which Unix you're using, and we can help you).

If you want to limit the people who can use su, you could change the group on it to something else (wheel is very common), and remove the rights for everyone else, so that only those in the wheel group can execute the su command. su does not have to be run by a priveleged user, but it's a good idea to limit those who can use it to prevent abuse and brute force attempts.

If you don't want su either, look into sudo. It gives you the ability to limit what users can execute which commands as superuser.

If none of these satisfy your question, please post back with exactly what you need.
  #6  
Old 03-08-2002
rwb1959's Avatar
Registered User
 

Join Date: Aug 2001
Location: Virginia, USA
Posts: 438
Here's a link that may help.
It gives you a "checklist" of things to
look for and possibly correct.

http://www.cop.vt.edu/unix/aix.security.html
Google The UNIX and Linux Forums
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 09:15 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0