sudo user
sudo user
Posted Aug 20, 2025 14:09 UTC (Wed) by jzb (editor, #7867)In reply to: sudo user by bluca
Parent article: Lucky 13: a look at Debian trixie
Posted Aug 20, 2025 17:48 UTC (Wed)
by josh (subscriber, #17465)
[Link] (11 responses)
Posted Aug 21, 2025 10:55 UTC (Thu)
by alx.manpages (subscriber, #145117)
[Link] (10 responses)
I want a root password for login as root,
Which means that with the current installer I currently am forced to set up sudo(8) after installation.
Posted Aug 21, 2025 12:43 UTC (Thu)
by rschroev (subscriber, #4164)
[Link] (9 responses)
Posted Aug 21, 2025 19:07 UTC (Thu)
by alx.manpages (subscriber, #145117)
[Link] (8 responses)
Yup, that's an alternative I always thought should be possible.
I never tried it, though. Since I know my approach works, it always felt risky to try it in the other way. :)
Also, I have a sudoers file that I just cp(1) into /etc/sudoers.d and it works, which is easy. (Although it is painful to install and configure sudo(8) until I actually have sudo(8).)
Posted Aug 30, 2025 21:23 UTC (Sat)
by josh (subscriber, #17465)
[Link] (7 responses)
Posted Aug 31, 2025 5:49 UTC (Sun)
by alx.manpages (subscriber, #145117)
[Link] (6 responses)
- Enter password for root:
- Do you want sudo(8) for the main user?
(Of course, with more wording than that.)
Posted Oct 1, 2025 12:50 UTC (Wed)
by josh (subscriber, #17465)
[Link] (5 responses)
For an expert-level install, the simplest improvement would be to reorder the prompts. First set up an initial user. If not skipped, prompt for setting up sudo (default yes, skipped and set to no if no initial user). And after that, ask "don't set up a root password (default)"/"use the same password"/"set a different root password", with options disabled depending on previous questions.
Posted Oct 14, 2025 11:34 UTC (Tue)
by taladar (subscriber, #68407)
[Link] (4 responses)
Posted Oct 14, 2025 12:19 UTC (Tue)
by dskoll (subscriber, #1630)
[Link] (1 responses)
If you can't log in as root, then you have to fix a broken boot by booting from external rescue media, I guess. Which can be annoying if your machine is remote, but you have a KVM-over-IP box. So I too always set a root password on my machines.
Posted Oct 16, 2025 8:24 UTC (Thu)
by taladar (subscriber, #68407)
[Link]
Posted Oct 14, 2025 16:17 UTC (Tue)
by PhilippWendler (subscriber, #126612)
[Link] (1 responses)
Posted Oct 14, 2025 18:11 UTC (Tue)
by rschroev (subscriber, #4164)
[Link]
"Cannot open access to console, the root account is locked.
AFAIK that's the main reason why people often recommend to set a root password.
sudo user
sudo user
and I also want sudo(8) for my primary account.
sudo user
sudo user
sudo user
sudo user
sudo user
sudo user
sudo user
sudo user
You just get a shell without password prompt.
sudo user
sudo user
See sulogin(8) man page for more details."