After Ubuntu has just been installed, you cannot run the SU command in terminal because Root does not have a default password and needs to be set manually.To install the user name entered in Ubuntu login, the user in the Admin group, has the authority to set the root password.To set a password for the root user, specify the following steps:1. Open a terminal and enter the following commandsudo passwd [root]Enter the original password, the new password
Tags: System/OPS LinuxLet's review the previous section:1. User group Add Groupadd2. User group Modification Groupmod3. User group Delete Groupdel4. The job creates a group with ID 501 group1, then changes to group2, the ID becomes 502, and finally the group is deleted, the commands are as follows:GROUPADD–G 501 Group1Groupmod–g 502–n group2 group1Groupdel group2In this section, let's take a look at the user Switching related commandsWhy do you want to switch users?In the course of the operation
su 切换用户Syntax format: su "option" "Username" su [options] [user name]Attention:
There must be at least one space between each element in the SU command and subsequent options and user names
If the user name after the command is omitted, the default switch is the root user
No password is required when switch
We all know that many files only have root permissions to be modified. we recommend that you use a general account to log on to the files during normal development.
We all know that many files only have root permissions to be modified. we recommend that you use a general account to log on to the development process during normal development. do you still remember the ssh mentioned earlier, we also set allow root login to no and switch to root when necessary to avoid risks. So how do we switch id
Use and introduction of linux su and sudo commands, and use of susudo commands
Function
Su: Switch users.
Sudo: enables other users to do (do) What the root user can do (first, the user must be granted the sudo permission)
Su usage
Su: switch to the root user without changing the current working directory. Environ
The default accounts for most Linux distributions are normal users, and changing the system files or executing certain commands requires root, which requires switching from the current user to the root user. The commands for switching users in Linux are Su or Su-.As shown in the beginning is a normal account, when the execution of Userdel, prompt command not found, through the
Su-#su-oldboy//When executing this command, switch to Oldboy user, and re-read the user environment-related configuration file, specifically to execute under the user home directory. Bash_profile and. bashrc files, this we become the full switch su#su Oldboy//execute this command when the system does not read the above
Su allows a user to temporarily become another user. It executes a command with a true and valid user ID, group ID, and an additional group of given user, usually an interactive shell.
Su[option] ... [USER [ARG] ...]
If user is not specified, the default is root, and if user has a password and is not a superuser, prompts for a password.
By default, SU does not
1. First use Help to understand Su, sudo su, sudo2. Second, understand "login Shell" and "interactive shell"."When Bash starts executes the commands in a variety of different scripts.(1) When started as an interactive login Shell:bash reads and executes The/etc/profile (if it exists). After reading. File, it looks for ~/.bash_profile, ~/.bash_login, and ~/.profile on that order, and reads and executes The f
Author: entererAuthor's blog:Www.enterer.cnReprinted and retainedLatest 0-dayHttp://www.virusest.com/post/57.htmlNow let's take the shell method.The default backend is admin/login. asp.Go to the background to see where database backup is available. Well, it will be used later.First look for the upload location, find it, first upload an asp .... Of course, it failed.Then try IIS's latest parsing vulnerability. It's very successful. Pony uploaded it.Then there's no problem with Dama.Elevation of P
Copyright notice: This article by Zeng original article, reprint please indicate source:Article original link: https://www.qcloud.com/community/article/103Source: Tengyun https://www.qcloud.com/communityProblem Scenario:user_0[emailprotected]10-125-224-102:> su rootPassword: su: cannot set groups: Operation not permitted1. Observation:(1) View/bin/suuser_0[emailprotected]10-125-224-102:> ll /bin/
Linux system Root has the supremacy of authority, work production environment or VPS generally for security purposes, prohibit root login, prohibit root user rights, use ordinary user login, there is a special need can be Su or sudo switch to root permissions to operate, Here's a way to allow only a specific group user su to switch to root:1, new ordinary users, such as babyUseradd Baby2. Change the passwor
The basic steps for installing SU (Seismic Unix) on Ubuntu16.04 are ubuntu16.04seismic.
Seismic Unix (SU) is a source Seismic data processing software developed by the Wave Field Research Center (CWP) of the Colorado mining Institute, at present, many scholars use SU for seismic data processing and programming in Linux. I personally studied FWI and used
The original blog: http://hubingforever.blog.163.com/blog/static/171040579201372915716149/
Create a directory under system \ extras (for example, Android4.0 \ system \ extras) of Android source code, such as su_robin directoryThe su_robin directory contains three files:
Su. h file
#ifndef SU_h #define SU_h 1#ifdef LOG_TAG#undef LOG_TAG#endif#define LOG_TAG "robin"#define REQUESTOR "com.noshufou.android.su"#define REQUESTOR_DATA_PATH "/data/data/" REQU
SU (superuser)SU is the switch user, such as: input: Su command after the return of the current user to switch to the root user, or: input: su-root (or other user name) here added "-" after the change of the current environment variable to the new user's environment variable.Su Root (or another user name) indicates tha
Linux command parsing: suroot and su-rootsu-rootisthesameassu-justlikeloginasroot, thentheshellisloginshell, whichmeanitwillexpericenealoginprocess, usual... linux command parsing: su root and su-root is the same as su-just like login as root, then the shell is login shell, which mean it will expericene a login process
Linux prohibits normal users from su to root and linuxsuroot
I. Overview
To prohibit normal users from su to root, you must modify the configuration files/etc/pam. d/su and/etc/login. defs respectively.
Ii. Detailed Configuration
(1) Remove the following comments in the/etc/pam. d/su file:
# Auth required pam_whee
The content originates from the people's post and Telecommunications press "Linux command Application big dictionary"tell 729 commands, 1935 examplesLearn about the Linux system's reference books, desk book, encountered the command or command not understand the options can be foundStrive to publish content every daySU commandYou can use the su command to switch to another user account to log in. If the SU c
Linux prohibits non-WHEEL users from using the SU command
Generally, you can log on as the root user to configure the system as Administrator by executing the "su-" command and entering the correct root password.
However, in order to further enhance the security of the system, it is necessary to establish an Administrator group that only allows users in this group to execute the "
Summary: When you do permissions on Linux, you often get the problem: 1 Why installing the software requires sudo before apt-get. Just installed, run again apt-get but no need to add sudo in front. 2 Why it is sometimes shown that the user is isn't in the sudoers when running sudo command. 3 What is the difference between Su and sudo? 4 Many people use the same host, how to guarantee the security when many users have root authority. This article will
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.