Re: root shell

From: all mail refused (elvis_at_notatla.org.uk)
Date: 08/03/04


Date: 3 Aug 2004 09:25:50 GMT

In article <20040803102429.1dd6ee48.Levente.Kovacs@cern.ch>,
Levente KOVACS wrote:

>By mistake, I added to /etc/passwd the root shell as /sbin/bash, which
>was invalid.

>Is there any other way to specify root shell by an ordinary user? Or
>some workaround for things like this?

If a non-root user could change root's shell to an arbitrary value
that would obviously enable stealing root access. If I found such
a thing I'd want it abolished.

Sounds like you weren't using passwd or vipw to make the change.

-- 
Elvis Notargiacomo  master AT barefaced DOT cheek
http://www.notatla.org.uk/goen/


Relevant Pages

  • Re: Was bedeutet [[ expression ]]
    ... die Nutzung von unportablen Konstruken, ... funktionieren als dieser Workaround, zumindest ist das meine ... Siehe ISO/IEC Standard 9945 sowie IEEE Standard 1003.1-2001 aka Single ... UNIX Specification Version 3 Shell & Utilities -> test ...
    (de.comp.os.unix.shell)
  • Re: Debian & FD Limit
    ... > kind of control shouldn't belong to the shell. ... > better to have a config file for this or a control program. ... I easily set the ulimit to a million. ... and scratching and calling it a "workaround". ...
    (comp.os.linux.setup)
  • Re: Debian & FD Limit
    ... it by myself: workaround. ... > 1) you can't apparently change the limit for the process you are in. ... > then exit the shell, you find that the cd didn't affect your current ... limit command for the shell itself. ...
    (comp.os.linux.setup)
  • Re: Console redirected to COM1
    ... >>to use it for the shell. ... debug printing and load the serial driver for it. ... This is what I get on boot on COM1. ... how I got an invalid handle. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: shell variables
    ... the shell doesn't export ... Testing: HISTSIZE ... WARN: pxfgetenv, Invalid argument ...
    (comp.lang.fortran)