Technical article 118989

How can I create Samba machine accounts which require a trailing '$'?

OpenServer 5.0.5OpenServer 5.0.6UnixWare 7.0.0UnixWare 7.0.1UnixWare 7.1.0UnixWare 7.1.1UnixWare 7.1.2UnixWare 7.1.3UnixWare 7.1.4

Written · Last revised

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
   creatiadb

4) 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 -ay

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

From the Xinuos technical article database, record 118989. Reproduced with permission. The original is at www.sco.com/ta/118989, which is reachable but blocked from search engines.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.