fb
$20 Bonus + 25% OFF
$20 Bonus + 25% OFF
Securing Higher Grades Costing Your Pocket? Book Your Assignment at The Lowest Price Now!
loader
Add File

Error goes here

Files Missing!

Please upload all relevant files for quick & complete assistance.

Stuck on Your Question?

Get 24x7 live help from our Top Tutors. All subjects covered.

loader
250 words

Error goes here

Files Missing!

Please upload all relevant files for quick & complete assistance.

Students Who Viewed This Also Studied

20 Pages
BISY1003 Foundations Of Programming

Tasks: Assessment Description In this project, you will work individually to write programs which demonstrate your understanding of Topics we learned in the first 4 sessions. Content and Structur ...

Course

BISY1003

Type

Programming

Subject

Programing

University

Australian Institute of Higher Education

187 Pages
COMP700 Text and Vision Intelligence

Part A (Annotation) 1. Download 5 news articles from your favourite news site. Each article should be at least long. 2. Pre-process the articles and remove any noise such as html or ...

Type

Programming

Subject

Programing

University

Auckland University of Technology

12 Pages
COP2220C-C Programming

Assignment Maze Generation and Maze Solving  There is no code to write for this problem. Consider a maze that is represented by a 2-D array. A sample maze is shown in the image below: &nbs ...

Course

COP2220C

Subject

Programing

University

Florida State College at Jacksonville

23 Pages
ITC 560 Internet of Things

Task OneYou have just joined as an IoT Architect at Ingenious IoT. The first project you have been tasked with is the setup of a demo IoT Smart Office, with a link to the company offices. The project ...

Course

ITC 560

Type

Programming

Subject

Programing

University

Charles Sturt University

Information Technology

Question

Answered

n this task, you need to implement system security and access control in Linux operating system.  

 

Using Debian OS, write and implement one bash shell script. This script is a simplify version of the adduser or useradd utility. You are NOT allowed to use adduser or useradd or other similar command/utility for adding user.

 

The script should have the following specifications:  

 

Part (a)

 

Once the script is executed (assume root execute the script), it will copy the /etc/passwd file to another file /etc/passwd-DDMMYYYY (e.g. If the date is 01 Aug 2019, the file copied will be /etc/passwd-01082019) in the /etc/ folder.

If the copied file (/etc/passwd-DDMMYYYY) already exist, it will prompt the user on whether to overwrite the file.

If the user decided to overwrite the existing file (/etc/passwd-DDMMYYYY) by inputting a “yes”, the script will overwrite the existing file and proceed. If the user decided NOT to overwrite the existing file by inputting a “no”, the script will terminate with an appropriate message shows to the user.

The script will prompt the user to only input “yes” or “no”. The script will keep asking the user to input “yes” or “no” until the user input one of these two options.

The permissions of the file /etc/passwd-DDMMYYYY needs to be updated such that only root can have all access, whereas all other users should have NO access.

(15 marks)

 

   

Part (b)

 

The script will now prompt the user to enter the following:

username o user ID o group ID o User Info

After the user key in the necessary info as above, a new line (that means a new user) will be added to the /etc/passwd file with the information that the user has just entered. You are to use the following values for the rest of the fields:

Password: x

Home folder: /home/USERNAME (e.g. if the USERNAME is Alice, the value will be /home/Alice)

Home shell: /bin/bash

Create the home folder /home/USERNAME. Change the owner of the folder to USERNAME. Change the group of the folder to the respective group (as the group ID stated). 

Change the permissions of the folder to only owner can have all access, group can have read and execute permissions, whereas others only have read access.

Prompt the user to change the password for this new user (hint: use the passwd command).

(15 marks)

 

Part (c)

 

Validation check needs to be done in the bash shell script whenever possible (e.g. when input a username, the script should check the /etc/passwd file to see whether the username already exist).

The script will then display the info of the new user added from the /etc/passwd file and the /etc/shadow file (only print the appropriate line from the /etc/passwd file and

/etc/shadow file).                

(15 marks) Part (d)

 

A documentation (with appropriate screen-shots and explanations) needs to be produced on the execution of the bash shell script with different conditions (e.g. when the username already exist in the /etc/passwd file). Necessary checking needs to be done (e.g. login as the new user created).

 

Comments must be added in the script to make it easier to understand.

 

Information Technology

Answer in Detail

Solved by qualified expert

Get Access to This Answer

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Hac habitasse platea dictumst vestibulum rhoncus est pellentesque. Amet dictum sit amet justo donec enim diam vulputate ut. Neque convallis a cras semper auctor neque vitae. Elit at imperdiet dui accumsan. Nisl condimentum id venenatis a condimentum vitae sapien pellentesque. Imperdiet massa tincidunt nunc pulvinar sapien et ligula. Malesuada fames ac turpis egestas maecenas pharetra convallis posuere. Et ultrices neque ornare aenean euismod. Suscipit tellus mauris a diam maecenas sed enim. Potenti nullam ac tortor vitae purus faucibus ornare. Morbi tristique senectus et netus et malesuada. Morbi tristique senectus et netus et malesuada. Tellus pellentesque eu tincidunt tortor aliquam. Sit amet purus gravida quis blandit. Nec feugiat in fermentum posuere urna. Vel orci porta non pulvinar neque laoreet suspendisse interdum. Ultricies tristique nulla aliquet enim tortor at auctor urna. Orci sagittis eu volutpat odio facilisis mauris sit amet.

Tellus molestie nunc non blandit massa enim nec dui. Tellus molestie nunc non blandit massa enim nec dui. Ac tortor vitae purus faucibus ornare suspendisse sed nisi. Pharetra et ultrices neque ornare aenean euismod. Pretium viverra suspendisse potenti nullam ac tortor vitae. Morbi quis commodo odio aenean sed. At consectetur lorem donec massa sapien faucibus et. Nisi quis eleifend quam adipiscing vitae proin sagittis nisl rhoncus. Duis at tellus at urna condimentum mattis pellentesque. Vivamus at augue eget arcu dictum varius duis at. Justo donec enim diam vulputate ut. Blandit libero volutpat sed cras ornare arcu. Ac felis donec et odio pellentesque diam volutpat commodo. Convallis a cras semper auctor neque. Tempus iaculis urna id volutpat lacus. Tortor consequat id porta nibh.

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Hac habitasse platea dictumst vestibulum rhoncus est pellentesque. Amet dictum sit amet justo donec enim diam vulputate ut. Neque convallis a cras semper auctor neque vitae. Elit at imperdiet dui accumsan. Nisl condimentum id venenatis a condimentum vitae sapien pellentesque. Imperdiet massa tincidunt nunc pulvinar sapien et ligula. Malesuada fames ac turpis egestas maecenas pharetra convallis posuere. Et ultrices neque ornare aenean euismod. Suscipit tellus mauris a diam maecenas sed enim. Potenti nullam ac tortor vitae purus faucibus ornare. Morbi tristique senectus et netus et malesuada. Morbi tristique senectus et netus et malesuada. Tellus pellentesque eu tincidunt tortor aliquam. Sit amet purus gravida quis blandit. Nec feugiat in fermentum posuere urna. Vel orci porta non pulvinar neque laoreet suspendisse interdum. Ultricies tristique nulla aliquet enim tortor at auctor urna. Orci sagittis eu volutpat odio facilisis mauris sit amet.

Tellus molestie nunc non blandit massa enim nec dui. Tellus molestie nunc non blandit massa enim nec dui. Ac tortor vitae purus faucibus ornare suspendisse sed nisi. Pharetra et ultrices neque ornare aenean euismod. Pretium viverra suspendisse potenti nullam ac tortor vitae. Morbi quis commodo odio aenean sed. At consectetur lorem donec massa sapien faucibus et. Nisi quis eleifend quam adipiscing vitae proin sagittis nisl rhoncus. Duis at tellus at urna condimentum mattis pellentesque. Vivamus at augue eget arcu dictum varius duis at. Justo donec enim diam vulputate ut. Blandit libero volutpat sed cras ornare arcu. Ac felis donec et odio pellentesque diam volutpat commodo. Convallis a cras semper auctor neque. Tempus iaculis urna id volutpat lacus. Tortor consequat id porta nibh.

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Hac habitasse platea dictumst vestibulum rhoncus est pellentesque. Amet dictum sit amet justo donec enim diam vulputate ut. Neque convallis a cras semper auctor neque vitae. Elit at imperdiet dui accumsan. Nisl condimentum id venenatis a condimentum vitae sapien pellentesque. Imperdiet massa tincidunt nunc pulvinar sapien et ligula. Malesuada fames ac turpis egestas maecenas pharetra convallis posuere. Et ultrices neque ornare aenean euismod. Suscipit tellus mauris a diam maecenas sed enim. Potenti nullam ac tortor vitae purus faucibus ornare. Morbi tristique senectus et netus et malesuada. Morbi tristique senectus et netus et malesuada. Tellus pellentesque eu tincidunt tortor aliquam. Sit amet purus gravida quis blandit. Nec feugiat in fermentum posuere urna. Vel orci porta non pulvinar neque laoreet suspendisse interdum. Ultricies tristique nulla aliquet enim tortor at auctor urna. Orci sagittis eu volutpat odio facilisis mauris sit amet.

