source: http://www.cyberciti.biz/faq/freebsd-install-sudo-command/
Sudo is a program designed to allow a sysadmin to give limited root privileges to users and log root activity. Unlike su, sudo authenticates users against their own password rather than that of the target user. Sudo 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. This allow the delegation of specific commands to specific users on specific hosts without sharing passwords among them.
Install sudo using FreeBSD port system
To install the port, enter:
# cd /usr/ports/security/sudo/ && make install clean
Install sudo using pkg_add comamnd
To add the binary package, run
OR
Sample outputs:
# pkg_add -rv sudo
OR
# pkg_add -r sudo
Sample outputs:
Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-9.0-release/Latest/sudo.tbz... Done.
How do I configure sudo?
The default configuration file is located at /usr/local/etc/sudoers. This file MUST be edited with the visudo command as root. Failure to use visudo may result in syntax or file permission errors that prevent sudo from running.
Allow user vivek to run all admin tasks via sudo:
% su -
# visudo
Allow user vivek to run all admin tasks via sudo:
vivek ALL=(ALL) ALL
Allow members of group wheel to execute any command:
%wheel ALL=(ALL) ALL
Save and close the file.
Task: Become a root user with sudo
Type the following command
Sample outputs:
% sudo -s
Sample outputs:
Task: Run any command as root
The syntax is:
sudo /path/to/command sudo /path/to/command arg1
In this example, restart ftpd service:
Sample outputs:
% sudo /etc/rc.d/ftpd restart
Sample outputs:
As stated by Stanford Medical, It's in fact the one and ONLY reason women in this country get to live 10 years longer and weigh an average of 42 pounds lighter than us.
BalasHapus(Just so you know, it has absoloutely NOTHING to do with genetics or some secret exercise and absolutely EVERYTHING to around "how" they eat.)
P.S, I said "HOW", and not "WHAT"...
Click on this link to find out if this little questionnaire can help you find out your real weight loss possibility