Re: [FOCUS] `tcsh' a security risk?

From: Darren Moffat (Darren.Moffat@eng.sun.com)
Date: 09/05/01


Message-Id: <200109052045.f85Kjp9d432285@jurassic.eng.sun.com>
Date: Wed, 5 Sep 2001 13:45:51 -0700 (PDT)
From: Darren Moffat <Darren.Moffat@eng.sun.com>
Subject: Re: [FOCUS] `tcsh' a security risk?
To: focus-sun@securityfocus.com, foster@dim.ucsd.edu


>The "new account" information from a collaborator's system states
>that setting the default shell to tcsh in the passwd file is a
>security risk.

Based on what vulnerability ?

> Since setting the default shell to tcsh in the passwd file is a
> security risk, we ask for people who'd like to use it to add the
> following lines to their .cshrc file:
>
> # if tcsh exists, use it
> if (($shell == /bin/csh) && (-e /usr/local/bin/tcsh)) then
> exec /usr/local/bin/tcsh -l $*
> endif

That is no better than having it in the passwd file.

They only connection I can make is you shouldn't change the shell
of the root user to anything other than /sbin/sh - but this isn't
for security reasons it is for availablity reasons.

--
Darren J Moffat



Relevant Pages

  • Re: [FOCUS] `tcsh a security risk?
    ... `tcsh' a security risk? ... > that setting the default shell to tcsh in the passwd file is a ...
    (Focus-SUN)
  • [FOCUS] `tcsh a security risk?
    ... `tcsh' a security risk? ... Since setting the default shell to tcsh in the passwd file is a ...
    (Focus-SUN)
  • Re: unable to su - to root or to any user on FC3 (solved)
    ... The subject was su-ing to another user in init 1 mode. ... but AIUI you cannot launch another shell when in run level 1. ... While you're in run level one, try running the command "login". ... it doesn't *use* pam or the passwd file for logging in. ...
    (Fedora)
  • Re: Problem with scp and SSH on Arch Linux
    ... OpenSSH does the authentication... ... shell is for the authentication to succeed. ... in the passwd file, or the user's private key matches the public key ... For the scp to succeed, the user needs a working shell, because sshd ...
    (SSH)
  • Re: Recommend Linux Distro, Mail/MTA/FTP daemon?
    ... >>building a separate passwd file, ... The proftpd alternate passwd file structure had to maintained ... Oh, goodness, you don't *give* them shell access. ...
    (comp.os.linux.setup)