Discussion:
[Samba] Power Users - Is it possible?
Jason C. Waters
2003-12-01 19:04:27 UTC
Permalink
Is it possible to have 2000 windows machines reconize Domain Users under
the local Power Users group? Right now I'm using samba 3beta3. Do I
need kerberos support compiled in? Thanks for your help

Jason
George Farris
2003-12-01 19:04:28 UTC
Permalink
I have also struggled with this problem. It seems one can map a domain
group such as Domain Admins and have it take effect on the workstation
but Power Users is, I think, a local group and it doesn't work even
though one can map a unix group to it.

So how can one add users to a Power User group and have it take effect
like Domain Admins?
Post by Jason C. Waters
Is it possible to have 2000 windows machines reconize Domain Users under
the local Power Users group? Right now I'm using samba 3beta3. Do I
need kerberos support compiled in? Thanks for your help
Jason
--
George Farris ***@mala.bc.ca
Computer Support Cowichan.
Jim C
2003-12-01 19:04:28 UTC
Permalink
Hmm...
So what you're saying is that you can't just make the group "Domain
Users" a member of the local group "Power Users"?
Post by George Farris
I have also struggled with this problem. It seems one can map a domain
...
Post by Jason C. Waters
need kerberos support compiled in? Thanks for your help
Jason
Jason C. Waters
2003-12-01 19:04:28 UTC
Permalink
Actually I figured out what was going on. It turns out, at some point
the profile was corupted. I deleted that profile, created a new one and
everything works like it should. So if you are having problems like
running outlook, and things of that nature, try a new profile.
Post by Jim C
Hmm...
So what you're saying is that you can't just make the group "Domain
Users" a member of the local group "Power Users"?
Post by George Farris
I have also struggled with this problem. It seems one can map a domain
...
Post by Jason C. Waters
need kerberos support compiled in? Thanks for your help
Jason
Felipe Alfaro Solana
2003-12-01 19:04:28 UTC
Permalink
Post by George Farris
I have also struggled with this problem. It seems one can map a domain
group such as Domain Admins and have it take effect on the workstation
but Power Users is, I think, a local group and it doesn't work even
though one can map a unix group to it.
So how can one add users to a Power User group and have it take effect
like Domain Admins?
On Windows, the "Power Users" is a local group, that is, it's members
are not stored on a domain controller, but on the local SAM of the
machine. Thus, if for an specific machine you want to make all Domain
Users to be Power Users, you'll need to use Windows administration tools
and *manually* add the "Domain Users" global group to the "Power Users"
local group of the machine.
George Farris
2003-12-01 19:04:29 UTC
Permalink
Well interestingly enough it only works if I make pwruser (which is
mapped to "Domain Users") be the primary group of the user. This is
confusing because with the user I have set up for a Domain Admin
(unixgroup dadmin) dadmin is not it's primary group.

Any thoughts?
Post by Felipe Alfaro Solana
Post by George Farris
I have also struggled with this problem. It seems one can map a domain
group such as Domain Admins and have it take effect on the workstation
but Power Users is, I think, a local group and it doesn't work even
though one can map a unix group to it.
So how can one add users to a Power User group and have it take effect
like Domain Admins?
On Windows, the "Power Users" is a local group, that is, it's members
are not stored on a domain controller, but on the local SAM of the
machine. Thus, if for an specific machine you want to make all Domain
Users to be Power Users, you'll need to use Windows administration tools
and *manually* add the "Domain Users" global group to the "Power Users"
local group of the machine.
--
George Farris ***@mala.bc.ca
Computer Support Cowichan.
George Farris
2003-12-01 19:04:29 UTC
Permalink
$%#@&^% I forgot to delete the profile. It works. Now I should be able
to make a new "Domain Power Users" group with "net groupmap add". How
does one find a new sid or can I just increment the last number used
like so:

