![]() ![]() Despite all this, SU still has its own use, mostly when switching to other user accounts to gain access to their files. This is probably what led to the misconception of SUDO as super user do. SUDO is also used by many ordinary Linux users to do tasks that require super user access. With SUDO, there is no need to share passwords as it can elevate the privileges of individual users and allow them to have access to the things that they need but not to those they don’t.īecause of these advantages, SUDO is preferred by many. Just add to the list of the command '-t sudo su' And it works like charm. It is a major weakness as there is no limitation in place for each user. If you go to the extension.js and search the running command (it is an array of functions with string output, joined by one empty space), you will find it named l. With SU, it is common practice to create a root account and share it to those who need it via SU. The log makes it easier to track where mistakes have been made and to correct them. Another advantage of SUDO is the log that is kept for every command. This provides a lot of flexibility, especially in systems with a lot of users. The constraints are placed in a conf file that can be edited. These options are documented under man sudo. The -u user option means to run the command as the specified user rather than root. The -s option means to run the shell specified in the environment variable SHELL if this has been set, or else the user's login shell. SUDO has become a favorite among admins due to the ability to define constraints on whether a user can use SUDO and what commands he can use with it. sudo -su user is short for sudo -s -u user. ![]() sudo lets you set users up to do things so that they do not need. This is very useful when you only want to do a single command that requires root access succeeding commands would also be given root access. su requires that you know the password of the user you are suing to, if you are not root. With SUDO, another command is often attached and executed automatically after the authentication succeeds. The most noticeable difference between the two would be the usage as SU is commonly used on its own or with the substitute username as a parameter. SU stands for substitute user and SUDO means substitute DO although most people incorrectly think that it stands for super user as it is the account that is often used. In the Linux and UNIX environments, you need to use either SU or SUDO in order to gain momentary access to another account, usually the root, while logged on as another.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |