sudo_root(8)
โจ sudo_root(8) โจ
okay bestie, welcome to the System Manager's Manual page for sudo_root ๐ this is the one that explains how to run administrative commands, and honestly? it's giving "you have main character energy AND root energy, but responsibly" ๐
๐ธ NAME ๐ธ
sudo_root โ how to run administrative commands ๐ซถ
โจ SYNOPSIS โจ
sudo command
sudo -i
๐ INTRODUCTION ๐
okay so. by default, the password for the user "root" (the system administrator) is locked. this means you cannot login as root or use su, periodt. instead, the installer will set up sudo to allow the user that was created during install to run all administrative commands. it's the installer being your wingman fr fr ๐ง
this means that in the terminal you can use sudo for commands that require root privileges. all programs in the menu will use a graphical sudo to prompt for a password. when sudo asks for a password, it needs your password โ this means that a root password is not needed. no extra password to remember, we love that for us ๐
to run a command which requires root privileges in a terminal, simply prepend sudo in front of it. to get an interactive root shell, use sudo -i. that's it. that's the whole vibe check โ
๐ ALLOWING OTHER USERS TO RUN SUDO ๐
by default, only the user who installed the system is permitted to run sudo. to add more administrators, i. e. users who can run sudo, you have to add these users to the group 'sudo' by doing one of the following steps:
- in a shell, do
sudo adduser username sudo
- use the graphical
"Users & Groups"program in the"System settings"menu to add the new user to thesudogroup.
pick your fighter, both slay ๐
๐ BENEFITS OF USING SUDO ๐
the benefits of leaving root disabled by default include the following:
- users do not have to remember an extra password, which they are likely to forget. (real. so real.)
- the installer is able to ask fewer questions.
- it avoids the
"I can do anything"interactive login by default โ you will be prompted for a password before major changes can happen, which should make you think about the consequences of what you are doing. a little friction is a feature, not a bug ๐ sudoadds a log entry of the command(s) run (in/var/log/auth.log). receipts, always receipts ๐ฅ- every attacker trying to brute-force their way into your box will know it has an account named
rootand will try that first. what they do not know is what the usernames of your other users are. sneaky queen behaviour โจ - allows easy transfer for admin rights, in a short term or long term period, by adding and removing users from the
sudogroup, while not compromising the root account. sudocan be set up with a much more fine-grained security policy.- on systems with more than one administrator using
sudoavoids sharing a password amongst them. no shared passwords, no drama ๐ธ
๐ญ DOWNSIDES OF USING SUDO ๐ญ
although for desktops the benefits of using sudo are great, there are possible issues which need to be noted:
- redirecting the output of commands run with
sudocan be confusing at first. for instance consider
sudo ls > /root/somefile
will not work since it is the shell that tries to write to that file. you can use
ls | sudo tee /root/somefile
to get the behaviour you want. (yes bestie, tee is the moment, trust ๐ซถ)
- in a lot of office environments the ONLY local user on a system is
root. all other users are imported using NSS techniques such asnss-ldap. to setup a workstation, or fix it, in the case of a network failure wherenss-ldapis broken, root is required. this tends to leave the system unusable. an extra local user, or an enabled root password is needed here. ngl this one's a real one ๐ญ
๐ GOING BACK TO A TRADITIONAL ROOT ACCOUNT ๐
this is not recommended! like, the manpage literally opens with that. please read it again. ๐
to enable the root account (i.e. set a password) use:
sudo passwd root
afterwards, edit the sudo configuration with sudo visudo and comment out the line
%sudo ALL=(ALL) ALL
to disable sudo access to members of the sudo group.
that's it. that's the whole downgrade arc ๐
๐ SEE ALSO ๐
sudo(8), https://wiki.ubuntu.com/RootSudo
and that's the page bestie!! ๐ this was sudo_root(8) from the System Manager's Manual, dated February 8, 2006 โ yes she's an icon from 2006 and she's still serving โจ go run your administrative commands responsibly, hydrate, and remember: your password, your power ๐๐๐ฆ
๐ฆ where this page comes from
- ubuntu noble: sudo 1.9.15p5-3ubuntu5 ยท ISC
- ubuntu noble: sudo 1.9.15p5-3ubuntu5.24.04.4 ยท ISC
- ubuntu noble: sudo-ldap 1.9.15p5-3ubuntu5 ยท ISC
- ubuntu noble: sudo-ldap 1.9.15p5-3ubuntu5.24.04.4 ยท ISC
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms