[Centos] how to change default shell when using adduser/useradd

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



On Mon, 21 Feb 2005 15:56:27 +0100, Alexander Dalloz <ad+lists@xxxxxxxxx> wrote:
> Am Mo, den 21.02.2005 schrieb Michiel van Es um 15:46:
> 
> > when I use useradd of adduser in CentOS 3 or 4, the default shell a user
> > gets /bin/bash.
> > I want this to be changed to /bin/false for security reasons...
> > How can I accomplish this?
> 
> useradd --help --> -s Shell
> 
> So just use that parameter like "-s /bin/false".
> 
> Alexander

I think what he means to do is not add that parameter each time he
uses `useradd'

I believe the file you want to look for is /etc/default/useradd or somesuch.

Thanks!

-Wes

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux