Use of the sudo service under Linux RHEL6

Source: Internet
Author: User

/bin/ The decentralized binary commands are available to ordinary users

Sbin the decentralized binary commands are superuser root can use the

ordinary users also want to use Sbin the files below can be used via sudo to achieve:

The default normal user is not allowed to use:

Tip: Not enough permissions

Configure a single user to have rights to a command or service

The system default IQF package has been installed to view under:

Perform

[email protected] ~]# Visudo to generate sudo configuration file.

In the file, add:

Note: Give Redhat users can use Chkconfig on Local Users command, you can write the domain name.

Note: The added command must be an absolute path

can also be changed to the following:

View the next iptables in those modes the default boot starts:

Note: Graphical default on, let's turn it off

we are executing sudo under the ordinary user Command

We modify Iptables service default graphical boot does not open,

Note: sudo must be added when executing commands .

After the completion of the comparison:

Configure service groups and user groups below: (use of aliases)

Note: STUDENT This user group contains the Redhat , Westos User

Note: SERVICE This service group contains the above services, STUDENT user groups to service all services in the service group are fully used and do not need to enter a password.

To configure a user to use a service group:

Note: The service alias does not conflict with the system, I have tried to use SERVICE This alias will allow you to enter the password when you start the service.

Use Westos aliases are OK :

Usage and system conflict aliases:

Tip: To Redhat password. So don't conflict with the system.

The following configures the groups that already exist on the system to have access to a service:

Note: If there is a group in the system we want to use lowercase, if not the uppercase .

First add a Admin groups, members within groups Redhat

Allow only Admin Group on FTP services have the right to use, other services No

Note: Before you must % , if you have not finished configuring sudo File It will not error, the service can also start, but it is to password .

Note: Start Ftpok , start Apache service, Tips Sorry, Redhat can only use FTP Service, configuration file not found Redhat users can use httpd service.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.