• Goun@lemmy.ml
    link
    fedilink
    arrow-up
    6
    ·
    1 day ago

    You can actually also launch a full interactive shell with sudo -i but it’s not really used much as it’s easier to just type su and use that tool instead.

    su asks for the target user password, while sudo asks for your password, tho, if I’m not mistaken

    • Kinda. Yes Su asks for the target user password unless run as root eg sudo su. Sudo checks against the sudoers file and based on the contents decides what to do. You need to be added to the sudoers file or usergroup and the sudo config defines if it asks for ur password the root password or no password I assume their are other options but I never played with them.