as root install
sudo located at /usr/ports/security/sudo
make configure
make && make install
edit conf at
ee /usr/local/etc/sudoers
example and edit :
# Runas alias specification
# User privilege specification
root ALL=(ALL) ALL
kenan ALL=(www) ALL
note :
This Sudo command limits the user's power on the basis of the configuration made on the file "/etc/sudoers".
Generally in default case you might see something like this:
root ALL=(ALL) ALL
Above, you can see ALL 3 times. But what does it mean?
The first ALL: Run from any(all) host
The Second ALL: From any Terminal
The third ALL: Can Run any command
example :
usename ALL=(group) ALL
** note : !/usr/bin/su (this will prevent user to sudo su)
General sudoers File Record Format
usernames/group servername = (usernames command can be run as) command
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment