Koozali.org: home of the SME Server

Admin Rights - One more time

Offline troykd

  • ****
  • 77
  • +0/-0
Admin Rights - One more time
« on: March 04, 2006, 05:23:18 PM »
I'm not a Linux programmer.  I'd like to find the EASIEST way to assign admin rights to a couple users so they can run software that requires it.

All of the template fragment stuff is greek.  Anyone know an easy way to do this.  I thought it would have been built in to the user or group interface on server-manager.

Offline slords

  • *****
  • 235
  • +3/-0
Re: Admin Rights - One more time
« Reply #1 on: March 04, 2006, 05:48:17 PM »
Quote from: "troykd"
I'm not a Linux programmer.  I'd like to find the EASIEST way to assign admin rights to a couple users so they can run software that requires it.

[...] I thought it would have been built in to the user or group interface on server-manager.


If you are using SME Server as a domain controller and the workstations have joined the domain then the following is possible.

The domain always has three groups created, "Domain Admins", "Domain Users", "Domain Guests".  These are usually assigned to as follows:

Domain Admins => admin
Domain Users => shared (everyone)
Domain Guests => nobody

However if you create a group and name it whatever you want but put one of the above for the description then the newly created group will replace the above mapping.

So if you create a group called "admins" and give it a description of "Domain Admins" then anyone you assign to this group will be a domain admin and also a local admin on ANY box that has joined the domain.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs,
and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." -- Rich Cook

Offline troykd

  • ****
  • 77
  • +0/-0
Admin Rights - One more time
« Reply #2 on: March 04, 2006, 06:01:57 PM »
Excellent!  Thank you very much.

Troy

Offline brianr

  • *
  • 990
  • +2/-0
Admin Rights - One more time
« Reply #3 on: August 29, 2006, 06:42:49 PM »
I've just tried this today, and haven't yet got it to work.  SME7 without the _very_ latest updates.  XP pro SP2 on the client.

I created a group called "powerusers" and made the description "Domain Admins", then added a couple of users, then did a post-upgrade (incase templates where involved), then re-booted, then (domain) logged in as one of the users. and used my standard test to see if it would allow me to change the system time by double clicking the time in the system tray - it wouldn't.

I looked in various templates and /etc/smb.conf, but couldn't find any entries.

Anyone know if/how it works?
Brian j Read
(retired, for a second time, still got 2 installations though)
The instrument I am playing is my favourite Melodeon.
.........

Offline troykd

  • ****
  • 77
  • +0/-0
Admin Rights - One more time
« Reply #4 on: August 29, 2006, 06:57:40 PM »
Go to the server-manager.  Set up the Groups page like the following (this is my example)

Current list of User Groups
Group         Description
roamuser        Domain Users
admins        Domain Admins


Name the Groups anything you want.  The description sets the rights.

Then assign your users to the apporpriate Group and you're done.

Offline brianr

  • *
  • 990
  • +2/-0
Admin Rights - One more time
« Reply #5 on: August 29, 2006, 09:04:31 PM »
aha, I think i can see the problem - I only created the "admins" group, whereas I guess I have to "cover" all the users with the "users" and "admins" group.  I will try on Thurs when I get back to the site.

Many thanks.

Can anyone tell me if this works in 6.0.1?
Brian j Read
(retired, for a second time, still got 2 installations though)
The instrument I am playing is my favourite Melodeon.
.........

Offline troykd

  • ****
  • 77
  • +0/-0
Admin Rights - One more time
« Reply #6 on: August 30, 2006, 09:39:05 PM »
The admin group could be called anything, you can call it "monkeys".  They'll get the admin rights as long as you call the group description for them is described as "Domain Admins"

Ditto for users.  Description needs to be "Domain Users"


I may be wrong, but this worked for me.....

Offline brianr

  • *
  • 990
  • +2/-0
Admin Rights - One more time
« Reply #7 on: August 31, 2006, 06:46:17 AM »
yes, but my point is that that you need "both" groups created with (presumably)  no overlap. i am going back to try it today..
Brian j Read
(retired, for a second time, still got 2 installations though)
The instrument I am playing is my favourite Melodeon.
.........

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Admin Rights - One more time
« Reply #8 on: August 31, 2006, 08:25:26 AM »
Quote from: "brianr"
yes, but my point is that that you need "both" groups created with (presumably)  no overlap. i am going back to try it today..
Overlap should not be a problem as a domian user can be a domain admin, although I don't prefer to overlap. Users should not by default be logged on to the domain to access thir mail and browse the internet, they should have a normal user account for that.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Admin Rights - One more time
« Reply #9 on: August 31, 2006, 08:28:59 AM »
Quote from: "troykd"
Ditto for users.  Description needs to be "Domain Users"
You do not need to modify the "Domain Users" group as all users that are made on SME Server by default are added to the linux group called "shared" which in turn is mapped to the "Domain Users" group by default. If you want to make a group of domain administrators you will have to create a new group with the description "Domain Admins" as the Domain Administrator group is by default mapped to the (linux) admin user.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)