Michiel van Es
2005-Feb-21 14:46 UTC
[Centos] how to change default shell when using adduser/useradd
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? Thanks in advance for any help. -- Michiel
Alexander Dalloz
2005-Feb-21 14:56 UTC
[Centos] how to change default shell when using adduser/useradd
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 -- Alexander Dalloz | Enger, Germany | new address - new key: 0xB366A773 legal statement: http://www.uni-x.org/legal.html Fedora GNU/Linux Core 2 (Tettnang) on Athlon kernel 2.6.10-1.14_FC2smp Serendipity 15:55:04 up 3:03, 17 users, 2.52, 1.61, 1.05
Mark Spieth
2005-Feb-21 14:57 UTC
[Centos] how to change default shell when using adduser/useradd
/etc/default/useradd On Mon, 2005-02-21 at 08:46, 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? > > Thanks in advance for any help.
Matt Bottrell
2005-Feb-21 14:57 UTC
[Centos] how to change default shell when using adduser/useradd
adduser -s /bin/false loginname if the user is already created... you can use chsh to change their shell. ie: chsh -s /bin/false loginname Refer to useradd(8) manual page. On Mon, 21 Feb 2005 15:46:53 +0100, Michiel van Es <michiele at info.nl> 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? > > Thanks in advance for any help. > -- > > Michiel > _______________________________________________ > CentOS mailing list > CentOS at caosity.org > http://lists.caosity.org/mailman/listinfo/centos >
Tru Huynh
2005-Feb-21 15:07 UTC
[Centos] how to change default shell when using adduser/useradd
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