Xref: utzoo unix-pc.general:6107 comp.sys.att:10439 Path: utzoo!telly!lethe!becker!bdb From: bdb@becker.UUCP (Bruce D. Becker) Newsgroups: unix-pc.general,comp.sys.att Subject: Re: my ROOT is DEAD ! What am I going to do ?! Message-ID: <39028@becker.UUCP> Date: 21 Sep 90 01:52:02 GMT References: <2633@ttardis.UUCP> Organization: G. T. S., Toronto, Ontario, Canada Lines: 39 In article <2633@ttardis.UUCP> rlw@ttardis.UUCP (Ron Wilson) writes: |In article <1990Sep18.035609.9248@chinet.chi.il.us>, floydd@chinet.chi.il.us (Floyd Davidson) writes: |>In article <1070@das13.snide.com> dave@das13.snide.com (das13!dave) writes: |>>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. |> |>The default in /etc/password can be set to a shell script, and in some |>cases it is very handy. You do not get the services of /etc/profile |>or a $HOME/.profile, instead you get exactly what you put in the shell |>script. | |It's been my experience that login and su insist on the shell for root be |/bin/sh You can login to a shell script from /etc/passwd - however "su -" won't work. "su" doesn't care as long as it's a program, but "su -c" will complain if it isn't "/bin/sh". Interestingly enough, this doesn't appear to be the case from within a crontab. I've been running the "root" passwd entry with /bin/ksh for some months without hassles so far. When I "su root -c ..." from any interactive shell, su complains: "Non-standard shell - denied". ...But the same line inside crontab works fine... Cheers, -- ,u, Bruce Becker Toronto, Ontario a /i/ Internet: bdb@becker.UUCP, bruce@gpu.utcs.toronto.edu `\o\-e UUCP: ...!uunet!mnetor!becker!bdb _< /_ "I still have my phil-os-o-phy" - Meredith Monk