mac os x는 기본적으로 관리자 계정은 sudo를 사용할 수 있으나 Red Hat은 그렇지 않아서 불편함.
시간나면 천천히 읽어보면 좋음. 난 바뻐서 그냥 추가하는 부분만 살펴봤음.
본문 잘라놓으면 아래처럼 되어 있음 🙂

The /etc/sudoers File

The /etc/sudoers file contains all the configuration and permissionparameters needed for sudo to work. There are a number of guidelinesthat need to be followed when editing it with visudo.General /etc/sudoers Guidelines

The /etc/sudoers file has the general format shown in Table 9-1.

Table 9-1 Format of the /etc/sudoers File

General sudoers File Record Format

usernames/group servername = (usernames command can be run as) command

There are some general guidelines when editing this file:

Groups are the same as user groups and are differentiated fromregular users by a % at the beginning. The Linux user group “users”would be represented by %users.
You can have multiple usernames per line separated by commas.
Multiple commands also can be separated by commas. Spaces are considered part of the command.
The keyword ALL can mean all usernames, groups, commands and servers.
If you run out of space on a line, you can end it with a back slash (\) and continue on the next line.
sudo assumes that the sudoers file will be used network wide,and therefore offers the option to specify the names of servers whichwill be using it in the servername position in Table 9-1. In mostcases, the file is used by only one server and the keyword ALL sufficesfor the server name.
The NOPASSWD keyword provides access without prompting for your password.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: