Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please help. in Ubuntu Manipulating /etc/passwd directly a) Copy (or type) the following user information line (values separated by colon) and paste it to the

Please help. in Ubuntu

image text in transcribedimage text in transcribed

Manipulating /etc/passwd directly a) Copy (or type) the following user information line (values separated by colon) and paste it to the last line in the file, and save the file. The second part is the hashed value from last exercise it4423test:Npge08pfz4wuk:1010:1010:it4423 test user:/home/it4423test:/bin/sh b) Create the home directory "/home/it4423test" and change the owner to "it4423test". Use "s -" to verify it. chown it4423test /home/it4423test c) Login with the new user "it4423test" and the password is password" (the "Npge08pfz4wuk" part is the hash value of "password" - don't use it in the real life). If you use Gnome, you can quickly switch to the account using the switch menu (see figure 1 below). Or use the "su" command d) Login with the root account (or simply logout if you switched user using the menu) e) Delete the test user using the "userdel" command f) Question: how do you generate the encoded password used in Linux? For example, the encoded password Npge08pfz4wuk6. How and what tools can we use to generate one based on clear text? Do some research on this 3:35 PM root Lock Screen Ctrl+Alt+ Switch From root... JZheng Jack Zheng Bl it4423 test user roger Log Out... Suspend Hibernate Restart.. Shut Down... Query users and groups a) Login with all your new users (use the login command). Use w" or "who" command to see current users. Compare the output format between the two commands b) Use "whoami", or who am i" command to see your own login. Compare the output format between c) Search for users: how to search for a user using part of his login name? (Hint: use "grep".) Can you d) How to list all members in a particular group? Can you write a script to do it? the two commands write a script to do it? Manipulating /etc/passwd directly a) Copy (or type) the following user information line (values separated by colon) and paste it to the last line in the file, and save the file. The second part is the hashed value from last exercise it4423test:Npge08pfz4wuk:1010:1010:it4423 test user:/home/it4423test:/bin/sh b) Create the home directory "/home/it4423test" and change the owner to "it4423test". Use "s -" to verify it. chown it4423test /home/it4423test c) Login with the new user "it4423test" and the password is password" (the "Npge08pfz4wuk" part is the hash value of "password" - don't use it in the real life). If you use Gnome, you can quickly switch to the account using the switch menu (see figure 1 below). Or use the "su" command d) Login with the root account (or simply logout if you switched user using the menu) e) Delete the test user using the "userdel" command f) Question: how do you generate the encoded password used in Linux? For example, the encoded password Npge08pfz4wuk6. How and what tools can we use to generate one based on clear text? Do some research on this 3:35 PM root Lock Screen Ctrl+Alt+ Switch From root... JZheng Jack Zheng Bl it4423 test user roger Log Out... Suspend Hibernate Restart.. Shut Down... Query users and groups a) Login with all your new users (use the login command). Use w" or "who" command to see current users. Compare the output format between the two commands b) Use "whoami", or who am i" command to see your own login. Compare the output format between c) Search for users: how to search for a user using part of his login name? (Hint: use "grep".) Can you d) How to list all members in a particular group? Can you write a script to do it? the two commands write a script to do it

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Filing And Computer Database Projects

Authors: Jeffrey Stewart

2nd Edition

007822781X, 9780078227813

More Books

Students also viewed these Databases questions

Question

6. Discuss the steps involved in conducting a task analysis.

Answered: 1 week ago

Question

8. Explain competency models and the process used to develop them.

Answered: 1 week ago