Xref: utzoo unix-pc.general:6073 comp.sys.att:10407 Path: utzoo!attcan!uunet!trac2000!das13!dave From: dave@das13.snide.com (das13!dave) Newsgroups: unix-pc.general,comp.sys.att Subject: Re: my ROOT is DEAD ! What am I going to do ?! Summary: Bummer!! Message-ID: <1070@das13.snide.com> Date: 17 Sep 90 13:01:35 GMT References: <245@geocub.greco-prog.fr> Organization: Snide Inc. - Folcroft, PA Lines: 34 In article <245@geocub.greco-prog.fr>, lath@geocub.greco-prog.fr (Laurent Lathieyre) writes: > > /bin/rootsh is a shell script which make an echo to warn > that you are super-user and make /bin/ksh > /bin/rootsh has the following access rights -rwx------ root users The shell script is your problem. If you aren't running 'sh' or 'ksh', whats going to run your shell script? What you need is a 'C' program! Try this one. Here --------- Snip Here --------- Snip Here --------- Snip Here --------- Snip /* rootsh.c * This program is a front end for ksh. It prints a warning and then execs * Korn shell. */ #include main() { (void)printf("Warning: You are running a root shell.\n"); (void)execl("/bin/ksh", "ksh", 0); } Here --------- Snip Here --------- Snip Here --------- Snip Here --------- Snip To undo what you've done to /etc/passwd you probably have to boot from floppy unix and edit /etc/passwd. DAS -- David Snyder @ Snide Inc. - Folcroft, PA UUCP: ..!uunet!trac2000!das13!dave INTERNET: dave@das13.snide.com