Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
give simple users a lil' more rights
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
SneaZ
n00b
n00b


Joined: 20 Sep 2002
Posts: 22

PostPosted: Thu Apr 29, 2004 2:53 pm    Post subject: give simple users a lil' more rights Reply with quote

Hello,

I'd like to create a couple of users who've got a little more rights
than a normal user.
The only thing they need to be able to do is restart some services
thru /etc/init.d.

could someone give me a clue on how to do this.
Thank you very much

Bart
_________________
:: Reach Out And Grep Someone ::
Back to top
View user's profile Send private message
Earthwings
Bodhisattva
Bodhisattva


Joined: 14 Apr 2003
Posts: 7753
Location: Germany

PostPosted: Thu Apr 29, 2004 3:05 pm    Post subject: Reply with quote

Have a look at sudo and configure it properly.
Back to top
View user's profile Send private message
Markrian
n00b
n00b


Joined: 07 Jul 2003
Posts: 46
Location: Kent, UK

PostPosted: Thu Apr 29, 2004 3:09 pm    Post subject: Reply with quote

Couple of guesses:

  1. Add the users to a special group you've created, say 'service', and for each script that you want to execute via the user, change the owning group to 'service', and then add the executable bit to for the group in those scripts.
  2. If that doesn't work (I can imagine why that wouldn't work for some scripts), add the setuid bit for the scripts you want users to be able to execute.

The second one should work, after a bit of playing around. Read the man page for chmod if unsure.
_________________
Wikipedia - The Free Encyclopædia
Back to top
View user's profile Send private message
SneaZ
n00b
n00b


Joined: 20 Sep 2002
Posts: 22

PostPosted: Fri Apr 30, 2004 6:59 am    Post subject: Reply with quote

thx,

going to rtfm now :)
_________________
:: Reach Out And Grep Someone ::
Back to top
View user's profile Send private message
myuser
Apprentice
Apprentice


Joined: 31 Jan 2004
Posts: 218

PostPosted: Fri Apr 30, 2004 7:20 am    Post subject: Reply with quote

On a single user system I tend to use su - -c "echo hello"

where echo hello is the command you want. I often place that into a menu item in fluxbox.

I can see the attraction on a multiuser site in using sudo, but I do wonder how secure it actually is. sudo configured well probably is ok, but make a mistake and you have punched a hole in your security, it also moves root access one step closer, if one of your more trusted users get compromised then the cracker has one more point to attack. Security gets a lot more complicated when you think that someone can control a process that runs as root.
Back to top
View user's profile Send private message
SneaZ
n00b
n00b


Joined: 20 Sep 2002
Posts: 22

PostPosted: Fri Apr 30, 2004 8:41 am    Post subject: Reply with quote

I'm currently configuring sudo, this is exactly the thing I need.

thanks
_________________
:: Reach Out And Grep Someone ::
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum