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