hi list, How do you calculate a machine SID and primarygroupSID? On a user you would do 2*uidNumber+1000 and 2*uidNumber+1001 But machines accounts dont have a uidNumber so how is the SID genrated?? Im trying to create some perl scripts of my own which need to do some other things too! Thanks, -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Daniel Wilson Systems Administrator IT & Communications Service University of Sunderland Unit1 Technology Park Chester Road Sunderland SR2 7PT Tel: 0191 515 2695 This e-mail contains information which is confidential and may be privileged and is for the exclusive use of the recipient. It is the responsibility of the recipient to ensure that this message and its attachments are virus free. Any views or opinions presented are solely those of the author and do not necessarily represent those of the University, unless otherwise specifically stated.
On Wed, 2004-11-24 at 10:05 +0000, Daniel Wilson wrote:> hi list, > > How do you calculate a machine SID and primarygroupSID? > > On a user you would do 2*uidNumber+1000 and 2*uidNumber+1001 > > But machines accounts dont have a uidNumber so how is the SID genrated??Machines do and must have a uidNumber, and a full posixAccount. From there they are just like other users. Andrew Bartlett -- Andrew Bartlett <abartlet@samba.org> -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://lists.samba.org/archive/samba/attachments/20041126/cc49238e/attachment.bin
Andrew Bartlett wrote:>On Wed, 2004-11-24 at 10:05 +0000, Daniel Wilson wrote: > > >>hi list, >> >>How do you calculate a machine SID and primarygroupSID? >> >>On a user you would do 2*uidNumber+1000 and 2*uidNumber+1001 >> >>But machines accounts dont have a uidNumber so how is the SID genrated?? >> >> > >Machines do and must have a uidNumber, and a full posixAccount. From >there they are just like other users. > >Andrew Bartlett > > >hmmm, "smbpasswd -a -m netbios" only adds "account,top,sambaSamAccount" object classes, it doesnt add posixAccount! dan -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Daniel Wilson Systems Administrator IT & Communications Service University of Sunderland Unit1 Technology Park Chester Road Sunderland SR2 7PT Tel: 0191 515 2695 This e-mail contains information which is confidential and may be privileged and is for the exclusive use of the recipient. It is the responsibility of the recipient to ensure that this message and its attachments are virus free. Any views or opinions presented are solely those of the author and do not necessarily represent those of the University, unless otherwise specifically stated.