Great Deal! Get Instant $10 FREE in Account on First Order + 10% Cashback on Every Order Order Now

Create a user ‘yourname’ without quotes and login with this newly created username, in home directory create the files with the following permissions [5 marks]. A file called “current.txt", containing...

1 answer below »
Create a user ‘yourname’ without quotes and login with this newly created username, in home directory create the files with the following permissions [5 marks].
  1. A file called “current.txt", containing a detailed listing of all processes running on your Linux. The file is to have read and write permissions for owner, but not accessible for group and other.
  2. A file called "runme" that runs a script to remove 'other' write and execute permissions from all files located in the directory. The directory location should be provided as a command line option when running the script, or default to the directory from which the script was invoked. The script should have no permissions for other, read and execute permissions for group, and full read, write and execute permissions for the owner.
  3. A hidden file called ".mysecret", owned by root with contents "This is point 3 of assessment 2 – Part II of ITC XXXXXXXXXX", that has root read, write and execute permissions only, no other permissions set.
  4. A symbolic link with an absolute path to a system log file of your choosing.
  5. A directory called "yourname_data" 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.
Answered Same Day Mar 31, 2020

Solution

Tanya answered on Apr 12 2020
138 Votes
Linux Environment
     Linux Environment     
Linux Environment                     By:     Dhruval
    
Table of Contents
    Topic
    Page Numbe
    Add a new Use
    3
    Create a file cu
ent.txt with the given permissions
    4
    A file called "runme" that runs a script to remove permissions
    4
    A hidden file called ".mysecret", owned by root 
    6
    A symbolic link with an absolute path 
    7
    A directory called "yourname_data" with the given permissions
    8
    References
    9
1. Create a user ‘yourname’ without quotes and login with this newly created username, in home directory
Checking if I am root.
Add a new user dhruval.
Now, the user is created. Let’s Login to this user and do the next steps:
Logging In new use
1. A file called “cu
ent.txt", containing a detailed listing of all processes running on...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here