Allow a user to run a single command with root privileges

Posted Over 13 years ago. Visible to the public.

It's that simple to allow one of your Linux users to run a single command as UID 0:

  1. sudo visudo
  2. Add the line below to allow user 'deploy' to run /usr/bin/bundle with root privileges
deploy  ALL=NOPASSWD: /usr/bin/bundle
Thomas Eisenbarth
Last edit
About 13 years ago
License
Source code in this card is licensed under the MIT License.
Posted by Thomas Eisenbarth to makandra dev (2011-01-25 18:04)