On a laptop running current, I have a problem using the su program
multiple times (nested).

I have two accounts, I'll call them "auser" and "buser".  I use auser
for my everyday activities; it has no special privileges.  buser is a
member of the wheel group.  I don't make auser a member of wheel because
that grants some extra rights (such as reading select log files) that I
don't want my normal account to have.  The following works as expected:

(log in as auser)
$ id
uid=1002(auser) gid=1002(auser) groups=1002(auser)
$ su -
su: Sorry
$

(log in as buser)
$ id
uid=1001(buser) gid=1001(buser) groups=1001(buser), 0(wheel)
$ su -
Password:
#

Okay, that all works fine.  The problem appears when I try to do what
worked on STABLE, and up until about 3-4 months ago, worked on current
as well.

(log in as auser)
$ id
uid=1002(auser) gid=1002(auser) groups=1002(auser)
$ su - buser
Password:
$ id
uid=1001(buser) gid=1001(buser) groups=1001(buser), 0(wheel)
$ su -
su: Sorry
$

So, even though I'm in the wheel group after the first su, it won't let
me su to root (doesn't even prompt for password).  It seems to make no
difference whether I use the -l option to su or not.  Is this PAM
related?

I'm currently using sudo as a workaround, but IMHO this looks like a bug
to me.

Thanks,
Craig


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to