Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1. Create a new group called hacker with group ID 1200 2. Create two new users with user names cathect and dogbert, and UIDs 610
1. Create a new group called hacker with group ID 1200 2. Create two new users with user names cathect and dogbert, and UIDs 610 and 611 respectively. Their home directories should be created as ew1/catbert and ew1/dogbert and should be populated with initial configuration files from /etc/skel. Their primary group should be hacker and they should both have secondary membership of the groups audio and video 3. Set passwords for these two accounts. Make sure you remember them! 4. Examine the /etc/group and /etc/passwd files and verify that the entries for the hacker group and the cathers and dogbert accounts are as you expect 5. Set password aging on catbert's account so that: use command chase - The minimum time between password changes is 1 week - The maximum time between password changes is 1 month - He receives 2 days warning of password expiry - The account is usable for 3 days after the password expires - The account expires on 31 December this year - Hint - look up the man page for sbage 6. Look up cathert's entry in /etc/shadow and examine the password aging parameters. Are they what you expect? - Hint - man 5 shadow will help you figure out which field is which 7. List the ew1 directory. Verify that catbert and dogbert's home directories exist. - Who are they owned by? What group do they belong to? 8. Verify that you can log in as catbert - Run the command id to verify cathect's UID and group memberships. Are they what you expect? - Run the command owd and verify the path name of the home directory - Create a file in the home directory and verify its ownership and group - List the hidden files in the directory. Where have these come from? 9. Still as cathers, try to change your password. What happens
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started