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

Use -man 5 passwd- for details about the -etc/passwd file Pretty print the file

ID: 3709831 • Letter: U

Question

Use -man 5 passwd- for details about the -etc/passwd file Pretty print the file and then print a report at the end. Your report should include: - How many users total on the system - Which users are allowed to login (look at the shell) Output: UID GID Home Directory Username root daemon otes root daemon Shell 0 0/root 1 /bin 2 /sbin /bin/bash /sbin/nologin /sbin/nologin /sbin/nologin /sbin/nologin /bin/sync /sbin/shutdown /sbin/halt /sbin/nologin /sbin/nologin /sbin/nologin /sbin/nologin /sbin/nologin /sbin/nologin /sbin/nologin /sbin/nologin /sbin/nologin adm 3 4 /var/adm adm 4 7 /var/spool/lpd 5 /sbin sync shutdown halt mail operator games ftp nobody systemd-network dbus polkitd tss postfix chrony sshd student boxadd unbound sync shutdown halt mail operator games FTP User Nobody systemd Network Management System message bus User for polkitd Account used by the trousers package to sandbox the tcsd daemon 6 O /sbin /sbin 7 8 12 /var/spool/mail 11 ?/root 12 109 /usr/games 1450 /var/ftp 99 99 / 192 192 / 81 81 / 999 997 / 59 59/dev/null 89 89/var/spool/postfix /sbin/nologin /sbin/nologin /sbin/nologin /bin/bash /bin/false /sbin/nologin 998 996 /var/lib/chrony 7474 /var/empty/sshd Privilege-separated SSH Student User 1000 1000/home/student 1 /var/run/vboxadd 997 996 994 /etc/unbound Unbound DNS resolver There are 23 users on this system The following users can login: shutdown, halt, vboxadd, student, sync, root,

Explanation / Answer

There are total 23 users as you can easily count.

out of those users only 6 can login

those users are

root, sync, shutdown, halt, student and vboxadd

all others can not login because in their shell description their is no login privilages

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote