Reference no: EM133258682
Question 1. There is a command "/bin/false" which - according to the "man page" will "do nothing, unsuccessfully". Thus, it is sometimes specified as the login shell for accounts that should never be used for login. I want to count how many user accounts are set to run this program as their shell. Give me one command - it can include pipes of course - that will tell me how many accounts are using this program as their shell.
Question 2.There is a way to use Linux commands to display all programs with the setuid bit on. I run this periodically to look for programs that are setuid and owned by root, and I jot down the number of them. If this number gets larger it may indicate a security breech. Why?
Question 3.The file "/etc/group" contains the associations between which users are in what groups. Give me a non-technical answer - why must you use "sudo" to edit this file? Don't just tell me about permissions on the file, I want to know why it is set up this way when you install Linux.
Question 4.What is the difference between these two command lists? ("trans" is just some command):
sort bigfile | trans | tail
versus
sort bigfile >t1 ; trans <t1 >t2 ; tail t2 ; rm t1 t2
Question 5. "Write" a regular expression to match any number from 0 to 255. (i.e., the possible values forming an IP address) Note that for numbers in the format of 0xx or 00x, such as 091 and 003, should not be accepted by your regular expression.