![](https://seccdn.libravatar.org/avatar/ba8a7ce3d58568440e41b612dbef454d.jpg?s=120&d=mm&r=g)
2 Nov
2000
2 Nov
'00
12:43
On Thu, 2 Nov 2000, Kis-Szabo Andras wrote: hi,
Hi,
#!/bin/sh
echo Sorry you've no shell here :-( echo Contact root@x.z.y
sleep 5 ... and set /bin/nologin in /etc/passwd
use 'ksh' with traps, or the C-code with some extension: deny the signals! Why not using standard solutions? :)
It is very likely that bugs slip in when you begin to write more complex code yourself. And a loginshell should be written carefully imho. bye, Sebastian