[***@owl profiles]# net groupmap list
System Operators (S-1-5-32-549) -> -1
Domain Guests (S-1-5-21-1135672234-1853056381-2991119365-514) -> -1
Replicators (S-1-5-32-552) -> -1
Guests (S-1-5-32-546) -> -1
Power Users (S-1-5-32-547) -> -1
Print Operators (S-1-5-32-550) -> -1
Domain Users (S-1-5-21-1135672234-1853056381-2991119365-513) -> -1
Administrators (S-1-5-32-544) -> -1
Account Operators (S-1-5-32-548) -> -1
Backup Operators (S-1-5-32-551) -> -1
Users (S-1-5-32-545) -> users
Domain Admins (S-1-5-21-1135672234-1853056381-2991119365-512) -> dadmin

Since S-1-5-21-1135672234-1853056381-2991119365-514 is the last number
displayed I could use:
S-1-5-21-1135672234-1853056381-2991119365-515

Also how does one remove a mapping from a local unixgroup? It seems
once mapped, I can only ever assign it to a new group or delete the
ntgroup and start again.
Did you try it after deleting the profile?
Post by George Farris
Well interestingly enough it only works if I make pwruser (which is
mapped to "Domain Users") be the primary group of the user. This is
confusing because with the user I have set up for a Domain Admin
(unixgroup dadmin) dadmin is not it's primary group.
Any thoughts?
Post by Felipe Alfaro Solana
Post by George Farris
I have also struggled with this problem. It seems one can map a domain
group such as Domain Admins and have it take effect on the workstation
but Power Users is, I think, a local group and it doesn't work even
though one can map a unix group to it.
So how can one add users to a Power User group and have it take effect
like Domain Admins?
On Windows, the "Power Users" is a local group, that is, it's members
are not stored on a domain controller, but on the local SAM of the
machine. Thus, if for an specific machine you want to make all Domain
Users to be Power Users, you'll need to use Windows administration tools
and *manually* add the "Domain Users" global group to the "Power Users"
local group of the machine.
--
George Farris ***@mala.bc.ca
Computer Support Cowichan.
Jason C. Waters
2003-12-01 19:04:29 UTC
Permalink
net groupmap modify ntgroup="Power Users" unixgroup="pwrusers"

something like that!
Post by George Farris
to make a new "Domain Power Users" group with "net groupmap add". How
does one find a new sid or can I just increment the last number used
System Operators (S-1-5-32-549) -> -1
Domain Guests (S-1-5-21-1135672234-1853056381-2991119365-514) -> -1
Replicators (S-1-5-32-552) -> -1
Guests (S-1-5-32-546) -> -1
Power Users (S-1-5-32-547) -> -1
Print Operators (S-1-5-32-550) -> -1
Domain Users (S-1-5-21-1135672234-1853056381-2991119365-513) -> -1
Administrators (S-1-5-32-544) -> -1
Account Operators (S-1-5-32-548) -> -1
Backup Operators (S-1-5-32-551) -> -1
Users (S-1-5-32-545) -> users
Domain Admins (S-1-5-21-1135672234-1853056381-2991119365-512) -> dadmin
Since S-1-5-21-1135672234-1853056381-2991119365-514 is the last number
S-1-5-21-1135672234-1853056381-2991119365-515
Also how does one remove a mapping from a local unixgroup? It seems
once mapped, I can only ever assign it to a new group or delete the
ntgroup and start again.
Did you try it after deleting the profile?
Post by George Farris
Well interestingly enough it only works if I make pwruser (which is
mapped to "Domain Users") be the primary group of the user. This is
confusing because with the user I have set up for a Domain Admin
(unixgroup dadmin) dadmin is not it's primary group.
Any thoughts?
Post by Felipe Alfaro Solana
Post by George Farris
I have also struggled with this problem. It seems one can map a domain
group such as Domain Admins and have it take effect on the workstation
but Power Users is, I think, a local group and it doesn't work even
though one can map a unix group to it.
So how can one add users to a Power User group and have it take effect
like Domain Admins?
On Windows, the "Power Users" is a local group, that is, it's members
are not stored on a domain controller, but on the local SAM of the
machine. Thus, if for an specific machine you want to make all Domain
Users to be Power Users, you'll need to use Windows administration tools
and *manually* add the "Domain Users" global group to the "Power Users"
local group of the machine.
George Farris
2003-12-01 19:04:29 UTC
Permalink
Yes I can do that but how do I remove pwrusers? I want to set ntgroup
Power Users back to -1.
Post by Jason C. Waters
net groupmap modify ntgroup="Power Users" unixgroup="pwrusers"
something like that!
Post by George Farris
to make a new "Domain Power Users" group with "net groupmap add". How
does one find a new sid or can I just increment the last number used
System Operators (S-1-5-32-549) -> -1
Domain Guests (S-1-5-21-1135672234-1853056381-2991119365-514) -> -1
Replicators (S-1-5-32-552) -> -1
Guests (S-1-5-32-546) -> -1
Power Users (S-1-5-32-547) -> -1
Print Operators (S-1-5-32-550) -> -1
Domain Users (S-1-5-21-1135672234-1853056381-2991119365-513) -> -1
Administrators (S-1-5-32-544) -> -1
Account Operators (S-1-5-32-548) -> -1
Backup Operators (S-1-5-32-551) -> -1
Users (S-1-5-32-545) -> users
Domain Admins (S-1-5-21-1135672234-1853056381-2991119365-512) -> dadmin
Since S-1-5-21-1135672234-1853056381-2991119365-514 is the last number
S-1-5-21-1135672234-1853056381-2991119365-515
Also how does one remove a mapping from a local unixgroup? It seems
once mapped, I can only ever assign it to a new group or delete the
ntgroup and start again.
--
George Farris ***@mala.bc.ca
Computer Support Cowichan.
Felipe Alfaro Solana
2003-12-01 19:04:29 UTC
Permalink
Post by Jason C. Waters
net groupmap modify ntgroup="Power Users" unixgroup="pwrusers"
something like that!
Oh, my god! Please, stop this now! "Power Users" is a local group, not a
global group! You should never, ever create "Power Users" as a global
group, nor map it to a Unix group.

