quick-docs/modules/ROOT/pages/_partials/con_using-sudo-without-password.adoc

14 lines
505 B
Text
Raw Normal View History

2017-12-14 04:38:18 +00:00
[[concept-using-sudo-without-password]]
= Using sudo without a password
You can enable `root` access without a password specified, allowing any process on your system to become `root`. Add the following line to your `/etc/sudoers` file:
2018-01-03 16:15:39 +00:00
[subs=quotes]
2017-12-14 04:38:18 +00:00
------------
_user_ ALL=(ALL) NOPASSWD: /usr/bin/docker
------------
2018-01-03 16:15:39 +00:00
This will allow `_user_` to access docker without a password.
2017-12-14 04:38:18 +00:00
2018-01-03 16:15:39 +00:00
IMPORTANT: For security reasons, it is recommended that you always use [command]`sudo` with a password.