Problem
I am unable to add Samba machine accounts with dollar signs($), either through scoadmin or with useradd.
Cause
The Unix user utilities were not designed to handle the $ character.
Solution
This has been reported to SCO Engineering and was fixed in UnixWare 7.1.4 and 7.1.3 Maintenance Pack 2.
As a workaround, follow the steps below to add an account called 'machine$'.
For UnixWare or OpenUNIX:1) add the account without the $
useradd machine (or with SCOAdmin Account Manager)2) using your favorite editor, edit the files: /etc/passwd and /etc/shadow manually adding the $ at the end of account name machine.
3) Update the security database with these commands:
cd /etc/security/ia
rm audit
auditcnv
creatiadb4) You should now be able to set a password for this account: passwd machine$
For OpenServer:1) add the account without the $
useradd machine (or with SCOAdmin Account Manager)2) using your favorite editor, edit the files: /etc/passwd and /etc/shadow manually adding the $ at the end of the account name.
3) Update the security database with these commands:
cd /tcb/files/auth/
cd m (Note: use the first character of the account name)
sed 's/machine/machine\$/' machine > machine\$
rm machine
/tcb/bin/authck -ay4) You should now be able to set a password for this account: passwd machine$
NOTE: WARNING: accounts added in this manner cannot be managed by SCOAdmin
Account Manager and may cause other utilities to break. See also
useradd(ADM), useradd(1M)