su means “switch user” and by default uses root if a root user exists.
You can use sudo -i, sudo bash (or sudo sh, sudo fish etc), run0 and likely more ways to open a root shell.
But for running a program with root, use sudo, run0 , pkexec or doas.
Actually, you should not run internet-facing programs as root. For example when downloading a repo file, download it without root, move it with root.
But well, most package managers do not care and use don’t use polkit (ask for password when needed). Flatpak, rpm-ostree and some others use polkit well.
su means “switch user” and by default uses root if a root user exists.
You can use
sudo -i
,sudo bash
(orsudo sh
,sudo fish
etc),run0
and likely more ways to open a root shell.But for running a program with root, use
sudo
,run0
,pkexec
ordoas
.Actually, you should not run internet-facing programs as root. For example when downloading a repo file, download it without root, move it with root.
But well, most package managers do not care and use don’t use polkit (ask for password when needed). Flatpak, rpm-ostree and some others use polkit well.
‘su’ can call the king to the blood-soaked battlefield; sudo makes a replaceable squire the king’s proxy instead.
Uhm… whatever you say
Well, look at me learning something new! I guess even if I’ve RTFM, I should RTFM again.