Tellus molestie nunc non blandit massa enim nec dui. Tellus molestie nunc non blandit massa enim nec dui. Ac tortor vitae purus faucibus ornare suspendisse sed nisi. Pharetra et ultrices neque ornare aenean euismod. Pretium viverra suspendisse potenti nullam ac tortor vitae. Morbi quis commodo odio aenean sed. At consectetur lorem donec massa sapien faucibus et. Nisi quis eleifend quam adipiscing vitae proin sagittis nisl rhoncus. Duis at tellus at urna condimentum mattis pellentesque. Vivamus at augue eget arcu dictum varius duis at. Justo donec enim diam vulputate ut. Blandit libero volutpat sed cras ornare arcu. Ac felis donec et odio pellentesque diam volutpat commodo. Convallis a cras semper auctor neque. Tempus iaculis urna id volutpat lacus. Tortor consequat id porta nibh.

44 More Pages to Come in This Document. Get access to the complete answer.

MyAssignmenthelp.com boasts qualified and experienced experts, who assist students to accomplish essays of all types within any given deadline. Our wide range of essay writing services ranges from proposal essay help, argumentative essay help, comparative essay help to literature essay help. Moreover, students from any background or pursuing any educational discipline can avail our services. Some of our popular services include nursing essay help, MBA essay help, English essay help, law essay help and much more.

More Information Technology: Questions & Answers

Q
icon

We aren't endorsed by this University

BISY1003 Foundations Of Programming

Tasks: Assessment Description In this project, you will work individually to write programs which demonstrate your understanding of Topics we learned in the first 4 sessions. Content and Structure:You will have to write three different programs to:1. Accept inputs from user.2. Use Decision Stru ...

View Answer
Q
icon

We aren't endorsed by this University

COMP700 Text and Vision Intelligence

Part A (Annotation) 1. Download 5 news articles from your favourite news site. Each article should be at least long. 2. Pre-process the articles and remove any noise such as html or other web formatting characters. After this process the articles should only contain as ASCII chara ...

View Answer
Q
icon

We aren't endorsed by this University

COP2220C-C Programming

Assignment Maze Generation and Maze Solving  There is no code to write for this problem. Consider a maze that is represented by a 2-D array. A sample maze is shown in the image below:   Walls are shown with an X, spaces with a blank, and the exit is S.   1. Given a ran ...

View Answer
Q
icon

We aren't endorsed by this University

ITC 560 Internet of Things

Task OneYou have just joined as an IoT Architect at Ingenious IoT. The first project you have been tasked with is the setup of a demo IoT Smart Office, with a link to the company offices. The project is divided into 2 parts:· Create a smart office with the criteria and devices given.· ...

View Answer

Content Removal Request

If you are the original writer of this content and no longer wish to have your work published on Myassignmenthelp.com then please raise the content removal request.

Choose Our Best Expert to Help You

expert
student rating student rating student rating student rating student rating
Jefferson Knowles

a visiting professor at University of Notre Dame

650 - Completed Orders

Hire Me
expert
student rating student rating student rating student rating student rating
Donovan Dunn

Master of Business Statistics

281 - Completed Orders

Hire Me
expert
student rating student rating student rating student rating student rating
Lyons Putnam

PhD in Chemistry with specialization in Organic Chemistry

650 - Completed Orders

Hire Me
expert
student rating student rating student rating student rating student rating
Noah Lyons

PhD in Biology with specialization in biological psychology

745 - Completed Orders

Hire Me

Still in Two Minds? The Proof is in Numbers!

33845 Genuine Reviews With a Rating of 4.9/5.

student rating student rating student rating student rating student rating
20 Jan 2022

Supply Chain

Home Work: 1.4 Pages, Deadline: 3 days

Well organized and information is up to the mark. I\'ll definitely share this platform with my frds also for assignment help

flag User ID: 8***02 Canada

student rating student rating student rating student rating student rating
20 Jan 2022

Marketing

Assignment: 4 Pages, Deadline: 2 days

Good work, one of the tutor did my assignment wrong and the admin assign a new tutor and did the assignment again with priority and for free

flag User ID: 4***30 Australia

student rating student rating student rating student rating student rating
20 Jan 2022

Geography

Essay: 2 Pages, Deadline: 8 days

thanks its good poster i still did not get the poster i hope to get the poster

flag User ID: 2***0 Saudi Arabia

student rating student rating student rating student rating student rating
20 Jan 2022

It Write Up

Assignment: 3 Pages, Deadline: 23 hours

good service, with nice APA style and fast respone chat. The writing is completed before time

