su to root linux 1

su to root linux

$ su linuxandubuntu
password:
linuxandubuntu@sandy:~$

Here is what the above code is Doing:
1. We are creating a new user called linuxandubuntu.
2. We are setting the password for the user linuxandubuntu.
3. We are adding the user linuxandubuntu to the group sudo.
4. We are setting the home directory for the user linuxandubuntu.
5. We are setting the shell for the user linuxandubuntu.

Similar Posts