PDA

View Full Version : Make user group only able to run certain programs as root?


smartboyathome
February 20th, 2008, 08:04 PM
I was wondering how I could make it so that a user could only use admin privilages on certain programs? Would I do this by editing the sudoers file? Also, is there a way to get visudo to use nano instead of vim (vim is really confusing for me)? I am wanting to make it so that the group (student) can only run Synaptic, Add/Remove Programs, and Ubiquity (so it can be installed). Is this possible?

HermanAB
February 22nd, 2008, 01:46 AM
Yes, it is explained very well in the sudoers man page. I can't explain it any better, so I'm sorry, but you got to RTFM. The man page is good.

Cheers,

Herman

p_quarles
February 22nd, 2008, 06:56 AM
I was wondering how I could make it so that a user could only use admin privilages on certain programs? Would I do this by editing the sudoers file? Also, is there a way to get visudo to use nano instead of vim (vim is really confusing for me)? I am wanting to make it so that the group (student) can only run Synaptic, Add/Remove Programs, and Ubiquity (so it can be installed). Is this possible?
Hmm. I had thought that visudo in Ubuntu/Debian used nano by default. Anyway, you can force it to use nano easily:
export EDITOR=nano && sudo visudo

smartboyathome
February 23rd, 2008, 10:35 AM
Yes, it is explained very well in the sudoers man page. I can't explain it any better, so I'm sorry, but you got to RTFM. The man page is good.

Cheers,

Herman

Ok, thanks, I looked it up, and it does tell me how to do this. :)

Also, thanks p_quarels for that command, it works.