Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

SOLVE THIS EXERCISE CORRECTLY Create a program in Bash that implements the following features: The end user should be able to create a username in

SOLVE THIS EXERCISE CORRECTLY Create a program in Bash that implements the following features:
The end user should be able to create a username in the Ubuntu Linux environment.
The end user should be able to change the password for a user.
The end user should be able to delete a user.
The end user should be able to list active/existing users.
Each feature must be implemented in a separate script and be called from the main program script.
Each time an end user creates a user, the program should add a log, including a timestamp, in the adduser_log.csv file.
Each time an end user changes the password for a user, the program should increment the password reset counter in the passwordreset_counter.csv file and add a log, including a timestamp, in the passwordreset_log.csv file.
Each time an end user deletes a user, the program should add a log, including a timestamp, in the userdeletion_log.csv file.
The program should store active users, including their creation timestamps, in the active_users.csv file.
Hints:
Use sudo useradd -m username to create a user.
Use echo username:password | sudo chpasswd to reset a user's password.
Use sudo userdel -r username to delete a user. THE OUTPUT HAS TO BE LIKE THESE
image text in transcribed

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

Database Concepts

Authors: David M. Kroenke, David J. Auer

7th edition

133544621, 133544626, 0-13-354462-1, 978-0133544626

More Books

Students also viewed these Databases questions

Question

Review Figure

Answered: 1 week ago

Question

What are the determinants of cash cycle ? Explain

Answered: 1 week ago