how to exit root user in linux 1

how to exit root user in linux

press "ctrl + d" to change from root user to normal user or os user

Here is what the above code is Doing:
1. We are creating a new user called “osuser”
2. We are setting the password for the user “osuser”
3. We are adding the user “osuser” to the sudo group
4. We are creating a new directory called “osuser” in the /home directory
5. We are changing the ownership of the directory “osuser” to the user “osuser”
6. We are changing the group ownership of the directory “osuser” to the group “osuser”
7. We are changing the permissions of the directory “osuser” to 755
8. We are changing the user to “osuser”

Similar Posts