Chris Cranford wrote:
You probably have not set the suid bit on the su command, so it inherits root privledges. Type "ls -l `which su`", and you should see something like:I have installed su and I'm trying to use it from a secondary userid "cranfoch" to su to root. I have tried both "su" and "su -" and I've entered the "root" user password correctly; however it still reports "su: incorrect password". Can anyone explain to me what I haven't done to get su to allow my user to change roles to "root".
-rwsr-xr-x 1 root root 18452 Jul 23 2001 /bin/su
^
Note the "s", which indicates the program is suid.
You can add the suid bit to the file with the chmod command:
chmod u+s /bin/su
...or just set all the permissions at once, with:
chmod 4755 /bin/su
--
Charles Steinkuehler
[EMAIL PROTECTED]
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
------------------------------------------------------------------------
leaf-user mailing list: [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user
SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html
