ubuntu:users:use_root_account
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
ubuntu:users:use_root_account [2019/12/08 13:10] – created peter | ubuntu:users:use_root_account [2020/07/15 09:30] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 9: | Line 9: | ||
---- | ---- | ||
- | ===== Use the installation user account ===== | + | ===== Use sudo interactive mode ===== |
+ | |||
+ | <code bash> | ||
+ | sudo -i | ||
+ | </ | ||
+ | |||
+ | Enter your password, and you will switch into privileged mode. | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Switch to the sudo account ===== | ||
The user account added during installation is setup as an administrative account with sudo. | The user account added during installation is setup as an administrative account with sudo. | ||
- | To get root account' | + | You can switch to root account' |
<code bash> | <code bash> | ||
Line 49: | Line 59: | ||
---- | ---- | ||
- | ===== su command restriction | + | ==== su command restriction ==== |
It is recommended to restrict which users can su to root. | It is recommended to restrict which users can su to root. | ||
- | |||
- | Limit or prohibit shells in sudoers config. | ||
- | |||
<code bash> | <code bash> | ||
Line 68: | Line 75: | ||
</ | </ | ||
- | Add users to this group. | + | <WRAP info> |
+ | **NOTE:** The **pam_wheel** PAM module is used to enforce the so-called wheel group. | ||
+ | |||
+ | By default it permits root access to the system if the applicant user is a member of the wheel group. | ||
+ | </ | ||
+ | |||
+ | Add users to this group, who are allowed to issue the **su** command. | ||
<code bash> | <code bash> |
ubuntu/users/use_root_account.1575810634.txt.gz · Last modified: 2020/07/15 09:30 (external edit)