Douglas Muth on 1 Sep 2007 04:57:41 -0000


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] shell script help...

  • From: "Douglas Muth" <doug.muth@gmail.com>
  • To: "Philadelphia Linux User's Group Discussion List" <plug@lists.phillylinux.org>
  • Subject: Re: [PLUG] shell script help...
  • Date: Sat, 1 Sep 2007 00:57:34 -0400
  • Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=WBaQMrUvgRwGXDqe85c8JT2UDHzcru+1Di0O0cybK/DxqlB/eI4brTVspZgS9r9Ta2uc/vlvKFhU4WGHhKBgjfGhd71pzDt+Uf8EUe5on2+mMiFPDXsofpxrguZgWyvwFWmwDCEWvxCIImgbaoz0ivOR2wGmhb48uen7L5D33TI=
  • Reply-to: Philadelphia Linux User's Group Discussion List <plug@lists.phillylinux.org>
  • Sender: plug-bounces@lists.phillylinux.org

On 9/1/07, Mag Gam <magawake@gmail.com> wrote:
[snip]
>
> My question is, if a user changes his shell from bash to ksh to tcsh, I am
> not able to get the output because I have my trap + exit to look at $SHELL.
> Is there any way to disable a user to log into a different shell?

Yes.  Check /etc/shells and the manpage for the "chsh" command. :-)

-- Doug
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug