Su and sudo, su root and Su-root differencesSu is the front two letters of the superuser.Su Root=suLike your open an interactive shell in Root name,Then only. BASHRC'll be sourced.Su Root and Su: to establish a link with root, execute the command through root, is actually the process's valid user ID into the Root,unix check process is the right to verify the valid user ID, the actual user ID of the process
Install and configure sudo in CentOS 7
Sudo is usually referred to as super do or suitable user do. It is a software that uses the security permissions of other users to execute programs in UNIX-like operating systems. Let's see how to configure sudo.# Mongodo
This will open/etc/sudoers and edit it.
Sudoers file
The Linux system provides two user permission management mechanisms: su and sudo. su is mainly used to switch users, while sudo users are used to improve execution permissions. The following describes in detail.
I. su command -- switch usersWith the su command, you can switch to another user to have all the permissions of the user. Of course, the password of the target user needs to be verified during the s
secure it is. in this case, the second method is required.
2. sudo
In contrast to su, switching identities requires the user's password, and often requires the root password. sudo only needs its own password to execute commands as other users, commands are often executed as root, and not everyone can use sudo:
Here I want to view the first three lines of the/et
Http://tool.chinaz.com/Tools/unixtime.aspx now the Unix timestamp (Unix timestamp) is1440732364Unix Timestamp (Unix timestamp) → Beijing Time →unix timestamp (Unix timestamp) How do I get the current UNIX timestamp (
for a password,2. Enable the Sudoers profile using alias modeVim/etc/sudoersUser_alias useradmin = hadoop,%hadoop,%useradmin #表示hadoop用户, Hadoop Group, useradmin GroupCmnd_alias useradmincmnd =/usr/sbin/useradd,/usr/sbin/usermod,/user/bin/passwd [A-Za-z]*,! /USR/BIN/PASSWD root #命令别名, which means that useradd usermod/user/bin/passwd can be executed via sudo [a-za-z]* means that the Execute passwd command must be followed by at least one letter! /USR/
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,
JS gets the Unix time stamp
The Unix timestamp (Unix timestamp), or Unix time (Unix times), POSIX time (POSIX times), is a time representation, defined as the total number of seconds from GMT January 01, 1970 00:00 00 seconds to the present.
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 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
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
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
. 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
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
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,
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.