In the above example, you are switching to root and you need the root password. Most often, the user account you switch to is the root account but it can be any account on the system. You are basically switching to a particular user and you need the password for the user you are switching to. Su, on the other hand, is an acronym for switch user or substitute user. The theory behind using sudo is that the act of issuing the sudo command before any command you run makes you think more about what you're doing and hopefully make fewer mistakes with an account that possesses unlimited power. How well do you know Linux? Take a quiz and get a badge.
0 Comments
Leave a Reply. |