If you like what I do, send me some Monero:

87ZN8URUY1M6GoXpxou4siDKJkLbLKDhT2RScrauzd4gbRyKgoY2ZX3Ut9WuMtkWebisViSE9EVRzVA1SD4kMdtAUPMiZBC

  • 0 Posts
  • 80 Comments
Joined 2 years ago
cake
Cake day: April 11th, 2024

help-circle




  • 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.