[Samba] initGrps.sh?

John H Terpstra jht at samba.org
Wed Jun 25 04:13:23 GMT 2003


On Tue, 24 Jun 2003, Yeri Swamy wrote:

> Hi
>
>  From NT4 to Samba mimigration the HOWTO documents says do
>
> #initGrps.sh DOMIANNAME
>
>
> but where is initGrps.sh?? i am unable to locate??

Here you are my friend. Enjoy.

- John T.


#!/bin/bash
#### Keep this as a shell script for future re-use

# First assign well known groups
net groupmap modify ntgroup="Account Operators" unixgroup=root
net groupmap modify ntgroup="Administrators" unixgroup=root
net groupmap modify ntgroup="Backup Operators" unixgroup=bin
net groupmap modify ntgroup="Domain Admins" unixgroup=ntadmins
net groupmap modify ntgroup="Domain Guests" unixgroup=nobody
net groupmap modify ntgroup="Domain Users" unixgroup=users
net groupmap modify ntgroup="Guests" unixgroup=nobody
net groupmap modify ntgroup="Power Users" unixgroup=sys
net groupmap modify ntgroup="Print Operators" unixgroup=lp
net groupmap modify ntgroup="Replicators" unixgroup=daemon
net groupmap modify ntgroup="System Operators" unixgroup=sys
net groupmap modify ntgroup="Users" unixgroup=users

# Now for our added Domain Group
#net groupmap add ntgroup="Designers" unixgroup=designers type=d rid=3200
#net groupmap add ntgroup="Engineers" unixgroup=engineers type=d rid=3210
#net groupmap add ntgroup="QA Team"   unixgroup=qateam    type=d rid=3220



-- 
John H Terpstra
Email: jht at samba.org



More information about the samba mailing list