Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 1 Mar 2009 13:51:32 -0500
From:      Jerry McAllister <jerrymc@msu.edu>
To:        Sniper <kkiller@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Root shell
Message-ID:  <20090301185131.GA52432@gizmo.acns.msu.edu>
In-Reply-To: <d2f26f270903010650h243df36bx2ea07d434567633e@mail.gmail.com>
References:  <d2f26f270903010650h243df36bx2ea07d434567633e@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Mar 01, 2009 at 03:50:29PM +0100, Sniper wrote:

> Hi!
> 
> I heard that changing root shell to bash is not good idea, also programing
> in any C shell not applicable. So which shell is the most appropriate for
> root user ?

You can get your tail in a crack if you boot to single user or another
file system like /usr  is not available.    /bin/csh   (which on FreeBSD 
is the same as tcsh)  is always available and a few things are written
so they expect it.

So, leave root alone.   
If you must lower yourself to bash, make another account and set its 
shell to bash.   You can even make an alternate root and make it bash
if you really must work in root.   USe vipw  and copy the toor line
in the passwd file and change the name to something you like and the shell
to bash and the home directory to /root/whatever.
Then set the password for this account
As root do:
  passwd whatever

follow prompts.

You must put the id name on the passwd command or it will change root instead.

I am not necessarily recommending all this, but it is better tham
changing the actual root account's shell.

////jerry


> 
> 
> Regards,
> 
> Jurif
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090301185131.GA52432>