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
Ubuntu enters root permission command--sudo and su command details
Ubuntu User Management sudo means super-user do, which allows the current user to temporarily execute this command as the administrator's identity root.Su is used to
Open a Command WindowInput command: sudo passwd rootThen follow the steps in.The differences between the Su and SU commands:The most essential difference between the SU command and the Su-command is that the former simply switches the root identity,
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
Today, we will introduce two Ubuntu commands: sudo and susudo, which are called super-userdo, so that the current user can temporarily run this command as the root administrator. Su is used to change the current user. suroot is used to switch the
The commands for switching users in Linux are Su or Su-.The most essential difference between the SU command and the Su-command is that the former simply switches the root identity, but the shell environment is still the shell of the normal user,
After Ubuntu has just been installed, running the SU command in terminal will require a password, however, no matter what the loss will be wrong, the direct return is also wrong, because Root does not have a default password, need to manually set.To
After Ubuntu has just been installed, running the SU command in terminal will require a password, however, no matter what the loss will be wrong, the direct return is also wrong, because Root does not have a default password , need to manually set.
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
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.
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.