Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have this tool which allows users to manage printers in the linux environment. I need to allow a user to run this tool without giving him the root password. The permissions on the tool are:

-rwxrwxrwx 1 root root       78 Dec  4  2008 system-config-printer
share|improve this question

2 Answers 2

The sudo command is very configurable, and can be used to grant specific users permission to run specific commands. Use visudo to edit /etc/sudoers, and enter a line like the following:

bob ALL = (root) NOPASSWD: /usr/sbin/system-config-printer

The user bob would then run sudo /usr/sbin/system-config-printer in order to run the tool.

share|improve this answer
up vote 0 down vote accepted

That is a great way to achieve that goal and i will use it myself next time. I used another method though: i've edited /etc/group and added the user in the end of the sys line: sys:x:3:root,bin,adm,itaig

anyways, thanks for your solution. Itai

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.