Add your user groups to sudoers file
sudo allows system administrators to delegate authority to other users on a server. In this post, we will show how user groups can sudo.
Sudo (su "do") allows a system administrator to delegate authority to give certain users (or groups of users) the ability to run some (or all) commands as root or another user while providing an audit trail of the commands and their arguments.
Some users mistakenly attempt to add themselves to the /etc/sudoers file directly. This doesn't work. Use the command visudo.
# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL
You can have add a user called penguin to users: useradd -G users penguin
Then, you can add penguin to the admin admin group. usermod -a -G admin penguin
Now penguin can sudo.
You can also give users ability to sudo without a password (for cron-type stuff).
Type visudo in terminal.
Uncomment # %sudo ALL=NOPASSWD: ALL by removing the #, or add %sudo ALL=NOPASSWD: ALL
Now add penguin to sudo group.
usermod -a -G sudo penguin
For more information on sudo, you can see the manual pages at man sudo.
Find Me On
Pages
Featured
- 10-plus essential applications for Windows 7
- Privacy tips for computer data and storage
- 10 reasons why ThinkPads are my favorite line of notebook
- 5 simple tips for KDE 4
Categories
- *nix
- Amazon web services
- Cloud computing
- Computer Forensics
- Config
- Debian
- Drupal
- Featured
- Freebies
- FreeBSD
- Hardware
- KDE
- Kubuntu
- Mac OS X
- Motivational
- Notes
- Open Source
- privacy
- Rackspace Cloud Servers
- Slicehost
- Software
- Sysadmin Lunchbreak
- Themes
- Ubuntu
- Uncategorized
- Windows
- Wordpress





