Question

In: Computer Science

This lab will explore the password files. a) Open a terminal window and type less /etc/passwd....


This lab will explore the password files.
a) Open a terminal window and type less /etc/passwd. Which line describes the root account?
b) Type ls –l /etc/passwd. Who is the owner of the passwd file? What are the permissions?
c) Type less /etc/shadow. What is in the password filed for most of these accounts?
d) Type ls –l /etc/shadow. Who owns this file and how do the permissions differ from the /etc/passwd file?
e) Type cat /etc/default/useradd. What is the default directory used when creating users?
f) To create a new user type sudo useradd –m Tim.
g) After the user is created type cat /ect/passwd. What UUID does Tim have?
h) Give Tim a password. Type passwd Tim. Enter the password twice.
i) Try to login as your new user. Did it work? Log back in as yourself.
j) Describe the difference between the passwd and shadow files. Why was the passwords split into two files?

Solutions

Expert Solution

a)

b)

c)

d)

f and g) 2344

h) password = Game1

i) Yes, it worked with the new password = Game1

j) passwd gives user account details, shadow gives user password details. It has 2 files because one is passed file and another is shadow file.


Related Solutions

LAB 7.1 MANAGING USER ACCOUNTS STEP 1. Open a terminal window in linux.                               &n
LAB 7.1 MANAGING USER ACCOUNTS STEP 1. Open a terminal window in linux.                                         STEP 2. Execute the correct command to display user account information (including the login shell and home directory) for the bin account.                                         STEP 3. Execute the correct command to display user password information (including the encrypted password and password aging) for the bin account.                                         STEP 4. The command in step 3 should have failed. Execute the correct su command to change your account so...
Open a terminal: a) type the command ps –ef | less to view the first few...
Open a terminal: a) type the command ps –ef | less to view the first few processes running on the system. Which process has the ID of 1? b) What character do most processes have in the terminal column? What does this indicate? c) What user started the most of these processes? d) Which parent process started the most processes? e) Type ps –el | less. What character is in the state column for most processes? What does this indicate?...
$ grep/ sbin/nologin$/etc/passwd| cut -d “:”-f1| short| less explan the output
$ grep/ sbin/nologin$/etc/passwd| cut -d “:”-f1| short| less explan the output
Open a terminal a) Type ps –ef | grep bash. Record the PID. b) Open a...
Open a terminal a) Type ps –ef | grep bash. Record the PID. b) Open a second terminal (leaving the first active) and type kill –l to see the available kill signals c) Type kill -2 (# of the recorded PID). Did the first terminal session close? d) Type kill -3 (# of the recorded PID). Did the first terminal session close? e) Type kill -15 (# of the recorded PID). Did the first terminal session close? f) Type kill...
can you please do the following? (8) Step 8: type the following command: sort /etc/passwd |...
can you please do the following? (8) Step 8: type the following command: sort /etc/passwd | head -5 What is the output? Notice that this pipe can be simplified cat /etc/passwd | head -5 What is the output for this? You could accomplish the same thing more efficiently with either of the two commands: head -5 /etc/passwd head -5 < /etc/passwd (9) Step 9: The command displays all the files in the current directory sorted by file size ls -al...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT