mirror of
https://pagure.io/fedora-docs/quick-docs.git
synced 2024-12-01 07:39:48 +00:00
25 lines
893 B
Text
25 lines
893 B
Text
[id='proc_using-same-password-for-root-as-user']
|
|
= Using the same password for root as the user account
|
|
|
|
If you use a single user desktop, you might find it convenient to configure [command]`sudo`, so you can use the same password to access *root* as you use for your regular account. To do this, select to be added to the Administration group during installation. To do it at later stage, or to add a different user, use the following procedure:
|
|
|
|
. Become the *root* user:
|
|
+
|
|
----
|
|
$ su -
|
|
----
|
|
+
|
|
. Enter the password for the root account when prompted.
|
|
|
|
. To use your regular password for the root access, run:
|
|
+
|
|
[subs=quotes]
|
|
----
|
|
# usermod _USERNAME_ -a -G groupname
|
|
----
|
|
+
|
|
Replace `_USERNAME_` with your account name
|
|
|
|
. Log off and back on in order to have access to the group.
|
|
|
|
NOTE: When [command]`sudo` prompts you for a password, it expects your user password, not the `root` password.
|