CentOS under the command line to achieve the ordinary user and root user switching instances
- 2020-10-23 20:23:46
- OfStack
CentOS realizes the switch between ordinary users and members management permissions
The su command is used to convert user attributes
Ordinary users switch to root users:
There are multiple methods
1) su - > The enter - > Enter the root password
2) su root - > The enter - > Enter the root password
root user switches to normal user: su "Normal user name"