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

Re: Root's Shell



On Thu, Mar 01, 2001 at 08:34:37AM -0800, Alex Le Fevre wrote:
>How can I change root's default shell? I tried editing
>/etc/passwd, to no avail. I've grep'ed /root for csh (the
>current default shell), and that had nothing.  I've looked in
>.profile, .login, and .klogin, and I see nothing in there. Where
>is it?

Whatever you do DO NOT CHANGE ROOTS SHELL!! you will shoot
yourself in the foot someday.

You have many alternatives.

Learn to type, you can use "ksh", "exec ksh" or such.

Make a new user with uid 0 and have the alternative shell for
that user.

Use sudo, "sudo /bin/ksh"

If you still whish to change the root shell you can use vipw(8).