[Samba] Adding computer account - username could not be found

flinchlock fst6x7v02 at sneakemail.com
Tue Mar 2 02:27:57 GMT 2004

> > 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".

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
  -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

More information about the samba mailing list