# include main() { /* This came from Dale one day. To recover a system where you can't logon */ /* to root, compile this program in AFS, */ /* rename a.out to something inocuous like ksh (this is so when */ /* you run it, somebody doing a ps -ef won't see a */ /* a descriptive name and know what you're doing) */ /* klog admin to chmod it to 4755 and chown it to root, */ /* then run it. */ setuid(0); system("/usr/bin/ksh"); }