The Workshop is designed to help you anticipate possible questions, review what you've learned, and begin learning how to put your knowledge into practice.
Quiz
1:
What file contains the list of network port numbers and protocol types for network services?
2:
How would you add the user you to the wheel group?
3:
How would you assign the following permissions to a file called myfile.txt using chmod's numeric mode: user read, user write, user execute, group read, group executeand nothing further?
4:
What timeout values would you assign to TMOUT and autologout to cause inactive users to be logged out after an hour?
Answers
A1:
/etc/services
A2:
gpasswd -a you wheel
A3:
chmod 750 myfile.txt
A4:
TMOUT=3600 set autologout=60
Activities
Create a wheel group on your computer and implement the security techniques related to wheel discussed in this chapter.
Add users who should have access to the su command to the wheel group.
After configuring your system for a login timeout, try logging in remotely and waiting until you are automatically logged out to ensure that the timeout value works.