2018-07-29 11:01:46 +00:00
ifdef::context[:parent-context: {context}]
:context: performing-administration-tasks-using-sudo
2018-01-03 16:15:39 +00:00
[id='performing-administration-tasks-using-sudo']
= Performing administration tasks using sudo
2019-03-20 22:42:41 +00:00
include::{partialsdir}/unreviewed-message.adoc[]
2018-01-03 16:15:39 +00:00
How to perform tasks requiring *root* privileges without logging in as *root*.
2018-07-27 14:38:30 +00:00
include::{partialsdir}/con_what-is-sudo.adoc[leveloffset=+1]
2018-01-03 16:15:39 +00:00
[id='how-to-use-sudo']
== How to use sudo
2018-07-27 14:38:30 +00:00
include::{partialsdir}/con_using-sudo-assign-admin-privileges.adoc[leveloffset=+2]
2018-01-03 16:15:39 +00:00
2018-07-27 14:38:30 +00:00
include::{partialsdir}/proc_using-same-password-for-root-as-user.adoc[leveloffset=+2]
2018-01-03 16:15:39 +00:00
2018-07-27 14:38:30 +00:00
include::{partialsdir}/con_logging-sudo-commands.adoc[leveloffset=+2]
2018-01-03 16:15:39 +00:00
[[warning-and-caveats]]
== Warnings and caveats
You must use the user account you created following the installation process, at first boot, for daily use and the *root* account only for system administration. Avoid using *root* for any non-administration usage, since the account makes it easy to create security or data risks.
There are several potential risks to keep in mind when using the [command]`sudo` command. You can avoid them by editing the [filename]`/etc/sudoers` configuration file using [command]`visudo` command.
2018-07-27 14:38:30 +00:00
include::{partialsdir}/con_sudo-timeout.adoc[leveloffset=+2]
2018-01-03 16:15:39 +00:00
2018-07-27 14:38:30 +00:00
include::{partialsdir}/con_using-sudo-access-docker.adoc[leveloffset=+2]
2018-01-03 16:15:39 +00:00
2018-07-27 14:38:30 +00:00
include::{partialsdir}/proc_run-docker-using-sudo.adoc[leveloffset=+2]
2018-01-03 16:15:39 +00:00
2018-07-27 14:38:30 +00:00
include::{partialsdir}/con_using-sudo-without-password.adoc[leveloffset=+2]
2018-07-29 11:01:46 +00:00
ifdef::parent-context[:context: {parent-context}]
ifndef::parent-context[:!context:]