Try
su - nobody #(pristine account)
then type :<RET>
then type ESC . ESC .
Whammo! The shell dies!

The second ESC . acts like ^D.

# su - nobody
No directory, logging in with HOME=/
nobody@jidanni5:/$ cd /tmp
nobody@jidanni5:/tmp$ script
Script started, file is typescript
nobody@jidanni5:/tmp$ :
nobody@jidanni5:/tmp$ :Script done, file is typescript
$ cat -v typescript
Script started on Thu Feb 20 13:10:28 2014
nobody@jidanni5:/tmp$ :^M
nobody@jidanni5:/tmp$ :
Script done on Thu Feb 20 13:10:33 2014
nobody@jidanni5:/tmp$ echo $BASH_VERSION
4.3.0(1)-rc2

Reply via email to