Technical article 100045

Why are the UNIX UID's for AFPS users greater than 30000?

OpenServer 5.0.0OpenServer 5.0.2

Written · Last revised

Problem

If an AFPS user is created, its UNIX UID always seems to be greater
than 30000. How can I change this, as my UNIX application cannot
handle a user with as high a UID value?  For example:
(/etc/passwd)
...
stuart:x:41008:50:Advanced Server user:/usr/stuart:/bin/false
...

Cause

AFPS attempts to synchronize AFPS user UNIX account UID values as part of normal account synchronization between a Primary Domain Controller (PDC) and any Backup Domain Controllers (BDCs) in a single AFPS domain. The UNIX user UIDs are set high to ensure there is less chance of a UID conflict between the AFPS user accounts while doing this. If a conflict is found, the next available UID will be used.

Solution

Log on to the system as the "root" user and stop the AFPS server:

#net stop server

Edit the AFPS control file, "/usr/net/servers/lanman/lanman.ini", and add entries for "maxuid" and "minuid" in the [uidrules] section. For example:

... ... [ workstation ] domain=ASU1_DOM [uidrules] minuid=500 maxuid=1000 [ netlogon ] ... ...

Alternately, use srvconfig(AS) as follows:
#cd /usr/net/servers/lanman/bin
#./srvconfig -s uidrules,minuid=500 uidrules,maxuid=1000
Restart the AFPS server:
#net start server
Now add a user:
# net user james /add

and the UNIX user's UID is set between these limits in "/etc/passwd", that is:

james:x:509:50:Advanced Server user:/usr/james:/bin/false

See also

SCO Advanced File and Print Server System Guide, Appendix B, page 196.

From the Xinuos technical article database, record 100045. Reproduced with permission. The original is at www.sco.com/ta/100045, 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.