For operational personnel, there is an important command--sudo in the Linux system. You might have guessed already, it literally means "super user can do it." "(Super User do.) To say that Sudo is a command for everything in Linux. I believe many Linux users have had this experience: in the terminal to try to run a command, the result is encountered "Access Denied" t_t ... So, most of the time,
= 505 (linuxsir) gid = 502 (linuxsir) groups = 0 (Root), 500 (beinan), 502 (linuxsir)[Linuxsir @ localhost ~] $
[Beinan @ localhost ~] $ Su--C ls Note: This is a combination of Su parameters, indicating that the system switches to the root user and changes to the root environment. Then, it lists the files in the root directory and exits the root user;Password: Enter the root password here;Anaconda-ks.cfg desktop install. Log install. log. syslog testgroup testgroupbeinan testgrouproot[Beinan @
sudo is a Linux system Management Directive, a tool that allows the system administrator to let ordinary users perform some or all of the root commands, such as HALT,REBOOT,SU, and so on. This not only reduces the login and administration time of the root user, but also improves security. sudo is not a substitute for the shell, it is for each command.sudo configuration file/etc/sudoers, which is in the foll
I. Introduction to sudo:
1. concept:
Sudo is a common tool in linux that allows common users to use superuser permissions. It allows system administrators to execute some or all of the root commands, such as halt, reboot, and su. This not only reduces the login and management time of the root user, but also improves the security. Sudo is not a substitute for she
Differences between Linux su and sudo commandsI. Use the su command to temporarily switch user identities 1. Conditions and power of su
The su command is a tool for switching users. How can this problem be solved? For example, if we log on as a normal user beinan, but want to add a user task and execute useradd, The beinan user does not have this permission, and this permission is exactly owned by the root user. There are two solutions. One is to log
Introduced
sudo is a Linux system Management Directive, a tool that allows a system administrator to allow ordinary users to perform some or all of the root commands, such as HALT,REBOOT,SU, and so on. This not only reduces the time to log in and manage the root user, but also improves security. sudo is not a substitute for the shell, it is oriented to each command.
s
Differences between linux su and sudo commands: linuxsusudo commandsI. Use the su command to temporarily switch user identities1. Conditions and power of su
The su command is a tool for switching users. How can this problem be solved? For example, if we log on as a normal user beinan, but want to add a user task and execute useradd, The beinan user does not have this permission, and this permission is exactly owned by the root user. There are two solu
Article Title: Sudo is related to the Root account in Ubuntu. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
In Ubuntu, the traditional UNIX 'root' is blocked (that is, you cannot use root to log on). The reason for this is described later in this article.
Quick answer
Run the command with the root permission an
Tags: User except result NMS Save Code User Group command processingsudo is a command that governs everything. It literally means "super user can do it!" "(Super User do!) is one of the most important commands necessary for Linux system administrators or advanced users. Have you ever had this experience: trying to run a command in a terminal and encountering "Access Denied"? This is the command you need! But the greater the power, the greater the responsibility!
Sudo is a common tool that allows ordinary users to use Superuser privileges under Linux, allowing the system administrator to allow ordinary users to perform some or all of the root commands, such as HALT,REBOOT,SU, and so on. This will not only reduce the root user login and management time, but also improve security. sudo is not a substitute for the shell, it is oriented to each command. There are severa
Deep understanding of the difference between Sudo and SuThe maximum difference between the two commands is:The sudo command needs to enter the current user's password, and the SU command needs to enter the root user's password. Another difference is its default behavior. The sudo command only allows a single command to run with elevated privileges, while the SU c
Sudo usage and sudoers configuration in linux, sudosudoers
From: http://zxf261.blog.51cto.com/701797/748756
Sudo is a common tool in linux that allows common users to use superuser permissions. It allows system administrators to execute some or all of the root commands, such as halt, reboot, and su. This not only reduces the login and management time of the root user, but also improves the security.
Reprinted: http://hi.baidu.com/it_master/blog/item/07b1ac390f7c793ab9998f41.html
Method 1: Add a sudo user
When you install Ubuntu, it automatically adds the first user to The sudo group, allowing this user to obtain the root identity by entering his/her own account password. However, the system will not automatically add other users to The sudo group. If
. If these 10 users are involved in the use of super-privilege, as an administrator if you want other users to switch to the root of the superuser through Su, the root password must be told to the 10 users, if the 10 users have root privileges, through root permission can do anything, This to a certain extent, the security of the system caused the association; Think of Windows, it is a nightmare; "There is no insecure system, only unsafe people", we can not guarantee that these 10 users can oper
In daily operation in order to avoid some mis-operation, more secure management system, usually use the user identity is ordinary users, rather than root. When you need to perform some administrator command operation, then switch to the root user to execute.The way a normal user switches to the root user is: Su and sudo.1 , Su-(su is switch user, which is shorthand for switching users)Format:su-l USERNAME(-l for login, that is, shorthand for landing)-
Linux sudo command -- sudoers file configuration, sudosudoersThe Linux sudo command and its configuration file/etc/sudoers will also know about the sudo command. The core idea of The sudo command is to grant permissions, that is, the user of a command is not yourself, but you have the permission to execute it. However,
A distinctive feature is that you cannot log on to the system as root for the first time. Why? This should begin with the installation of the system. For other Linux systems, the root password is usually set during the installation process, so that the user can use it to log on to the root account or use the su command to convert to the Super User identity. In contrast, UBUNTU does not set a password for the root user or enable the root account when it is installed by default. The problem is, wh
Requirements: Dev groups are created on each server, dedicated to developers, build accounts for specific developers, and join Dev Group;
Operators will also create their own users, and join the wheel group, through Sudo to the group members do permission settings.
The architecture is as follows:
The contents of the documents in Manfests are as follows:
1,init.pp class Sudo {case $::osfamily {' RedHa
http://zebralinux.blog.51cto.com/8627088/1369301In daily operation in order to avoid some mis-operation, more secure management system, usually use the user identity is ordinary users, rather than root. When you need to perform some administrator command operation, then switch to the root user to execute.The way a normal user switches to the root user is: Su and sudo.1 , Su-(su is switch user, which is shorthand for switching users)Format:su-l USERNAM
Linux Study Notes mdash; general users use the sudo command abstract: mainly records how to solve the general use of Linux study Notes-general users use the sudo command
Abstract: This document mainly records how to solve the problem that common users cannot use the sudo command, and adds the advantages of using the sudo
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.