[Samba] Adding computer account - username could not be found
John H Terpstra
jht at samba.org
Tue Mar 2 03:09:49 GMT 2004
On Mon, 1 Mar 2004, flinchlock wrote:
> > > add user script = /usr/sbin/useradd -d /dev/null -g machines -c
> > "machine
> > > account" -s /bin/false -M %u
> >
> > This script must be failing.
> >
> > Andrew Bartlett
>
> For What It Is Worth, my SuSE 'useradd' does NOT have "-M".
On SuSE that option it called "-m" as shown below.
Standards are wonderful things! There are so many to choose from. :)
- John T.
>
> I have seen LOTS of example "add user script" settings, and lots of
> them have "-M"????
>
> Usage: useradd ...
> useradd - create a new user
>
> -c comment Set the gecos field for the new account
> --show-defaults Print default values
> --save-defaults Save modified default values
> -D binddn Use dn "binddn" to bind to the LDAP directory
> -d homedir Home directory for the new user
> -e expire Date on which the new account will be disabled
> -f inactive Days after a password expires until account is
> disabled
> -G group,... List of supplementary groups
> -g gid Name/number of the users primary group
> -k skeldir Specify an alternative skel directory
> -m Create home directory for the new user
> -o Allow duplicate (non-unique) UID
> -P path Search passwd, shadow and group file in "path"
> -p password Encrypted password as returned by crypt(3)
> -u uid Force the new userid to be the given number
> -r, --system Create a system account
> -s shell Name of the user's login shell
> --service srv Add account to nameservice 'srv'
> --help Give this help list
> --usage Give a short usage message
> -v, --version Print program version
> Valid services for --service are: files, ldap
>
--
John H Terpstra
Email: jht at samba.org
More information about the samba
mailing list