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

Nicolas François nicolas.francois at centraliens.net
Thu Apr 17 11:47:15 UTC 2008


tags 476519 unreproducible
thanks

Hello,

On Thu, Apr 17, 2008 at 05:23:48PM +0800, jidanni at jidanni.org wrote:
> 
> Sometimes just after I do "su - nobody", I get instantly logged back out.
> It's like I accidentally sent a ^D to the shell.

I could not reproduce it in my terminals, even in a few 1000s of tries.

Could you try with the attached expect script?

Best Regards,
-- 
Nekral
-------------- next part --------------
#!/usr/bin/expect

set timeout 2
expect_after default {puts "\nFAIL"; exit 1}

spawn /bin/bash
expect "# "

for {set i 1} {$i < 2000} {incr i} {
	send "su - nobody\r"
	expect "$ "
	send "\r"
	expect "$ "
	send "exit\r"
	expect "\nlogout"
	expect "# "
}

close
puts "\nPASS"
exit 0


More information about the Pkg-shadow-devel mailing list