Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1) From the /etc/passwd file, provide user ID of root, its home directory, and t

ID: 3585993 • Letter: 1

Question

1) From the /etc/passwd file, provide user ID of root, its home directory, and the initial program the system runs for root

2) The /etc/passwd file contains login names used by the system for its operation and for system administration. These include the following login IDs: daemon, bin, sys, and adm. It also includes login names used for networking, such as tcpdump.

a) For each of the lognames listed above, identify the start-up program

b) List 2 more operation and system administration files, their purpose, and their start-up program

Explanation / Answer

Hello there, I want you to know that here i am telling all information about my pc /etc/passwd file entry so you have to type just command : cat /etc/passwd and you will get all the entries and you can answer from there.

1) * first of all, the first entry in /etc/passwd file is the root login information,

* in this file each entry has 7 fields seperated by colon;

* here i am writing an entry of root login from my pc, so that i can explain your answers,so it is root:x:0:0:root:/root:/bin:/bash

* In this entry, 3rd field is user id in our case it is 0 .

* 6th entry is home directory, in our case it is /bin .

* Initial program, which system runs for root is bash shell , which is mentioned as 7th field in our root entry(shows login shell in 7th entry) .

2) Daemon : daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin -- in this last entry is /usr/sbin/nologin, so start program is nologin inside /usr/bin.

bin : bin:x:2:2:bin:/bin:/usr/sbin/nologin -- in this also last entry is /usr/sbin/nologin, so start program is nologin inside /usr/bin.

sys : sys:x:3:3:sys:/dev:/usr/sbin/nologin -- in this also last entry is /usr/sbin/nologin, so start program is nologin inside /usr/bin.

  tcpdump : tcpdump:x:72:72:tcpdump:/:usr/sbin/nologin -- in this also last entry is /usr/sbin/nologin, so start program is nologin inside /usr/bin.

and apart from this, you can search mail, news, proxy, backup as other operation.

so, i think now you got all your answers, you have to just search which log names you want to answer and by seeing its 7th entry you can answer start program for respective log names

Hope, You got all your answers, feel free to ask any query and to give feedback.

Thank you