[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference ranger::pwosf

Title:PATHWORKS for OSF/1
Notice:see also NOTED::PWDOSWINV5 (PW client) & TURRIS::DIGITAL_UNIX
Moderator:CPEEDY::LONG
Created:Thu Apr 22 1993
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:1874
Total number of notes:6870

1739.0. "What determines UID for a new user account?" by VMSNET::J_MAJEWSKI () Wed Feb 05 1997 19:57

I have a customer who uses PATHWORKS's MangageWORKS v1.1.004
to manage his PW/OSF v5.0C server (Digital UNIX v3.2).

From where does ManageWORKS get the UID when creating a 
new account?  What file or script?

Thank you in advance,
Jennifer Majewski
DTN 343-1820
Atlanta CSC
T.RTitleUserPersonal
Name
DateLines
1739.1the server does it.WOTVAX::16.194.208.3::sharkeyaThu Feb 06 1997 06:506
Manageworks talks to the server. The server actually creates the account. 
There are rules (defined in LANMAN.INI) which govern which UIDs it can and 
cannot use.

Alan

1739.2VMSNET::S_VORESmile - Mickey's Watching!Thu Feb 06 1997 12:022
    and those rules are...?
    
1739.3CPEEDY::HORGANCraicailte indiadh damhsaThu Feb 06 1997 17:197
The [uidrules] section of lanman.ini contains the keywords that control
the assignment of UNIX user id's to Pathworks AS users. 

See the PATHWORKS for Unix System Guide, page D-7.


Julia
1739.4VMSNET::S_VORESmile - Mickey's Watching!Fri Feb 07 1997 12:2015
    in the version of the manual I have, at least, I only see exclude,
    forceunique, and usrcomment parameters for the [uidrules] section...
    nothing which would say what TO use, only to say what NOT to use.
    
    Should the server select the next available uid, counting up?  The
    highest current uid + 1?  If I've got an existing /etc/passwd with
    these users:
    	root:WREblah:0:1:...
    	nobody:*:65534:65534:...
    	lanman:*:100:99:...
    	scott:*:520:15:...
    then I add a new lm user, where's he go?  uid 101?  521?  somewhere
    else?  What's the algorithm, or what are we missing?
    
    
1739.5Info. on demandEVTAI1::10dhcp171.evt.DEC.COM::castelloUNIX PCI SupportFri Feb 07 1997 16:2536
hi all

Pathworks always starts from UID=200 for normal user.
I mean for other users than lanman,admin,....
if UID=200 is not part of exclude range it will search the 
next available uid >= 200 free and not in exluded range.
>>>>>
.4
        root:WREblah:0:1:...
        nobody:*:65534:65534:...
        lanman:*:100:99:...
        scott:*:520:15:...
answer: uid 200
>>>>>

(The exclude option was not always working in V5.0F 
 see ECO.)
If forceunique=no and it finds an Unix entry with the same 
username it keeps it and no new entry is created.
 
Then it adds the new line at the end of /etc/passwd.
It also preserves ":+" as the last line, it's not the case
for the /etc/group.

For the players:
If you want to create manually a lanman user with all 
desired options (i.e. a uid you absolumently wants) you
can use the /usr/net/servers/pathworks/passmgmt prog.
Just type the cmd to see options.

Hope this answer your questions
Jean-Pierre




1739.6VMSNET::S_VORESmile - Mickey's Watching!Fri Feb 07 1997 17:202
    Thanks, that's exactly what we were looking for (isn't it, Jennifer?).