you need
  • - a computer with a Unix-like operating system;
  • - credentials root.
Guide
1
When working in a text console or terminal emulator to the graphical environment if you need to perform multiple commands with the privileges of root, use the su.Get information on the work of the program, requesting an internal inquiry with the option --help:
su --help
can also get acquainted with the man or info documentation:
man su
info su
Switch to root, running the su command and entering a password.After the end of the command exit, to end the session.
2
to switch to root to comply with a single command it is advisable to use the command sudo.Before applying it is also desirable to get acquainted with the man,
info documentation, or built-in help, because it takes a lot of options, and many of them can be useful (for example, -H, -S).However, to execute the command as root is enough to run sudo with a single parameter, which is a string containing the command.For example:
sudo env | grep SUDO
You may need to enter a password on their own account.Note that to allow using sudo your user must be in the list of permissions that specifies the file / etc / sudoers.
3
Switch to root, you can just by signing in with the credentials of the user on a text console.Go to the free console by pressing Alt + Fx (or Ctrl + Alt + Fx when working in a graphical environment), where Fx - one of the twelve function keys.As a user name, enter root.Then enter the password.
How to switch to root
4
when working in a graphical environment will not switch to root in the same way as in Windows, you can switch to an administrator (by changing the user).However, you can unload the X-Server and re-run it as root.Try to complete the execution of X-server, leaving the graphical environment.If he again starts or restarts, select the console log on the login screen.
5
logged on with the credentials root on a text console.Run the command startx to start the GUI.
How to switch to root