phil wrote:
> Alexander Hall wrote:
>> Nick Guenther wrote:
>>  
>>> On Sun, Nov 29, 2009 at 4:51 PM, phil <[email protected]> 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?
>>>     
>>
>> Also, the new group does not apply to an already logged in user. Use
>> id(1) to see if you are who you seem to be.
>>
>>   
> I do some more test, if I use the test user directly on the main console
> everythink is ok
> I can connect with test user and I can do an su - and be root
> 
> If I do the same think from a linux term after ssh t...@bazard I can
> connect with user test but I cannot  be gain root privilege with an su -
> 
> If I run id from linux term after an ssh t...@bazard I have this :
> $ id
> uid=1000(test) gid=1000(test) groups=1000(test), 0(wheel)
> $
> If I run id directly from main console I have the same thing :
> $ id
> uid=1000(test) gid=1000(test) groups=1000(test), 0(wheel)
> $
> 
> Phil

Then I must say I _really_ think you have an issue typing the password,
as in different keyboard layout or so.

Reply via email to