1,885
edits
Changes
→Root Privilege: root, consolehelper, su, and sudo
The "root" user has full privilege -- she can do anything. There are four ways to gain root privilege:
# '''Login as "root" and enter the root password.''' This is useful when you can't log in as any other user.# '''Use a graphical application that is hooked into the ''consolehelper'' system''', such as <code>system-config-network</code>. You will be prompted for a password (either the user password or the root password, depending on the application configuration) and then the application will run with enhanced privilege. Most of the applications on the Administration menu in the graphical interface work this way.# '''Use the "su" command to switch users ''' (by default, it will switch to the root user). Type <code>su</code> and press enter, and enter the root password when prompted. This is useful when you have a number of system administration commands you want to run in a row. However, you must remember to switch back to your regular user account as soon as you no longer require privilege -- to do so, type <code>exit</code> or press Ctrl-D (for "Done"!).# '''Use the <code>sudo</code> command to switch users for the duration of one command.'''
#* To enable use of the <code>sudo</code> command:
#*# Run <code>visudo</code> as root to edit the <code>sudo</code> configuration file.