I recommend you reading this:

http://www.microsoft.com/windows2000/en/server/help/lsm_local_groups.htm

to clarify on the difference between built-in local groups and built-in
domain (or global) groups.
George Farris
2003-12-01 19:04:29 UTC
Permalink
Yes thanks, sorry to upset you:-) I think we understand that now. Must
be frustrating to what a newbie eh:-) Kind of funny.

So how do I unmap it from a unix group? Do I have to delete the "Power
Users" group and re-create it?
Post by Felipe Alfaro Solana
Post by Jason C. Waters
net groupmap modify ntgroup="Power Users" unixgroup="pwrusers"
something like that!
Oh, my god! Please, stop this now! "Power Users" is a local group, not a
global group! You should never, ever create "Power Users" as a global
group, nor map it to a Unix group.
http://www.microsoft.com/windows2000/en/server/help/lsm_local_groups.htm
to clarify on the difference between built-in local groups and built-in
domain (or global) groups.
--
George Farris ***@mala.bc.ca
Computer Support Cowichan.
John H Terpstra
2003-12-01 19:04:30 UTC
Permalink
Post by George Farris
Yes thanks, sorry to upset you:-) I think we understand that now. Must
be frustrating to what a newbie eh:-) Kind of funny.
So how do I unmap it from a unix group? Do I have to delete the "Power
Users" group and re-create it?
net groupmap modify ntgroup=Group-Name unixgroup=nobody

- John T.
Post by George Farris
Post by Felipe Alfaro Solana
Post by Jason C. Waters
net groupmap modify ntgroup="Power Users" unixgroup="pwrusers"
something like that!
Oh, my god! Please, stop this now! "Power Users" is a local group, not a
global group! You should never, ever create "Power Users" as a global
group, nor map it to a Unix group.
http://www.microsoft.com/windows2000/en/server/help/lsm_local_groups.htm
to clarify on the difference between built-in local groups and built-in
domain (or global) groups.
--
John H Terpstra
Email: ***@samba.org
Felipe Alfaro Solana
2003-12-01 19:04:33 UTC
Permalink
Post by George Farris
Yes thanks, sorry to upset you:-) I think we understand that now. Must
be frustrating to what a newbie eh:-) Kind of funny.
I'm seeing many people here in this list that do not complete understand
the differences between a local group and a global (domain) group. I
have posted a message trying to clarify on this :-)
Post by George Farris
So how do I unmap it from a unix group? Do I have to delete the "Power
Users" group and re-create it?
Simple delete it from your Samba server. As I described in another
message, the "Power Users" is a local, built-in group that exists on
every Windows workstation (Windows 2000 Professional, Windows XP
Professional, etc).
Beast
2003-12-01 19:04:33 UTC
Permalink
Post by Felipe Alfaro Solana
Post by George Farris
Yes thanks, sorry to upset you:-) I think we understand that now. Must
be frustrating to what a newbie eh:-) Kind of funny.
I'm seeing many people here in this list that do not complete understand
the differences between a local group and a global (domain) group. I
have posted a message trying to clarify on this :-)
From net groupmap list command, it did not say anything about local
and global group.
I think samba should print different msg to diferrentiate between
local and global group.



--beast
Felipe Alfaro Solana
2003-12-01 19:04:33 UTC
Permalink
Post by Beast
Post by Felipe Alfaro Solana
I'm seeing many people here in this list that do not complete understand
the differences between a local group and a global (domain) group. I
have posted a message trying to clarify on this :-)
From net groupmap list command, it did not say anything about local
and global group.
I think samba should print different msg to diferrentiate between
local and global group.
If Samba is acting as a domain controller (PDC), then it will only
mantain global groups. Local groups are only available on workstations
and member servers.
Beast
2003-12-01 19:04:33 UTC
Permalink
Post by Felipe Alfaro Solana
Post by Beast
Post by Felipe Alfaro Solana
I'm seeing many people here in this list that do not complete understand
the differences between a local group and a global (domain) group. I
have posted a message trying to clarify on this :-)
From net groupmap list command, it did not say anything about local
and global group.
I think samba should print different msg to diferrentiate between
local and global group.
If Samba is acting as a domain controller (PDC), then it will only
mantain global groups. Local groups are only available on workstations
and member servers.
This is incorrect.
This is my smb.conf (Its PDC) :

[global]
netbios name = LINJKT
workgroup = DJKT
server string = %L on Samba Server %v

passdb backend = smbpasswd, guest

os level = 64
preferred master = yes
domain master = yes
local master = yes

security = user
encrypt passwords = yes

domain logons = yes
....

This is output of net groupmap list:

System Operators (S-1-5-32-549) -> -1
Domain Users (S-1-5-21-682855339-941891451-1873685625-513) -> -1
Replicators (S-1-5-32-552) -> -1
Guests (S-1-5-32-546) -> -1
Domain Guests (S-1-5-21-682855339-941891451-1873685625-514) -> -1
Power Users (S-1-5-32-547) -> -1
Print Operators (S-1-5-32-550) -> -1
Administrators (S-1-5-32-544) -> -1
Account Operators (S-1-5-32-548) -> -1
Domain Admins (S-1-5-21-682855339-941891451-1873685625-512) -> -1
Backup Operators (S-1-5-32-551) -> -1
Users (S-1-5-32-545) -> -1

Even in NT 4.0 PDC, there's still local group by default.
The nice thing is in NT User manager for domain, it diferrentiate the
local and global group by icon.
Samba should also has this feature (if possible :))


--beast
Felipe Alfaro Solana
2003-12-01 19:04:33 UTC
Permalink
Post by Beast
Post by Felipe Alfaro Solana
If Samba is acting as a domain controller (PDC), then it will only
mantain global groups. Local groups are only available on workstations
and member servers.
This is incorrect.
Well, local groups do exist in domain controllers, but they are shared
between domain controllers exclusively. That is, a domain workstation
does have its own "Power Users" local group, which is totally different
from the "Power Users" local group of the domain controllers.
Beast
2003-12-01 19:04:34 UTC
Permalink
Post by Felipe Alfaro Solana
Post by Beast
Post by Felipe Alfaro Solana
If Samba is acting as a domain controller (PDC), then it will only
mantain global groups. Local groups are only available on workstations
and member servers.
This is incorrect.
Well, local groups do exist in domain controllers, but they are shared
Yes :=)
Post by Felipe Alfaro Solana
between domain controllers exclusively. That is, a domain workstation
does have its own "Power Users" local group, which is totally different
from the "Power Users" local group of the domain controllers.
That's why it called "Local" :=)


--beast
Felipe Alfaro Solana
2003-12-01 19:04:34 UTC
Permalink
Post by Beast
Post by Felipe Alfaro Solana
Post by Beast
Post by Felipe Alfaro Solana
If Samba is acting as a domain controller (PDC), then it will only
mantain global groups. Local groups are only available on workstations
and member servers.
This is incorrect.
Well, local groups do exist in domain controllers, but they are shared
Yes :=)
Post by Felipe Alfaro Solana
between domain controllers exclusively. That is, a domain workstation
does have its own "Power Users" local group, which is totally different
from the "Power Users" local group of the domain controllers.
That's why it called "Local" :=)
I just wanted to clarify on this as I think there are people out there
that are adding users to the "Power Users" group of the domain hoping
that they will automatically become members of the "Power Users" local
group of their Windows workstations, and this won't work.
George Farris
2003-12-01 19:04:37 UTC
Permalink
My solution was to create a "Domain Power Users" group with net group
map and assign an domain sid to it. I just incremented the highest sid
in the group list, for example:

net group map shows:
System Operators (S-1-5-32-549) -> -1
Domain Guests (S-1-5-21-1135672234-1853056381-2991119365-514) -> -1
Replicators (S-1-5-32-552) -> -1
Guests (S-1-5-32-546) -> -1
Power Users (S-1-5-32-547) -> -1
Print Operators (S-1-5-32-550) -> -1
Domain Users (S-1-5-21-1135672234-1853056381-2991119365-513) -> -1
Administrators (S-1-5-32-544) -> -1
Account Operators (S-1-5-32-548) -> -1
Backup Operators (S-1-5-32-551) -> -1
Users (S-1-5-32-545) -> users
Domain Admins (S-1-5-21-1135672234-1853056381-2991119365-512) -> dadmin

Since S-1-5-21-1135672234-1853056381-2991119365-514 is the last number
displayed I could use: S-1-5-21-1135672234-1853056381-2991119365-515

so

"net groupmap add sid=S-1-5-21-1135672234-1853056381-2991119365-515
ntgroup="Domain Power Users" unixgroup=pwruser"

will create the group. I then went to the workstation and added "Domain
Power Users" to the local "Power Users" group. Now anyone being a
member of pwruser is automatically a Power User on the workstation.


Thanks for all your help samba list, I appreciate it. This is what
makes open source so valuable.
Post by Felipe Alfaro Solana
Post by Beast
Post by Felipe Alfaro Solana
Post by Beast
Post by Felipe Alfaro Solana
If Samba is acting as a domain controller (PDC), then it will only
mantain global groups. Local groups are only available on workstations
and member servers.
This is incorrect.
Well, local groups do exist in domain controllers, but they are shared
Yes :=)
Post by Felipe Alfaro Solana
between domain controllers exclusively. That is, a domain workstation
does have its own "Power Users" local group, which is totally different
from the "Power Users" local group of the domain controllers.
That's why it called "Local" :=)
I just wanted to clarify on this as I think there are people out there
that are adding users to the "Power Users" group of the domain hoping
that they will automatically become members of the "Power Users" local
group of their Windows workstations, and this won't work.
--
George Farris ***@mala.bc.ca
Computer Support Cowichan.
Stéphane Purnelle
2003-12-01 19:04:37 UTC
Permalink
Hi,

Imagine a network with 150 computers connected to a Samba PDC.
I don't want to set each machine that a "Domain Power Users" group is a
member of Local Power Users.

Anyone can crarify the situation ?

A PDC which cannot send a information that a user is a member of a
"Power Users" group is not valuable. Whan I think user member of a
Power Users Group, I translate a responsable user can have the
autorization for install software for example.
Post by George Farris
My solution was to create a "Domain Power Users" group with net group
map and assign an domain sid to it. I just incremented the highest sid
System Operators (S-1-5-32-549) -> -1
Domain Guests (S-1-5-21-1135672234-1853056381-2991119365-514) -> -1
Replicators (S-1-5-32-552) -> -1
Guests (S-1-5-32-546) -> -1
Power Users (S-1-5-32-547) -> -1
Print Operators (S-1-5-32-550) -> -1
Domain Users (S-1-5-21-1135672234-1853056381-2991119365-513) -> -1
Administrators (S-1-5-32-544) -> -1
Account Operators (S-1-5-32-548) -> -1
Backup Operators (S-1-5-32-551) -> -1
Users (S-1-5-32-545) -> users
Domain Admins (S-1-5-21-1135672234-1853056381-2991119365-512) -> dadmin
Since S-1-5-21-1135672234-1853056381-2991119365-514 is the last number
displayed I could use: S-1-5-21-1135672234-1853056381-2991119365-515
so
"net groupmap add sid=S-1-5-21-1135672234-1853056381-2991119365-515
ntgroup="Domain Power Users" unixgroup=pwruser"
will create the group. I then went to the workstation and added "Domain
Power Users" to the local "Power Users" group. Now anyone being a
member of pwruser is automatically a Power User on the workstation.
Thanks for all your help samba list, I appreciate it. This is what
makes open source so valuable.
Post by Felipe Alfaro Solana
Post by Beast
Post by Felipe Alfaro Solana
Post by Beast
Post by Felipe Alfaro Solana
If Samba is acting as a domain controller (PDC), then it will only
mantain global groups. Local groups are only available on workstations
and member servers.
This is incorrect.
Well, local groups do exist in domain controllers, but they are shared
Yes :=)
Post by Felipe Alfaro Solana
between domain controllers exclusively. That is, a domain workstation
does have its own "Power Users" local group, which is totally different
from the "Power Users" local group of the domain controllers.
That's why it called "Local" :=)
I just wanted to clarify on this as I think there are people out there
that are adding users to the "Power Users" group of the domain hoping
that they will automatically become members of the "Power Users" local
group of their Windows workstations, and this won't work.
--
Computer Support Cowichan.
George Farris
2003-12-01 19:04:38 UTC
Permalink
I agree, I have no idea how else to accomplish this, any help from the
samba community is welcome.
Post by Stéphane Purnelle
Hi,
Imagine a network with 150 computers connected to a Samba PDC.
I don't want to set each machine that a "Domain Power Users" group is a
member of Local Power Users.
Anyone can crarify the situation ?
A PDC which cannot send a information that a user is a member of a
"Power Users" group is not valuable. Whan I think user member of a
Power Users Group, I translate a responsable user can have the
autorization for install software for example.
Post by George Farris
My solution was to create a "Domain Power Users" group with net group
map and assign an domain sid to it. I just incremented the highest sid
System Operators (S-1-5-32-549) -> -1
Domain Guests (S-1-5-21-1135672234-1853056381-2991119365-514) -> -1
Replicators (S-1-5-32-552) -> -1
Guests (S-1-5-32-546) -> -1
Power Users (S-1-5-32-547) -> -1
Print Operators (S-1-5-32-550) -> -1
Domain Users (S-1-5-21-1135672234-1853056381-2991119365-513) -> -1
Administrators (S-1-5-32-544) -> -1
Account Operators (S-1-5-32-548) -> -1
Backup Operators (S-1-5-32-551) -> -1
Users (S-1-5-32-545) -> users
Domain Admins (S-1-5-21-1135672234-1853056381-2991119365-512) -> dadmin
Since S-1-5-21-1135672234-1853056381-2991119365-514 is the last number
displayed I could use: S-1-5-21-1135672234-1853056381-2991119365-515
so
"net groupmap add sid=S-1-5-21-1135672234-1853056381-2991119365-515
ntgroup="Domain Power Users" unixgroup=pwruser"
will create the group. I then went to the workstation and added "Domain
Power Users" to the local "Power Users" group. Now anyone being a
member of pwruser is automatically a Power User on the workstation.
Thanks for all your help samba list, I appreciate it. This is what
makes open source so valuable.
Post by Felipe Alfaro Solana
Post by Beast
Post by Felipe Alfaro Solana
Post by Beast
Post by Felipe Alfaro Solana
If Samba is acting as a domain controller (PDC), then it will only
mantain global groups. Local groups are only available on workstations
and member servers.
This is incorrect.
Well, local groups do exist in domain controllers, but they are shared
Yes :=)
Post by Felipe Alfaro Solana
between domain controllers exclusively. That is, a domain workstation
does have its own "Power Users" local group, which is totally different
from the "Power Users" local group of the domain controllers.
That's why it called "Local" :=)
I just wanted to clarify on this as I think there are people out there
that are adding users to the "Power Users" group of the domain hoping
that they will automatically become members of the "Power Users" local
group of their Windows workstations, and this won't work.
--
Computer Support Cowichan.
--
George Farris ***@mala.bc.ca
Computer Support Cowichan.
Jason C. Waters
2003-12-01 19:04:35 UTC
Permalink
to unmap it just do groupmap delete sid=sidofPowerUsers
Post by George Farris
Yes thanks, sorry to upset you:-) I think we understand that now. Must
be frustrating to what a newbie eh:-) Kind of funny.
So how do I unmap it from a unix group? Do I have to delete the "Power
Users" group and re-create it?
Post by Felipe Alfaro Solana
Post by Jason C. Waters
net groupmap modify ntgroup="Power Users" unixgroup="pwrusers"
something like that!
Oh, my god! Please, stop this now! "Power Users" is a local group, not a
global group! You should never, ever create "Power Users" as a global
group, nor map it to a Unix group.
http://www.microsoft.com/windows2000/en/server/help/lsm_local_groups.htm
to clarify on the difference between built-in local groups and built-in
domain (or global) groups.
Felipe Alfaro Solana
2003-12-01 19:04:29 UTC
Permalink
Post by George Farris
Well interestingly enough it only works if I make pwruser (which is
mapped to "Domain Users") be the primary group of the user. This is
confusing because with the user I have set up for a Domain Admin
(unixgroup dadmin) dadmin is not it's primary group.
Any thoughts?
I can't follow you. Let's go part by part:

1. The concept of primary group is similar to Unix. There is nothing
particular with a primary group, except that it's mandatory. A user
*must* belong to at least one group. And, a user can belong to more than
one group. Thus, I don't understand you when you say "dadmin is not it's
primary group."

2. "Domain Users" is a global group belonging to a particular domain and
thus, any computer belonging to that domain, can reference it. There can
only exist one instance of the "Domain Administrators" global group for
every domain. Normally, you add all users from that domain to this
group, so you can reference all of them at once, for example, to allow
or deny access to a particular resource, machine, program, etc.

3. "Power Users" is a local group, not a global one. That is, it does
not belong to any domain, but belongs to a machine. It's said that the
"Power Users" group is not stored in a domain controller, but on the SAM
of a Windows machine (for example, a Windows XP computer). By saying
that it's a local group, I mean there exists one instance of this group
on every Windows computer, but no instances of it on any domain
controller. So, you should never ever create "Power Users" as a global
group on your Windows/Samba domain controller.

EXAMPLE:

Let's say you have 3 user accounts on the domain "DOM":

"DOM\A", "DOM\B" and "DOM\C".

If we want to make those users members of the "Power Users" group on the
Windows machine called MACHINE1, we usually do the following:

1. Add "DOM\A", "DOM\B" and "DOM\C" to the "Domain Users" global group
of the "DOM" domain (that is, we add them to "DOM\Domain Users").
2. Next, we log on to the MACHINE1 as an Administrator and then we add
the global group "DOM\Domain Users" to the local "Power Users" group.
3. The net effect is that since "DOM\A" is member of "DOM\Domain Users",
and "DOM\Domain Users" is also a member of the group "Power Users",
transitively, "DOM\A" becomes a member of the MACHINE1's "Power Users"
local group. Since by default on any Windows machine, every member of
the "Power Users" group has additional privileges over standard users
(like changing the system clock and shutting down the computer), the
user "DOM\A" will have those additional privileges.

We could have added "DOM\A", "DOM\B" and "DOM\C" directly to MACHINE1's
"Power Users", but what would happen if sometime in the future, a fourth
user "DOM\D" needs those elevated privileges. It's simpler to add
"DOM\D" to the "DOM\Domain Users" and then, by the transitive effect
described above, "DOM\D" will automatically be considered a member of
the local "Power Users" group for MACHINE1.

Since "Power Users" is local to all machines, you'll have to repeat this
operation on every Windows machine in which you want this mapping.

I hope this is clearer now.
George Farris
2003-12-01 19:04:29 UTC
Permalink
Thanks for that. It's nice to have this explained well. I have a
couple of books on w2k but mostly it talks AD and is not applicable. I
have it working now. On to group policies which from what I can tell
must remain as NT style to have any form of centralized network
policies. I don't have any Active Directory at all here, strictly Samba
servers.
Post by Felipe Alfaro Solana
Post by George Farris
Well interestingly enough it only works if I make pwruser (which is
mapped to "Domain Users") be the primary group of the user. This is
confusing because with the user I have set up for a Domain Admin
(unixgroup dadmin) dadmin is not it's primary group.
Any thoughts?
1. The concept of primary group is similar to Unix. There is nothing
particular with a primary group, except that it's mandatory. A user
*must* belong to at least one group. And, a user can belong to more than
one group. Thus, I don't understand you when you say "dadmin is not it's
primary group."
2. "Domain Users" is a global group belonging to a particular domain and
thus, any computer belonging to that domain, can reference it. There can
only exist one instance of the "Domain Administrators" global group for
every domain. Normally, you add all users from that domain to this
group, so you can reference all of them at once, for example, to allow
or deny access to a particular resource, machine, program, etc.
3. "Power Users" is a local group, not a global one. That is, it does
not belong to any domain, but belongs to a machine. It's said that the
"Power Users" group is not stored in a domain controller, but on the SAM
of a Windows machine (for example, a Windows XP computer). By saying
that it's a local group, I mean there exists one instance of this group
on every Windows computer, but no instances of it on any domain
controller. So, you should never ever create "Power Users" as a global
group on your Windows/Samba domain controller.
"DOM\A", "DOM\B" and "DOM\C".
If we want to make those users members of the "Power Users" group on the
1. Add "DOM\A", "DOM\B" and "DOM\C" to the "Domain Users" global group
of the "DOM" domain (that is, we add them to "DOM\Domain Users").
2. Next, we log on to the MACHINE1 as an Administrator and then we add
the global group "DOM\Domain Users" to the local "Power Users" group.
3. The net effect is that since "DOM\A" is member of "DOM\Domain Users",
and "DOM\Domain Users" is also a member of the group "Power Users",
transitively, "DOM\A" becomes a member of the MACHINE1's "Power Users"
local group. Since by default on any Windows machine, every member of
the "Power Users" group has additional privileges over standard users
(like changing the system clock and shutting down the computer), the
user "DOM\A" will have those additional privileges.
We could have added "DOM\A", "DOM\B" and "DOM\C" directly to MACHINE1's
"Power Users", but what would happen if sometime in the future, a fourth
user "DOM\D" needs those elevated privileges. It's simpler to add
"DOM\D" to the "DOM\Domain Users" and then, by the transitive effect
described above, "DOM\D" will automatically be considered a member of
the local "Power Users" group for MACHINE1.
Since "Power Users" is local to all machines, you'll have to repeat this
operation on every Windows machine in which you want this mapping.
I hope this is clearer now.
--
George Farris ***@mala.bc.ca
Computer Support Cowichan.
Felipe Alfaro Solana
2003-12-01 19:04:33 UTC
Permalink
Post by George Farris
Thanks for that. It's nice to have this explained well. I have a
couple of books on w2k but mostly it talks AD and is not applicable. I
have it working now. On to group policies which from what I can tell
must remain as NT style to have any form of centralized network
policies. I don't have any Active Directory at all here, strictly Samba
servers.
Yeah! AFAIK, Samba 3.0 can only emulate a NT4 PDC and thus, Group
Policies (stored in the NTCONFIG.POL inside the NETLOGON share) act
exactly in that way.
Continue reading on narkive:
Loading...