Thank you for your response, you are correct. It is exactly as follows: with su, you need to enter the password of the user you want to switch to (or the root password if you are switching to root). In the case of sudo, you need to enter your own user password to execute commands with superuser privileges, provided you have the appropriate permissions in the /etc/sudoers file. These passwords are not necessarily the same.