After you install Ubuntu 16.04, you want to use Super privilege to operate the system.
Use the command Su- switch Super user, prompt for password, but how all wrong, the information found on the Internet is not enabled root permission, so according to the method provided on the Internet to enable root permissions.
One. Set Enable root permissions
1. Enter the command in the terminal
2. Enter the password after entering the profile, add a line, and then save the exit.
3. Set a new password for the root user and log in.
Two.su, sudo, Su-
1. su and sudo
su is used for switching between users
sudo is used by a normal user to execute a specified command using root privileges. No need to know the root password
2. su and Su-
Su just switches the root identity, but the shell environment is still a normal user's shell
Su-even the user and shell environment are switched to root. The PATH environment variable error does not occur unless you switch the shell environment. After the SU switch to the root user, PWD, found that the working directory is still the normal user's working directory, and after the Su-command switch, the working directory becomes the working directory of root. Use the echo $PATH command to see how the Su and Su-future environment variables are different.
To switch from the current user to another user, you should use the Su-command.
Ubuntu16.04 Enable root permissions