1834484 Members
3992 Online
110067 Solutions
New Discussion

Re: su problem

 
George Nikoloudis
Occasional Contributor

su problem

hi,
when I am writing su I am getting

daphne:/mnt1/users/gniko>su -
Password:
setgroups: Not owner
setgroups: Not owner
su: Unable to initialize group access list
8 REPLIES 8
John Palmer
Honored Contributor

Re: su problem

Hi,

First off check the owner and permissions of the su command (/usr/bin/su), it should be:-
-r-sr-xr-x 1 root bin

If it's not the above then (as root) run:
chown root:bin /usr/bin/su
chmod 4755 /usr/bin/su

Regards,
John
Dietmar Konermann
Honored Contributor

Re: su problem

Check the perms of /usr/bin/sh.

# ll /usr/bin/su
-r-sr-xr-x 1 root bin 24576 Nov 14 2000 /usr/bin/su*

The suid-root is important!

# chown root:bin /usr/bin/su
# chmod 4555 /usr/bin/su

Best regards...
Dietmar.
"Logic is the beginning of wisdom; not the end." -- Spock (Star Trek VI: The Undiscovered Country)
Robert-Jan Goossens
Honored Contributor

Re: su problem

Dietmar,

correct if i'm wrong but think it shout be

# chmod 4511 /usr/bin/su

Robert-Jan.
Ian Kidd_1
Trusted Contributor

Re: su problem

I think that Dietmar is correct:
-> ls -l /usr/bin/su
-r-sr-xr-x 1 root bin 24576 Aug 6 1998 /usr/bin/su

4 for the setuid-root
5 for r-x owner
5 for r-x group
5 for r-x other

If at first you don't succeed, go to the ITRC
Jeff Schussele
Honored Contributor

Re: su problem

Hi Robert-Jan,

Dietmar's correct /usr/bin/su is 4555.
Remember that to execute something, you have to be able to read it.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Robert-Jan Goossens
Honored Contributor

Re: su problem

Nice Hat Jeff,

Thanks.
Jeff Schussele
Honored Contributor

Re: su problem

Thanks R-J

Yours was & is still my favorite. Cast your spells wisely, my friend.

Cheers,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
George Nikoloudis
Occasional Contributor

Re: su problem

Thanks for the support and response.