View previous topic :: View next topic |
Author |
Message |
SneaZ n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 20 Sep 2002 Posts: 22
|
Posted: Thu Apr 29, 2004 2:53 pm Post subject: give simple users a lil' more rights |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Earthwings Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/49753421747790001d409d.png)
Joined: 14 Apr 2003 Posts: 7753 Location: Germany
|
Posted: Thu Apr 29, 2004 3:05 pm Post subject: |
|
|
Have a look at sudo and configure it properly. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Markrian n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 07 Jul 2003 Posts: 46 Location: Kent, UK
|
Posted: Thu Apr 29, 2004 3:09 pm Post subject: |
|
|
Couple of guesses:
- 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.
- 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 |
|
![](templates/gentoo/images/spacer.gif) |
SneaZ n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 20 Sep 2002 Posts: 22
|
Posted: Fri Apr 30, 2004 6:59 am Post subject: |
|
|
thx,
going to rtfm now ![Smile :)](images/smiles/icon_smile.gif) _________________ :: Reach Out And Grep Someone :: |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
myuser Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/1001442089408af193dfb0f.png)
Joined: 31 Jan 2004 Posts: 218
|
Posted: Fri Apr 30, 2004 7:20 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
SneaZ n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 20 Sep 2002 Posts: 22
|
Posted: Fri Apr 30, 2004 8:41 am Post subject: |
|
|
I'm currently configuring sudo, this is exactly the thing I need.
thanks _________________ :: Reach Out And Grep Someone :: |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|