UbuntuThis forum is for the discussion of Ubuntu Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
su requires you to use the target users password when prompted whereas sudo requires you to use YOUR password when prompted.
That is to say "sudo su - root" would require you to use YOUR password whereas simple "su - root" would require you to use root's password.
sudo is just a tool for granting users access to commands with root permission without actually giving them root. (Though giving someone sudo access to "su - root" means they can do anything they want after they become root including changing the root password.)
In our shop we don't give "sudo - root" but do give things like "sudo su - oracle" to DBAs so they can become the Oracle user to administer Databases. We don't give them access to Oracle direct login because there is no audit log. We don't allow the Oracle user to change its own password.
Are you on Ubuntu? If so,note that the root account is disabled by default. To enable it, enter "sudo passwd root". Once you do this, Ubuntu will behave normally---except that typical GUI admin utilities will still ask for your user password, and not the root password. (I assume this can be changed, but I've never looked into it.)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.