Configuring administrator access with sudo
By now, we've already used sudo
quite a few times in this book. At this point, you should already be aware of the fact that sudo
allows you to execute commands as if you were logged in as root
. However, we haven't had any formal discussion about it, yet nor have we discussed how to actually modify which of your user accounts are able to utilize sudo
.
On all Linux systems, you should protect your root
account with a strong password and limit it to be used by as few people as possible. Using sudo
is an alternative to using root
, so you can give your administrators access to perform root
tasks with sudo
without actually giving them your root
password. In fact, sudo
allows you to be a bit more granular. Using ...
Get Mastering Ubuntu Server now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.