• boredsquirrel@slrpnk.net
    link
    fedilink
    arrow-up
    4
    ·
    edit-2
    3 days ago

    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.