![]() ![]() You will be prompted for root user’s account password:įig.02: Gnome gksu authentication box for the target userĪs runuser doesn’t run auth and account PAM hooks, it runs with lower overhead than su. Just type gksu and you will be prompted as follows: heir primary purpose is to run graphical commands that need root without the need to run an X terminal emulator and using su directly. Gksu command is a frontend to su and gksudo is a frontend to sudo. How to configure and use sudo tool under Linux operating system.Ī note about GUI tools ( GUI frontend for su and sudo ).See the following links for more information: This allow the delegation of specific commands to specific users on specific hosts without sharing passwords among them. Sudo allows a system administrator to delegate authority to give certain users (or groups of users) the ability to run some (or all) commands as root or another user while providing an audit trail of the commands and their arguments. Unlike su, sudo authenticates users against their own password rather than that of the target user. This is configured in a filed named /etc/sudoers. Sudo executes a command as another user but follows a set of rules about which users can execute which commands as which other users. The log of su command is kept in a system log, typically in /var/log/auth.log (Debian/Ubuntu) or /var/log/secure (RHEL/CentOS). The following command switches to user oracle’s account and shows a list of limits:Īgain, if the correct oracle password is provided, ownership of the session is changed to oracle account. Run command as another user using su command Please note that Linix and some Unix-like systems have a wheel group of users, and only allow these users to su to root. To view the contents of /root directory which is not accessible to normal users, run: Type whoami or id command to verify the owner of a session: Sample the correct root password is provided, ownership of the session is changed to root account. Type su – at your shell prompt to switch to root user account (you must know the root user account su su – root ![]() Su command asks for the target user’s password. It allows a Linux user to change the current user account associated with the running console or shell provided that you know the target user’s password. ![]() The su command allows you to become a super user or substitute user, spoof user, set user or switch user.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |