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 serverEdit 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=1000Restart the AFPS server:#net start serverNow add a user:# net user james /addand 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.