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. 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. The only real advantage to using su is that you are using root's password as opposed to your own. bashrc are executed and you will find yourself in roots home directory with roots environment. 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). sudo su - This time it is a login shell, so /etc/profile. 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. sudo asks for your password and (assuming you have sudo rights) executes a command with root privileges ( sudo reboot. su (without username) start a shell for user root (after asking for the root password). Unless you're root, you'll be asked the password for someuser. public IP addresses or hostnames, account numbers, email addresses) before posting!Äoes this sidebar need an addition or correction? Tell me here Here are the differences: su starts a shell for user someuser.![]() Unless youre root, youll be asked the password for someuser. ![]() If you fix the problem yourself, please post your solution, so that others can also learn. ![]() â» 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. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |