HACKER Q&A
📣 beepbooptheory

How long is your root user password


It goes without saying perhaps, but I'm not talking about servers or anything, just the root user of your everyday machine. How much do you type when you sudo? I have gone both long and short. Give reasons.


  👤 cobbaut Accepted Answer ✓
42 characters obviously.

I always remove sudo from my laptops, su works fine inside tmux. Since the laptop screen is locked when I'm away, the tmux session (with root) can stay active for weeks, so not much typing the root pw.

My everyday remote machines all have an ssh-key for root (and a very complex password that I have printed on a paper at home).

I use pwgen -sync "${1:-42}" -1


👤 simonblack
I dislike sudo intensely. My first job when installing any distro without a root password is to give root a password, and from then on I use 'su -'

I have a special 'goroot' script which launches an xterm in a white-on-black color-scheme and requires the root password, as distinct from my normal-user xterm script which launches xterm in a black-on-white color-scheme.

Oh, how long?? 9 characters.


👤 BuildTheRobots
If you're using sudo, then the root password is irrelevant; it's the local users password that elevates permissions.

I see this as both good and bad - users should know their own private credential (rather than the shared "secret" root passwd), but as it's a password they use regularly (potentially multiple times a day), it's easy for people to use something less secure than they otherwise would for "root".


👤 slater
nice try, hacker!