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

Tru Huynh tru at pasteur.fr
Mon Feb 21 15:07:05 UTC 2005


On Mon, Feb 21, 2005 at 03:46:53PM +0100, Michiel van Es wrote:
> Hi,
> 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(8)
       useradd ...
               [-s shell]
                
Cheers,

Tru



More information about the CentOS mailing list