[Samba] Power users on Samba 3.0.1.
Jeff Gardiner
gardiner at imaging.robarts.ca
Wed Nov 19 19:42:45 GMT 2003
Hello Emannuel, I think the thing to do is to run a script like the following:
---start of script ---
#!/bin/tcsh
/bin/net groupmap modify ntgroup="Power Users" unixgroup=powergrp
--- end of script ---
The /bin/net command is the one that comes with samba, so before I put it in
/bin it was /usr/loca/samba/bin (I use a symlink).
ntgroup="Power Users" is the ntgroup you're setting equal to the unixgroup.
unixgroup=powergrp means powergrp is found in /etc/groups.
I believe you use this script once. You can read more about using this script
here:
http://us3.samba.org/samba/docs/man/groupmapping.html
I keep a copy of my script in /etc/samba/scripts and incidentally my script
does more than just define Power Users. You can define other group
equivalences.
i.e.
---start of script ---
#!/bin/tcsh
/bin/net groupmap modify ntgroup="Power Users" unixgroup=powergrp
/bin/net groupmap modify ntgroup="Domain Admins" unixgroup=sysgrp
#/bin/net groupmap modify ntgroup="Domain Users" unixgroup=usersgrp
--- end of script ---
Cheers
Jeff
On Wednesday 19 November 2003 13:29, Emannuel Silva wrote:
> Good Afternoon,
>
> How do I set my domain users to became Power Users on the workstations?
> Is there a way to map unix group "x" on the domain to became nt group
> "Power Users"? I did some research and I found someone mentioning "take
> domain users from the users group, and add it to the power user group"
> but my w2k does not list "Domain Users" under users.
>
> Any help will be appreciated.
>
> Thank you!
--
Jeff Gardiner [ gardiner at imaging.robarts.ca ]
System Administrator - Imaging Research Laboratories
Robarts Research Institute - London ON, Canada
519.663.5777 x34089
~~~~~~~
Those who do not understand Unix are condemned to reinvent it, poorly.
-- Henry Spencer
~~~~~~
More information about the samba
mailing list