flag User ID: 6***06 Bien Hoa, Vietnam

student rating student rating student rating student rating student rating
20 Jan 2022

Healthcare

Assignment: 1 Page, Deadline: 4 days

won\'t be graded till I hand in the rest of the work this was just a segment of my assignment I need help with and am very plesased with the outcome

flag User ID: 8***83 United Kingdom, Great Britain

student rating student rating student rating student rating student rating
20 Jan 2022

Psychology

Assignment: 3.2 Pages, Deadline: 7 days

I like the work because you guys completed the work within the time limit even if it has lot of reading.

flag User ID: 8***70 Surrey, Canada

student rating student rating student rating student rating student rating
20 Jan 2022

Psychology

Assignment: 4 Pages, Deadline: 6 days

I like to give you my assignment due to good quality of work and you follow the all instruction .

flag User ID: 8***70 Surrey, Canada

student rating student rating student rating student rating student rating
20 Jan 2022

English

Essay: 2 Pages, Deadline: 10 days

It was good enough to pass the course. I like the way of your work. I want to give more work to you guys.

flag User ID: 8***70 Surrey, Canada

student rating student rating student rating student rating student rating
20 Jan 2022

English

Essay: 3.2 Pages, Deadline: 4 days

This is good content that you have provided in the assignment thank you for your valuable help.

flag User ID: 8***70 Surrey, Canada

student rating student rating student rating student rating student rating
20 Jan 2022

English

Essay: 2.6 Pages, Deadline: 2 days

I like the work due to accuracy and timely manner. I pass the course due to your help

flag User ID: 8***70 Surrey, Canada

student rating student rating student rating student rating student rating
20 Jan 2022

Nursing

Case Study: 3 Pages, Deadline: 3 days

Requested in short time frame. Assignment was completed within less than 2 days. Made a 90!

flag User ID: 8***49 Surrey, United States

student rating student rating student rating student rating student rating
19 Jan 2022

It Write Up

Assignment: 6 Pages, Deadline: 7 days

good timing , all requirements included , formatting as asked , quick responding .

flag User ID: 3***51 Muscat, Oman

student rating student rating student rating student rating student rating
19 Jan 2022

Physics

Home Work: 4 Pages, Deadline: 11 days

Excellent customer service! Really helpful!! Wanted assignment done in 8days and they managed to complete it within 1 day! And was a excellent standar ...

flag User ID: 8***25 United Kingdom, Great Britain

student rating student rating student rating student rating student rating
19 Jan 2022

Statistics

Programming: 12 Pages, Deadline: 19 days

I passed sucessfully thank you very much for your helpI really appreciate it...Continue doing your good work

flag User ID: 5***27 United Kingdom, Great Britain

student rating student rating student rating student rating student rating
19 Jan 2022

Maths

Course Work: 2 Pages, Deadline: 9 days

This assignment was completed as per instructions. All questions were answered neatly etc.

flag User ID: 2***50 Kitchener, Canada

student rating student rating student rating student rating student rating
19 Jan 2022

Management

Thesis: 7.2 Pages, Deadline: 4 days

I was impressed with the services and hope to use them again, just what I wanted at the right time.

flag User ID: 8***95 United Kingdom, Great Britain

student rating student rating student rating student rating student rating
19 Jan 2022

Marketing

Case Study: 6.4 Pages, Deadline: 2 days

Will wait for the lecturer remarks. I have just submitted the work. I hope it is standard since I am using the service for the first time. Impressed w ...

flag User ID: 6***78 United Kingdom, South Africa

student rating student rating student rating student rating student rating
19 Jan 2022

Assignment

Essay: 3 Pages, Deadline: 5 days

I always take help from myassignmenthelp. I have no regrets as every time they provide high quality help and they provide good discounts as well.

flag User ID: 1***63 Longford, Australia

student rating student rating student rating student rating student rating
19 Jan 2022

Operations

Assignment: 3 Pages, Deadline: 8 days

Good job, I am happy with the amazing services and completed work given. Thank you very much for helping me receive a good mark. Will definitely work ...

flag User ID: 2***91 Kuala Lumpur, Malaysia

student rating student rating student rating student rating student rating
19 Jan 2022

English

Thesis: 3 Pages, Deadline: 2 days

The most satisfying essay I’ve ever received. It covers all parts that I’ve mentioned at the beginning. Thanks a lot pal

flag User ID: 3***95 United Kingdom, Great Britain

5% Cashback

On APP - grab it while it lasts!

Download app now (or) Scan the QR code

*Offer eligible for first 3 orders ordered through app!

screener
ribbon
callback request mobile
Have any Query?