Re: remote su root: SORRY

2005-11-23 Thread Otto Moerbeek
On Wed, 23 Nov 2005, Paul Yiu wrote: Hi Otto, I would like to see the output of userinfo pyiu. Added to that, the output of getcap -f /etc/login.conf class, where class is the login class of teh user, as reported by userinfo. login pyiu passwd WhatEverWasHere uid 1002 groups

Re: remote su root: SORRY

2005-11-23 Thread Chad M Stewart
On Nov 20, 2005, at 10:02 PM, Paul Yiu wrote: Hi Guys, Hope you guys can help on this ssh issue has been posted in 2004. Thank you in advance. I hit the same ssh problem with openbsd 3.7. I got serial console set up, I got a user which assigned in a wheel group, when I log in using ssh

Re: remote su root: SORRY

2005-11-23 Thread Paul Yiu
Hi Chad, Yes, with sudo su - worked ok, great thanks. I really want su instead of sudo su - due to other admin in my company I want to keep this consistant. Any idea what causes the su failed? I got many openbsd server running and they are with same config but able to su without this

Re: remote su root: SORRY

2005-11-23 Thread Paul Yiu
Sigh. Exact details please. Does su print Sorry? Or anything else? Some things you can do to isolate the problem: 1. Login on console as pyiu and try to su. Yes that worked ok inserial console. $ su Password: # 2. When logged in, ssh to localhost as pyiu and then try to su It failed to su.

Re: remote su root: SORRY

2005-11-22 Thread Paul Yiu
Hi Otto, I would like to see the output of userinfo pyiu. Added to that, the output of getcap -f /etc/login.conf class, where class is the login class of teh user, as reported by userinfo. login pyiu passwd WhatEverWasHere uid 1002 groups users wheel change NEVER class gecos Paul

Re: remote su root: SORRY

2005-11-21 Thread Otto Moerbeek
On Mon, 21 Nov 2005, Lars Hansson wrote: On Mon, 21 Nov 2005 14:02:17 +1100 Paul Yiu [EMAIL PROTECTED] wrote: /etc/passwd pyiu:*:1002:10:P Yiu:/home/pyiu:/usr/local/bin/bash /etc/group wheel:*:0:root,pyiu 10 != 0 Indeed, but what does that have to do with the problem? You do not

Re: remote su root: SORRY

2005-11-21 Thread Lars Hansson
On Mon, 21 Nov 2005 09:37:17 +0100 (CET) Otto Moerbeek [EMAIL PROTECTED] wrote: Indeed, but what does that have to do with the problem? You do not have to have wheel as primary group to be able to use su(1). Indeed, I'm totally wrong. I missed the puyi at the end of the group entry. Just

Re: remote su root: SORRY

2005-11-20 Thread Paul Yiu
Hi Guys, Hope you guys can help on this ssh issue has been posted in 2004. Thank you in advance. I hit the same ssh problem with openbsd 3.7. I got serial console set up, I got a user which assigned in a wheel group, when I log in using ssh as a user and try to su. System said sorry and I

Re: remote su root: SORRY

2005-11-20 Thread Lars Hansson
On Mon, 21 Nov 2005 14:02:17 +1100 Paul Yiu [EMAIL PROTECTED] wrote: /etc/passwd pyiu:*:1002:10:P Yiu:/home/pyiu:/usr/local/bin/bash /etc/group wheel:*:0:root,pyiu 10 != 0 --- Lars Hansson