Re: Adduser help

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



Robert Moskowitz wrote:
Alfred von Campe wrote:
On Mar 9, 2007, at 14:39, Robert Moskowitz wrote:

at http://wiki.openpbx.org/tiki-index.php?page=Easy+route+to+building+OpenPBX.org

there is the following adduser command:

adduser --no-create-home --ingroup openpbx --disabled-password --disabled-login openpbx

This does NOT seem to be the right format for Centos. So far, using man, I have come up with;


adduser -M -g openpbx

What else do I need?

I think that --disabled-password is the default if you don't specify a password, and to disable logins you can use "-s /sbin/nologin" to set the account's shell.
Centos is still not happy:

[root@openpbx ~]#adduser -M -g openpbx -s /sbin/nologin
usage: adduser [-u uid [-o]] [-g group] [-G group,...]
[-d home] [-s shell] [-c comment] [-m [-k template]]
[-f inactive] [-e expire ] [-p passwd] [-M] [-n] [-r] [-l] name
adduser -D [-g group] [-b base] [-s shell]
[-f inactive] [-e expire ]
[root@openpbx ~]#


you didn't specify the user account.   try...

   # useradd -M -g openpbx -s /sbin/nologin openpbx

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[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