Date: 15 Dec 2002 11:35:25 -0600 From: Craig Boston <craig@xfoil.gank.org> To: current@freebsd.org Subject: su(1) problem on -current Message-ID: <1039973731.751.11.camel@darth-laptop>
next in thread | raw e-mail | index | archive | help
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 majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1039973731.751.11.camel>