[Samba] Add machine account
malte at starostik.de
Thu Sep 12 19:05:01 GMT 2002
Check /etc/passwd if the user name really contains the trailing $ (maybe
your shell would have needed adduser MACHINENAME\$), if not, edit
/etc/passwd manually using vipw. You can as well get rid of the
uppercase letters by, erm, using lowercase. Machine names aren't case
Also, you might want to set the home dir to /dev/null, login shell to
/bin/false and primary group to a group dedicated to machine accounts
for that user.
>From: samba-admin at lists.samba.org
>[mailto:samba-admin at lists.samba.org] On Behalf Of Ronald Roeleveld
>Sent: Thursday, September 12, 2002 8:41 PM
>To: samba at lists.samba.org
>Subject: [Samba] Add machine account
>Sorry everyone for asking this stupid question. I want add a system
>account to my debian system. I did it on another machine a couple of
>months ago and it worked fine with this command (I think).
>Iam typing the command: adduser MACHINENAME$
>but I keep on getting this error mssg:
>adduser: Please enter a username consisting of a lower case letter
>followed by lower case letters and numbers. Use the `--force-badname'
>option to allow underscores, and uppercase.
>If I try it again with the --force-badname option, it does add
>it (I think),
>but I still get an error message when typing:
>smbpasswd -a -m MACHINENAME
>and it gives me this error:
>User MACHINENAME$ does not exist in system password file (usually
>/etc/passwd). Cannot add account without a valid local system
>user.Failed to modify password entry for user MACHINENAME$
>Could anyone help me out here?
>To unsubscribe from this list go to the following URL and read the
More information about the samba