Skip to content

Linux Directory Structure  #2

Description

@iwayqtech

linux-directory

Scenarios:
Instructions:

  1. If any permission issues, You would need to fix the complete the task.

  2. Login as root user:

    1. Create Users - User1, User2, User3, User4 & password for each
      2. Create groups - devops, aws
      3. Add user2, user3 to devops group.
      4. Add user4 to aws group
      5. Create directory structure mentioned in the diagram.
      6. Change group of /dir1, /dir7/dir10, /f2 to "devops" group.
    2. Change ownership of /dir1, /dir7/dir10, /f2 to "user1" user.
  3. Login as user1:

    1. Create directory - "/dir6/dir4"
      2. Create file - "/f3"
      3. Move the file from "/dir1/f1" to "/dir2/dir1/dir2"
      4. delete the file "/dir2/dir1/dir2/f1"
      5. delete /dir7
    2. Write some data to /f2 file and save it.
  4. Login as user2

    1. Create file "/dir1/f2"
    2. delete /dir6
    3. delete /dir8
    4. delete /f2
    5. delete /f3
    6. Write some data to /f1 file and save it.
    7. delete /f1
  5. Login as user4

    1. create file "/dir1/f2"
      2. delete /dir1
    2. using singlecommand delete /opt/dir14/f3 & /opt/dir14/dir10
  6. Login as user3:

    1. delete /dir2
    2. delete /dir3
      3. delete /dir4/dir12/f4
      4. delete /dir4
  7. All Done? Still not confident? repeat the steps!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions