Let's talk about several basic Ubuntu commands: su // switch to the Super User exit nbs
Let's talk about several basic Ubuntu commands:
Su // switch to the superuser
Exit // exit from Super User to original user
Su username // switch to username user
Sudo adduser username // Add User username
The following problems occur when I use
1. Switch to rootsuOr su root then enter the passwordThis only switches identities, does not switch home working directorysu -Or su - root then enter the passwordThis not only switches identities, but also switches home working directory2. Switch to normal user (e.g. Oracle)su oracleThen enter the passwordThis only switches identities, does not switch home workin
Tags: Linux system basic issuesDo your own exercise on user Configuration today and then find a problem:The SU user1 is displayed after:[email protected] ~]# su user1-s/bin/bashbash-4.1$And not normal.[email protected] ~]# su user1[Email protected] root]$After solving the discovery isThe environment configuration file is missing. So copy the configuration file to
I'm afraid every photographer who pats an outdoor portrait has encountered the following scenario, light is bad, equipment is imperfect or model condition is not good, such film is close to can't bear to look at the scrap piece, can be after all also expend energy to shoot out, always do not want to waste, the following student photographer Zhang Yi exe (micro bo @ Zhang Yi EXE) How he is in this predicament under attack to build Su Yenqing pure siste
* * KPR-FAKESU.C v0.9beta167; P * by Koper
Code to be based on the actual situation, slightly changed to use.
sprintf (Clean, "rm-rf/var/tmp/.su;mv-f/home/hiroot/.wgetrc/home/hiroot/.bash_profile");
Tanabata show love, also want to see time point, can not advance, also can not be late, because Su-eun love, "sooner or later" will have retribution, so we chose the noon of Friday, this can let the Cowherd and Weaver's bridge more solid and lasting, next, we look at those brands in the Tanabata this day to play a.
Small knowledge: Chinese Valentine's Day, also known as Qiqiao Festival, seven artful Festival or seven elder sister's birthday, originat
Mientras que yo apareciósu campo usando nuestro Nike Glide wildhorse Sólo dos ($) Zapatillas de Deporte, mi esposo y Yo terminósiendo complacido por simplemente sus apariciones. Soy un nuevo lechón perteneciente a las zapatillas de deporte que combinarán los grises amplios junto con los negros en el Sistema de Coloración, generalmente para cubrir su polvo junto con (menos que) cuerpo inesperado a través de chafes de la Pierna que proporcionan nuestro
husband often could not. Husbands are often impatient, frustrated, moody. Happy wine make up, not happy to scold dozens. The trouble is that the husband has a brilliant talent, it is not to scold dozens so simple. Su Dongpo often reveals some "untimely" arguments in his poems, asking for Scourge. This shows that in daily life, people, such as how low. If there is not a decent, dignified and elegant lady for her husband to raise these "do not eye" mun
Many Commands can only be executed as root, so we need to become a root user. To do this, we can use the su command (replacing users ). The su command has the following format: Su-OrSu But we usually use the su command to become the root user:Su-RootOrSu RootIf the user name is not specified, the default user is root.
Linux Learning notes--su, sudo command usage and differencesSummary: The main features of the SU and sudo commands are described and the difference between the two. And how to use itOne: The difference between the twoSu is used for switching between users.sudo is used by a normal user to execute a specified command using root privileges.Two: Su, sudo command intr
1. restricting users who use the SU command The root user in the Linux system is too large, so in practice it is generally logged in as a normal user, and can be switched to the root user when needed. Switch user identities using the SU command.However, we may not want all users to be able to switch to root, but just want to specify that a user can switch, such as allowing only Zhangsan users to switch ide
Help! Su and sudo-general Linux technology-Linux technology and application information. The following is a detailed description. I have just installed Ubuntu7.1 i386 today.
It's okay to enter other commands on the terminal.
Enter the su or sudo command to change the password for the root account.
Once you need to enter the password, the keyboard does not respond. You cannot enter the root account to per
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
In centos, the system prompts "Incorrect password" when using Su, but the password is correct.
After searching for a long time, use the following method:
1. ViewIn the/etc/PAM. d/su file, check whether the following sentence is valid.Auth required pam_whell.so use_uid
Check outDoes the/etc/login. defs file have the following sentence?Su_wheel_only Yes
If yes, comment out.
2. Check whether the attribu
UbuntuAfter installation, the root user is locked by default and cannot log on or "Su"Root. Some people say this is a bad practice, especially for servers. I think it should be more secure for desktop users, but it can be set to "allow Su" for servers.To root, but root users are not allowed to log on directly ". For the convenience of development, I use this method on both the desktop and server.◆ Allow
First, prohibit non-Whell group users to switch to root1. Modify/ETC/PAM.D/SU ConfigurationThe code is as follows:[[email protected] ~]# vi/etc/pam.d/su← Open this configuration file#auth required/lib/security/$ISA/pam_wheel.so use_uid← Find this line and remove the "#" from the beginning.2. Modify the/etc/login.defs fileThe code is as follows:[[email protected] ~]# echo "su_wheel_only yes" "/etc/login.defs
Using sugroup allows the system administrator to restrict who can access which account by using su through group members. You can use the NOT operator to further restrict access control. When being audited, you need to report on the sugroup members and the accounts they can access using su. This includes generating access reports for sugroup members, which are generally compliance tasks.
Sugroup Overview
In CentOS, because the root permission is too large, it is generally not used. You can only log on to the root user to execute management tasks in some special circumstances. Generally, the su and sudo commands are used for temporary root permissions. I. Comparison of su and sudo commands: after a common user enters the su command, the system will prompt the user
I. Introduction and usage of the SU command1. Introduction to the SU commandSu is used for switching between users. However, the previous user remains in the login state. This toggle requires password authentication if the superuser switches to normal or virtual users without a password, while the normal user switches to any other user.2. Common usage DescriptionOrdinary users do not add parameters and use
Su -- Super User
Su or su root: Convert the current identity to root, and the User Shell has not changed. therefore, some system commands cannot be used. su-, Su-l, or Su-l root can completely convert the current environment to t
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.