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

Re: Root's Shell



I use chpass to edit the default shell which writes it back happily to master.passwd and it seem to change it for me.  Editing directly never worked for me, I guess you have to run pwd_mkdb first?

On Friday, March 2, 2001, at 12:44 AM, Jan Johansson wrote:

> 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). 
>  
>  
>  
>  

--Tim