Re: Compromise of the nobody account?




In article <hbxnj.31020$yQ1.9177@edtnps89>,
Unruh <unruh-spam@xxxxxxxxxxxxxx> writes:
|>
|> >|> My "su" has a "-m" option that allow root to change to an account with
|> >|> an invalid (or exit immediatly) shell.
|>
|> >One can argue for hours about whether it should do nothing (/bin/true),
|> >flag failure (/bin/false), be non-executable (/dev/null), not exist
|> >or execute "kill -9 0". All have their points.
|>
|> Has anyone ever suggested the last options?

Well, didn't I just do just that? :-)

More seriously, which ones are you asking about? /dev/null and
non-existent files, yes. I tend to favour the former, and have
seen the latter - in particular, they block access via some forms
of FTP, which check the accessibility and executability of the
login shell. I believe that there are some client side programs
that behave similarly.

"kill -9 0" I have not seen, but can think of reasons why it could
be useful. I doubt that they outweigh its disadvantages, though.


Regards,
Nick Maclaren.
.



Relevant Pages

  • 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)
  • Re: root shell
    ... >was invalid. ... >some workaround for things like this? ... If a non-root user could change root's shell to an arbitrary value ...
    (comp.unix.solaris)
  • Re: handling perl string containing @ and $ with system function
    ... The simplest way would be to bypass the shell: ... perldoc -f system ... (remove .invalid and reverse each component for email address) ...
    (comp.lang.perl.misc)
  • rlogin TIOCFLUSH problems
    ... I am getting the following problem during rlogin sessions. ... it prints "ioctl TIOCFLUSH: Invalid arguments". ... Whenever I start a new shell, or exit from a shell, it just waits ...
    (comp.unix.solaris)