Sunday, January 10, 2010

SUDO in FreeBSD / Unix

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

example :
usename ALL=(group) ALL

** note : !/usr/bin/su (this will prevent user to sudo su)

Set environment : setenv EDITOR ee

General sudoers File Record Format
usernames/group servername = (usernames command can be run as) command

No comments:

Post a Comment