Problem with su

Problem with su

Post by Jeremie Kas » Thu, 05 Oct 2000 09:30:43



check the permissions on su(1). they should be:
% ls -l /usr/bin/su
-r-sr-xr-x  1 root  bin  16384 Jun 15 19:15 /usr/bin/su

perhaps the suid bit was removed by accident?
if so, as root
# chmod u+s /usr/bin/su
should fix it.

: Suddenly I'm having a problem using "su" from my regular user account,
: which is part of the "wheel" group.  It worked for a while, but now
: after giving the correct password I just get "Sorry" back.  (There's
: no problem logging directly into the root account.) I'm new to OpenBSD
: and am still learning the various mystical incantations used to maintain
: the system -- what is likely causing this problem?

: --
:   Roger Blake
:   (remove second "g" and second "m" from address for email)

 
 
 

Problem with su

Post by Frank McKa » Fri, 06 Oct 2000 04:00:00


Ya, I tried the same thing on my computer, and it didn't work either, I even
have the user in the 'wheel' group.


> check the permissions on su(1). they should be:
> % ls -l /usr/bin/su
> -r-sr-xr-x  1 root  bin  16384 Jun 15 19:15 /usr/bin/su

> perhaps the suid bit was removed by accident?
> if so, as root
> # chmod u+s /usr/bin/su
> should fix it.


> : Suddenly I'm having a problem using "su" from my regular user account,
> : which is part of the "wheel" group.  It worked for a while, but now
> : after giving the correct password I just get "Sorry" back.  (There's
> : no problem logging directly into the root account.) I'm new to OpenBSD
> : and am still learning the various mystical incantations used to maintain
> : the system -- what is likely causing this problem?

> : --
> :   Roger Blake
> :   (remove second "g" and second "m" from address for email)


 
 
 

Problem with su

Post by Jeremie Kas » Fri, 06 Oct 2000 04:00:00


Are they in wheel according to /etc/group? The line should look like
wheel:*:0:root,jeremie

They must be listed in wheel in /etc/group, not enough for them to have a
primary GID of 0 in the password database.

: Ya, I tried the same thing on my computer, and it didn't work either, I even
: have the user in the 'wheel' group.



:> check the permissions on su(1). they should be:
:> % ls -l /usr/bin/su
:> -r-sr-xr-x  1 root  bin  16384 Jun 15 19:15 /usr/bin/su
:>
:> perhaps the suid bit was removed by accident?
:> if so, as root
:> # chmod u+s /usr/bin/su
:> should fix it.
:>
:>

:> : Suddenly I'm having a problem using "su" from my regular user account,
:> : which is part of the "wheel" group.  It worked for a while, but now
:> : after giving the correct password I just get "Sorry" back.  (There's
:> : no problem logging directly into the root account.) I'm new to OpenBSD
:> : and am still learning the various mystical incantations used to maintain
:> : the system -- what is likely causing this problem?
:>
:> : --
:> :   Roger Blake
:> :   (remove second "g" and second "m" from address for email)

 
 
 

Problem with su

Post by Frank McKa » Fri, 06 Oct 2000 04:00:00


thanks, it worked for me

Frank

> Are they in wheel according to /etc/group? The line should look like
> wheel:*:0:root,jeremie

> They must be listed in wheel in /etc/group, not enough for them to have a
> primary GID of 0 in the password database.


> : Ya, I tried the same thing on my computer, and it didn't work either, I
even
> : have the user in the 'wheel' group.



> :> check the permissions on su(1). they should be:
> :> % ls -l /usr/bin/su
> :> -r-sr-xr-x  1 root  bin  16384 Jun 15 19:15 /usr/bin/su
> :>
> :> perhaps the suid bit was removed by accident?
> :> if so, as root
> :> # chmod u+s /usr/bin/su
> :> should fix it.
> :>
> :>

> :> : Suddenly I'm having a problem using "su" from my regular user
account,
> :> : which is part of the "wheel" group.  It worked for a while, but now
> :> : after giving the correct password I just get "Sorry" back.  (There's
> :> : no problem logging directly into the root account.) I'm new to
OpenBSD
> :> : and am still learning the various mystical incantations used to
maintain
> :> : the system -- what is likely causing this problem?
> :>
> :> : --
> :> :   Roger Blake
> :> :   (remove second "g" and second "m" from address for email)

 
 
 

1. Problems with su

        Often the problem is that the passwd file is missing or has an
invalid field in it.  Any passwd entries after the invalid field will not
be usable.  I would suggest you run the /etc/pwck command which will tell
you about any bad fields in the /etc/passwd file.

        Hope this helps,  most problems we have like this are from this cause.

--
|--------------------------------------------------|
|  Nik Simpson  UUCP :  uunet!ingr!swndn!st_nik!nik|
|  Senior Systems Engineer.     Intergraph UK Ltd. |
|--------------------------------------------------|

2. netscape and postscript file size

3. Problem calling su with parameters

4. How do I change fs block size?

5. Help: Problem with su(C) -- Please read!!

6. Freebsd kernel programming

7. Simultaneous problems with su, gdm, and xfs

8. what is ip forwarding ?

9. Problems with su SOLVED!

10. Problem w/ su to root

11. Help: Problem with su(C) -- Please read!!

12. Problem with su.

13. Help: Problem with su(C) -- Please read!!