On Tue, 2 May 2006, Cristiano Deana wrote:

> Hi,
> i'm new on OpenBSD. I just installed 3.9 (one week ago sources) and i got
> this:
> 
> $ uname -rs
> OpenBSD 3.9
> $ su
> Password:
> you are not in group wheel
> Sorry
> $ whoami
> cris
> $ id cris
> uid=1000(cris) gid=0(wheel) groups=0(wheel)
> $ grep cris /etc/passwd
> cris:*:1000:0:Cristiano Deana:/home/cris:/bin/ksh
> $ grep wheel /etc/group
> wheel:*:0:root
> 
> Notes:
> * 'sudo' correctly found me in 'wheel' group
> * if i add 'cris' in /etc/group at wheel's line it works
> * adding 'cris' user i have choosen 'wheel' group, not a different
> group and then added to wheel
> 
> Thanks in advance for explanations.

See su(1):

It is not sufficient to change a user's /etc/passwd entry to add them
to the ``wheel'' group; they must explicitly be listed in /etc/group. 

        -Otto

Reply via email to