![]() $ su jakeĪlso Read: How to Create Normal User in Linux Exit from the Current Logged-in User AccountĪfter switching to another user account to get back to your actual account, execute the exit command in your current terminal session. If you are interested in switching to another user account from your current account, which does not have sudo privileges, you must know their username and account password in order to login. :/home/linuxtldr# Switch from Normal User to Normal User Account If you are not a sudo user, you are still able to switch to the root user account only if you know the root account password as shown. $ sudo su jakeĪlso Read: How to Add Normal User to Sudo Group Switch from Normal User to Root User Account If you want to peek into another userâs account, find out their username and know your current password, and specify both as shown. If the sudo group is part of your current groups, it means that you should be able to execute the commands listed below. $ sudo suĪlso Read: How to Block âsuâ Access for Sudo Users Switch from Sudo User to Normal User Account Using the passwd command Locking & Unlocking Root Account Changing the root password Disabling Root Login over SSH Conclusion Prerequisites For most of the commands used in this tutorial, you will need sudo privileges. If you are a user with sudo privileges, you can easily login to the root user account by knowing your current password, as shown. $ su Īlso Read: Difference Between Su, Sudo Su, Sudo -i, and Sudo -s Switch from Sudo User to Root User Account If you are a root user and interested in logging into another userâs account, use the following command with their username.
0 Comments
Leave a Reply. |