Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Master The Art Of Data Storytelling With Visualizations

Authors: Alexander N Donovan

1st Edition

B0CNMD9QRD, 979-8867864248

More Books

Students also viewed these Databases questions

Question

3. What should a contract of employment contain?

Answered: 1 week ago

Question

1. What does the term employment relationship mean?

Answered: 1 week ago