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
Method 1: Add a sudo userWhen 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 you want to grant some super user privileges to someone on your shared system, you must g
true that the root password of a Super User should be in the hands of a few users! Therefore, the existence of centralized governance still makes sense;
II. The su authorized by sudo is also restricted.
1. Applicable Conditions for sudo
Due to Su's unrestricted permissions after switching to the super-Permission User Root, Su cannot act as a system managed by multiple administrators. If Su is used to switc
Go to Ubuntu and run the root permission command-sudo and Su commands for Ubuntu user management
Sudo refers to super-user do, which allows the current user to temporarily run this command as the administrator.
Su is used to change the current user. Su root is used to switch the current user to the root user. After Su root is used, all the following commands can be skipped, because the current user is alrea
Configure sudo in Linux
Operating System: RHEL 6.4-64-bit
After configuring sudo, the root user can execute commands as the root user.
By default, normal users have full management permissions on their home directories, but do not have permission to view the files in other users' home directories.
An error is reported when you use a common user to view the directories of other users.
[Tom @ rhel64 ~] $ Pwd
-participant system management, SU only applies to one or two people to participate in the management system , after all, SU does not allow the ordinary user limited use; Root password should be in the hands of a few users, This is absolutely true! So there is some truth in the existence of centralization and governance;two. Sudo is licensed to use Su, which is also a restricted Su1. Applicable conditions of sudoBecause SU does not have the restrictio
;Two. Sudo is licensed to use Su, which is also a restricted Su1. Applicable conditions of SudoBecause SU does not have the restriction of permissions after switching to Superuser root, SU does not act as a system managed by multiple administrators. If you use SU to switch to the Superuser to manage the system, it is not clear what work is done by which administrator. In particular, for the management of the server with many people involved in the man
The first method: add sudo userWhen you install Ubuntu, it automatically adds the first user to the Sudo group, allowing the user to type in their own account password to gain superuser (root) status. However, the system will no longer automatically add other users to the sudo group. If you want to grant someone some super user privileges on your shared system, y
Tags: ROC service Relationship General hints Complex add ADO workRoot users have the supremacy of the right, then our OPS personnel is not directly under the root user to deal with all problems? The answer is no, the greater the power, the greater the responsibility, the person will be wrong, so we have to do without prejudice to our work, as far as possible to limit our power, so as to avoid accidental operation caused disasterOne-su command---switching between accountsNormal user cut root user
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
user can switch to root identity, if a user accidentally leaked the root password, it is not a system is very insecure. No mistake, in order to improve the problem, the sudo command was generated. Commands that use sudo to execute a root can be done, but you need to enter a password that is not the password for root but the user's own password. By default only the root user can use the
. 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
. 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
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
sudo command syntaxsudo [-bhhpv][-s][-u Orsudo [-klv]Parameters-B executes the instruction in the background.-h displays Help.-H Sets the home environment variable to the new identity of the home environment variable.-K The expiration of the password, which is required to enter the password the next time the sudo is executed.-l lists instructions that are currently available to users and cannot be executed.
Sudo is a tool that allows a system administrator to have some or all of the root commands performed by a common user,
such as Halt,reboot,su and so on. This not only reduces the root user login and management time, with
The sample also improves the security.
sudo is not a substitute for the shell, it is oriented to each command. It
There are several main features of this:
§
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.