This timestamp is often renewed if the user issues sudo with the -v flag. Once a user has been authenticated, a timestamp is recorded and also the user could use sudo without a password for a brief period of time (5 minutes, unless configured differently in sudoers). By default, this can be the user’s password, not the root password itself. The real and effective uid and gid of the supplying user are then set to match those of the target user account as laid out in the passwd file.īy default, sudo needs that users authenticate themselves with a password. The behavior of the sudo command is controlled by the /etc/sudoers file on your system. On the other hand, the system administrator can share the root password (which is not the recommended method), so that normal users of the system can access the root account via the sudo command. Basically, the sudo command allows a permitted user to execute a command as the superuser or another user such as modify important system configuration files, remove packages, create users and groups, install and update. In the most of the Linux operating system, sudo (“superuser do”, “switch user do”) permits a user with proper permissions to execute a command as another user, like the superuser. It is very important that the Linux user understand sudo command to increase security and prevent unexpected things, that the user have to go through. The sudo command is one of the most important and commonly used command in Linux. In this post, we will discuss ‘sudo’ command and we will show you sudo command examples.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |