[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: to root or not to root



K0LNY, le jeu. 01 juin 2023 22:41:56 -0500, a ecrit:
> I noticed that su - did not work for me, I had to do sudo su -.
> I don't know if this was because I didn't install a root account.

Yes, that's it. "su -" is meant to switch to another account by using
its password. But if that other account doesn't have any password, you
thus can't switch. sudo, however, wants your password, not root's
password. Now, instead of "sudo su -", which is redundant (sudo already
switches to root, no need for su), you can use "sudo -i"

Samuel


Reply to: