Switch to the superuser account with root's environment. The sudo su - username would switch to that username's account with an environment that you would expect to see when you logged in as that user. You can use sudo su - to switch to the superuser account with root's environment. You can use sudo su to switch to the superuser account. However, if you want to run a command as another user, you need to specify that with -u. You can specify a user with -u, for example sudo -u root command is the same as sudo command. To run a command as the root user, use sudo command. To see the commands that are available for you to run with sudo, use sudo -l. Of course, on your personal system, you have access to the root account, and you are effectively the system administrator as well. The sudo configuration is typically controlled by the system administrator and requires root access to change. If the sudo configuration permits access, that command is executed. When you execute the sudo command, you are prompted for your password. This could eliminate some issues that arise from using shared passwords in generic accounts. One of the advantages of using sudo over the su command is that you don't need to know the password of the other user. It is commonly used to install, start and stop applications that require root priviledges. This why sudo is referred to as superuser do. Like su, if no username is specified, it assumes that you were trying to run commands as the superuser. The sudo allows you to run programs with the security priviledges of another user. The sudo - Super User DoĪnother way to switch users or execute commands as others is to use the sudo command. This lesson will cover how to switch to other accounts using sudo command.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |