[Pkg-shadow-devel] Bug#476519: Bug#476519: su - nobody sometimes logged back out instantly

jidanni at jidanni.org jidanni at jidanni.org
Thu Apr 17 12:45:00 UTC 2008


> Do you have any signal handling customization in your shell rc files?
> What does stty -a say (I'm thinking of tostop)?

# stty -a
speed 38400 baud; rows 39; columns 111; line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>; eol2 = <undef>; swtch = <undef>;
start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W; lnext = ^V; flush = ^O; min = 1; time = 0;
-parenb -parodd cs8 -hupcl -cstopb cread -clocal -crtscts
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon -ixoff -iuclc -ixany -imaxbel iutf8
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt echoctl echoke
# trap
#

Plus su - nobody shouldn't read any rc files, as nobody has no home
directory to put them.

In /var/log/auth.log, note the seconds:
Apr 17 20:36:30 jidanni1 su[11105]: Successful su for nobody by root
Apr 17 20:36:30 jidanni1 su[11105]: + pts/1 root:nobody
Apr 17 20:36:30 jidanni1 su[11105]: pam_unix(su:session): session opened for user nobody by jidanni(uid=0)
Apr 17 20:36:30 jidanni1 su[11105]: pam_unix(su:session): session closed for user nobody
Apr 17 20:36:33 jidanni1 su[11109]: Successful su for nobody by root
Apr 17 20:36:33 jidanni1 su[11109]: + pts/1 root:nobody
Apr 17 20:36:33 jidanni1 su[11109]: pam_unix(su:session): session opened for user nobody by jidanni(uid=0)
Apr 17 20:36:34 jidanni1 su[11109]: pam_unix(su:session): session closed for user nobody

Here we see me getting logged off the same second I login -- bad. Then three
seconds later I hit ^P RET and one second after that ^D -- normal.





More information about the Pkg-shadow-devel mailing list