Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using Linux and gawk. what would be a program skeleton key to follow, since I can assume that you wouldn't have the files to have

Using Linux and gawk. what would be a program skeleton key to follow, since I can assume that you wouldn't have the files to have the same output for this program?

image text in transcribed

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: Username UID GID Home Directory Shell Notes /bin/bash /sbinologin /sbinologin /sbinologin /sbinologin /bin/sync /sbin/shutdown /sbin/halt /sbinologin /sbinologin /sbinologin /sbinologin /sbinologin /sbinologin /sbinologin /sbinologin /sbinologin / root root bin daemon adm root bin daemon adm 1 1 /bin 22 /sbin 3 4 /var/adm 47 /var/spool/lpd 5 0 /sbin sync shutdown halt ma 1 operator games ft nobody systemd-network dbus polkitd tss postfix chrony sshd student vboxadd 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 0 /sbin 7 0 /sbin 8 12 /var/spool/mail 11 0 /root 12 100 /usr/games 1450 /var/ftp 99 99 / 192 192 / 81 81 / 999 997 / 59 59 /devull 89 89 /var/spoo1/postfix /sbinologin /sbinologin /sbinologin /bin/bash /bin/false /sbinologin 998 996 /var/lib/chrony Privilege-separated SSH Student User 74 74 /var/empty/sshd 1000 1000/home/student 997 1/var/run/vboxadd 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, 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: Username UID GID Home Directory Shell Notes /bin/bash /sbinologin /sbinologin /sbinologin /sbinologin /bin/sync /sbin/shutdown /sbin/halt /sbinologin /sbinologin /sbinologin /sbinologin /sbinologin /sbinologin /sbinologin /sbinologin /sbinologin / root root bin daemon adm root bin daemon adm 1 1 /bin 22 /sbin 3 4 /var/adm 47 /var/spool/lpd 5 0 /sbin sync shutdown halt ma 1 operator games ft nobody systemd-network dbus polkitd tss postfix chrony sshd student vboxadd 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 0 /sbin 7 0 /sbin 8 12 /var/spool/mail 11 0 /root 12 100 /usr/games 1450 /var/ftp 99 99 / 192 192 / 81 81 / 999 997 / 59 59 /devull 89 89 /var/spoo1/postfix /sbinologin /sbinologin /sbinologin /bin/bash /bin/false /sbinologin 998 996 /var/lib/chrony Privilege-separated SSH Student User 74 74 /var/empty/sshd 1000 1000/home/student 997 1/var/run/vboxadd 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

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions