You Asked: How Do I Switch from One User to Another in Linux?
Contents How Do I Switch Users in Linux? to Change to a Different User and Create a Session as If the Other User Had Logged in from a Command Prompt, Type “Su...
Contents
How do I switch users in Linux?
To change to a different user and create a session as if the other user had logged in from a command prompt, type “su -” followed by a space and the target user’s username. Type the target user’s password when prompted.
How do I switch users in Ubuntu?
To switch to the root user on Ubuntu-based distributions, enter sudo su in the command terminal. If you set a root password when you installed the distribution, enter su. To switch to another user and adopt their environment, enter su – followed by the name of the user (for example, su – ted).