quick-docs/modules/ROOT/pages/_partials/proc_using-same-password-for-root-as-user.adoc
2018-07-27 18:53:34 +02:00

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.