File system management with scripts

Assignment Help Other Subject
Reference no: EM132368183

Section A - File system and Scripting

1. Provided that your virtualization software allows for USB device pass-through, connect a USB flash memory drive to your system.

2. Use the appropriate commands to locate the device file used by the device, mount the filesystem to a directory of your choice, and check the filesystem for errors.

3. Finally, add a line to /etc/fstab to ensure that the filesystem can be easily mounted in the future (this line should not automount the filesystem at boot time).

4. You have several filesystems on your hard disk that are mounted to separate directories on the Linux directory tree. The /dev/sdc6 filesystem was unable to be mounted at boot time.

5. What could have caused this?

6. What commands could you use to find more information about the nature of the problem?

Section B - Account Management

You have been asked by your boss to prepare two shell scripts, which manage user information:

You are to prepare a simple shell script, which reads a text file called newusers.txt. The file is in the form
John student /home/John John Smith
Jamesstudent /home/James JamesJackson
brett staff /home/brett Brett Walker
graystaff /home/grayGray Buck
and creates these users on the system without any interactive input by run script one time only. To do this you will need to use the adduser(1) and passwd(1) commands. You will need to randomly produce the password and report this to the administrator.

You can assume the fields being username, group, home directory and GCOS string are separated by a double white space.

The program should output the username, group, home directory, and generated password once created.

Management of users is important particularly an account to change the password in every 60 days. Write a shell NameStudent (.sh) script that takes a single argument being a username, looks for the account in /etc/passwd, force the accounts above to change their password in every 60 days, and archives their home directory into a systemdate.tar.gz file. Your script must validate password strength before changing the password.
The script should also show a summary of the users usage in their home account. You will receive more marks if you avoid using the standard user management tools. systemdate should be MM/DD/YY-HH:MM:SS at the time of the script run.

Section C - Practical File Systems

Create a user "StudentSirName201960" and in their home directory create the files with the following permissions.

• A file called "test.txt", with contents "This is a test file", includes your name and student number as well. Ensure you create the file with read and write permissions for owner, group and other, but no execute permissions.

• A file called "runme.sh" that runs a simple script of your choosing, with read and execute permissions for group and other, and full read, write and execute permissions for the owner. You can make the script echo something to the user.

• A hidden file called ".test_config", owned by root with contents "This is a test config file", that has root read, write and execute permissions only, no other permissions set.

• A symbolic link with an absolute path to a system log file of your choosing.

• A directory called "test_dir" with the owner having full permissions to create, rename or delete files in the directory, list files and enter the directory. Group and other having permissions to only list files and enter the directory and access files within it.

Section D - File System Management with Scripts

Write a script to make sure that user home directories and files are owned and only accessible by the owner. The script should be run by root only.
The script must take an argument as a file type. Based on the argument, then search for all files located in the user home directory. If the file is found, then create a directory in the Desktop called StudentName_StudentID and copy all the found files into this directory.
When these files are found a summary should be produced including where they are and the size.

Section E - Implementing the Filesystem

In this task, your job is to implement the storage system. A Samba file server enables file sharing across different operating systems over a network. It lets you access your desktop files from a laptop and share files with Windows and macOS users.

To do this install the latest version of Ubuntu Server and Desktop on a virtual machine. Install the Samba package and configure Samba user and set the password for the user for file sharing.

Reference no: EM132368183

Questions Cloud

Physical properties of water make life on earth possible : How do the unique chemical and physical properties of water make life on earth possible? (Use complete sentences. If you have trouble answering think
What is the molarity of ethanol : what is the molarity of ethanol (Mw= 46 g/mol, density = 0.789 g/cm3) in their body in millimolar?(Two acceptable answers).
Describe the different functions of the conducting : 1. Describe the different functions of the conducting zone and respiratory zone and relate those to differences in their histology.
Hyperextension of the the knee : The ACL helps stabilize the knee. It is easily injured by hyperextension of the the knee. How would you move your lower leg to cause a hypeeextension injury?
File system management with scripts : What commands could you use to find more information about the nature of the problem - implement the storage system. A Samba file server enables file sharing
System Dynamics Model of a ship construction project : PMGT5886 System Dynamics Modelling for PM Assignment, The University of Sydney, Australia. System Dynamics Model of a ship construction project
Compute the number of orders in march 2018 : Wonderland Plant manufactures computer chips. Expected demand for these chips in March 2018 is 52,000 units. Compute the number of orders in March 2018.
Calculate the end-of-year balance for the fund balance : Calculate the end-of-year balance for the Fund Balance-Unassigned that would be reported on the town's balance sheet prepared as of September 30.
Discuss the issues raised over audit quality in excerpts : For Former Australian Securities and Investments Commission chairman Greg Medcraft, "audit quality has been a concern for a number of years now".

Reviews

len2368183

9/9/2019 4:18:13 AM

Ability to learn and use systems administration techniques. Section A: System Scripting Application of technical knowledge. Explanation, Evidence and Referencing. HD Demonstrated working file system which exceeds all functional requirements. Reflecting on your learning experience, providing evidence of insight and commenting on the acquisitions of new knowledge drawing from multiple sources.

len2368183

9/9/2019 4:18:01 AM

Section D: Network File Systems Ability to learn and use systems administration techniques. Demonstrated working file share sharing and backup management which meets basic functional requirements. Reflecting on your learning experience, providing evidence of insight and commenting on the acquisitions of new knowledge drawing from multiple sources. Application of technical knowledge. Explanation, Evidence and Referencing.

len2368183

9/9/2019 4:17:42 AM

Section B: Automated Account Management Ability to learn and use systems administration techniques. Application of technical knowledge. Explanation, Evidence and Referencing. Demonstrated working automated account management script which exceeds all functional requirements. Reflecting on your learning experience, providing evidence of insight and commenting on the acquisitions of new knowledge drawing from multiple sources.

len2368183

9/9/2019 4:16:05 AM

Section C: Practical File SystemsAbility to learn and use systems administration techniques. Clearly documented solution to tasks, showing a high understanding of filesystems in completing all tasks. Application of technical knowledge. Reflecting on your learning experience, providing evidence of insight and commenting on the acquisitions of new knowledge drawing from multiple sources. Explanation, Evidence, and Referencing.

len2368183

9/9/2019 4:15:33 AM

Section E: File System Management and Scripts Ability to learn and use systems administration techniques. Application of technical knowledge. Explanation, Evidence and Referencing. Demonstrated working file system management scripts which exceed all functional requirements. Reflecting on your learning experience, providing evidence of insight and commenting on the acquisitions of new knowledge drawing from multiple sources.

Write a Review

Other Subject Questions & Answers

  Write about offset printing machine and the process

Write about offset printing machine, the process, why do you find it interesting, how is it used, and analysis about it and more info in details.

  What major events occurred in the region

What major events occurred in the region of the Middle East and North Africa during 1979?

  Explain where you currently fall on health-illness continum

Discuss what behaviors support or detract from your health and well-being. Explain where you currently fall on the health-illness continum.

  The purpose of boundaries within the field of human services

How would you describe the purpose of boundaries within the field of human services

  Describe how you will analyze your data

Introduce the client's case you chose by briefly recapping the background of the client you are assessing. What is the reason for referral?

  After the events of the french revolution

Explain the role of the Bastille before, during and after the events of the French Revolution.

  What are the benefits of utilizing the negotiation process

What are the benefits of utilizing the negotiation process first. How much power and authority could the WTO enact during this process

  Contrast the effects of fructose and ethanol on human health

Compare and contrast the effects of fructose and ethanol on human health with particular emphasis on the liver

  Discusses the role of the judicial system in united states

Write an essay of 250-500-words that discusses the role of the judicial system in the United States today. Discuss the historical context of the judicial system.

  Identify the independent and dependent variables

State the research hypothesis in your own words. Identify the independent and dependent variables.What were some variables the researchers controlled in their study? Why was this necessary?What evidence do the researchers offer as a test of their hyp..

  Topics in social change

Critically discuss the implications of more active middle class participation in social change efforts? How was this demonstrated and exemplified in the US Occupy Movement?

  What ethical issues associated with client treatment

What ethical issues associated with client treatment would mental health professionals need to address? Why would a release of information be needed?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd