Nick Guenther wrote:
On Sun, Nov 29, 2009 at 4:51 PM, phil <philippe.aub...@gmail.com> wrote:
Hello
I have some strange behavior with su in openbsd 4.6,
I have two users root and test, test user is in wheel group with usermod -G
wheel test, when i try to be root with su -
I have the sorry message and in the /var/log/authlog I have :
BAD SU test to root on /dev/ttyp0
I'm sure about the root password, cat from /etc/group show me that test user
is in wheel group.
If I remove the test user and recreate it whith adduser and specify to add
test user in the wheel group I have the same behavior
If I try to get root privilege with su root - I have the same result.
What I do wrong or missing.
Hmm. Try the obvious first: what does groups say about your test user?
User test is in test group like this test:*:1000: and for /etc/passwd
like this test:*:1000:1000:test:/home/test:/bin/ksh
groupinfo test say :
name test
passwd *
gid 1000
members
if I check wheel group test is in wheel group :
name wheel
passwd *
gid 0
members root test
If I check test user I have this :
login test
passwd HASH KEY
uid 1000
group test wheel
change NEVER
.....
What can I check ? because everythink seems OK
Phil