How Do I Change User Mode in Linux?
Contents 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...
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 to single user mode in Linux?
In the GRUB menu, find the kernel line starting with linux /boot/ and add init=/bin/bash at the end of the line. Press CTRL+X or F10 to save the changes and boot the server into single user mode. Once booted the server will boot into root prompt.
Must Read
How do I change from root to user in Linux?
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).