Using sudo does mean you only need to remember one password, so that may make you more inclined to use a more complex password. Assuming you can stop yourself from logging into a graphical system as root ) having a root password does not inherently make your system less secure. Because sudo is granular and more secure than su, more Linux distributions set it as the default superuser command. su command is an abbreviation for substitute user because it is used for switching to another user during a normal login session, but it is often mistaken as an abbreviation for super user as mainly su command is used for getting super user privileges as when su command is run without a username, we automatically. The reason this can be an advantage is that you can enforce a more complicated root password since it won't need to be used everyday, while keeping your user password more "simple" (obviously for security you would want all your passwords to be complicated, but just listing all the advantages/disadvantages).įor a single-user system (meaning, your personal laptop or desktop) there's really no clear winner. sudo -i is basically the same as running su -. The major difference between su & su - commands in Linux. The only real advantage to using su is that you are using root's password as opposed to your own. You can also take more fine-grained control of a user's access - for example, you could give a user the ability to run your package manager using sudo, but restrict them from using any text editors (meaning they could update the system, but couldn't modify configuration files). As I said above, using sudo also means that you can grant and revoke admin rights from a user without changing the password to the root account. Using sudo means that you can disable root login completely, preventing an irresponsible user from logging into a graphical environment as root and mucking everything up. public IP addresses or hostnames, account numbers, email addresses) before posting!ĭoes this sidebar need an addition or correction? Tell me here Note: ensure to redact or obfuscate all confidential or identifying information (eg. Passing a single hyphen is identical to passing -l or -login. If you fix the problem yourself, please post your solution, so that others can also learn. 1 Answer Sorted by: 26 When you provide a double-hyphen the experience you will have is identical to if you had just executed sudo su without any hyphen. ✻ Smokey says: join us on our journey to a sustainable future! If you're posting for help, please include the following details, so that we can help you more efficiently: Any distro, any platform! Explicitly noob-friendly.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |