CS Baba (Computer Science Baba)
@csbabaa
How to Create User, How to create user password and How to switch user in Linux
\ To create a user:
1. Open a terminal window.
2. Type the following command, replacing username with the name of the user you want to create:
useradd username
3. You will be prompted to enter a password for the user.
4. You can also specify other options for the user, such as the user's home directory, the user's shell, and the user's group membership. For more information on the useradd command, you can refer to the Linux man page: https://linux.die.net/man/8/useradd.
To create a user password:
1. Once you have created a user, you need to create a password for the user. You can do this using the passwd command.
2. Type the following command, replacing username with the name of the user:
passwd username
3. You will be prompted to enter the new password for the user.
4. You will also be prompted to retype the new password.
To switch users:
1. To switch users, you need to log out of the current user and log in as the new user.
2. You can log out of the current user by typing the following command:
logout
3. Once you have logged out of the current user, you can log in as the new user by typing the following command, replacing username with the name of the new user:
su username
4. You will be prompted to enter the password for the new user.
5. Once you have entered the password, you will be logged in as the new user.
Thank you for Watching!
Watch video How to Create User, How to create user password and How to switch user in Linux online without registration, duration hours minute second in high quality. This video was added by user CS BABA 30 July 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 285 once and liked it 17 people.