Skip to content

Latest commit

 

History

History
executable file
·
65 lines (46 loc) · 3.01 KB

File metadata and controls

executable file
·
65 lines (46 loc) · 3.01 KB

0x01. Shell Permissions

In this project, I learned about Linux file permissions and how to use commands: chmod, sudo, su, chown, chgrp, and more.

Tasks

  • 0. My name is Betty

    • 0-iam_betty: script that switches current user to betty.
  • 1. Who am I

    • 1-who_am_i: script that prints the username of the current user.
  • 2. Groups

    • 2-groups: script that prints all groups the user is a part of.
  • 3. New owner

    • 3-new_owner: script that changes the owner of the file hello to the user betty.
  • 4. Empty!

    • 4-empty: script that creates an empty file called hello.
  • 5. Execute

    • 5-execute: script that adds execute permission to the owner of the file hello
  • 6. Multiple permissions_

    • 6-multiple_permissions: script that adds execute permission to the owner and the group owner, and read permission to other users, to the file hello.
  • 7. Everybody!

    • 7-everybody: script that adds execute permission to the owner, the group owner and other users, to the file hello.
  • 8. James Bond

    • 8-James_Bond: script that sets the permissions to the file hello as follows:
      • Owner: no permission at all
      • Group: no permission at all
      • Other users: all the permissions
  • 9. John Doe

    • 9-John_Doe: script that sets the mode of the file hello to:
-rwxr-x-wx 1 julien julien 23 Sep 20 14:25 hello
  • 10. Look in the mirror

  • 11. Directories

    • 11-directories_permissions: script that adds execute permission to all subdirectories of the current directory for the owner, the group owner and all other users.
  • 12. More directories

    • 12-directory_permissions: script that creates a directory called my_dir with permissions 751 in the working directory.
  • 13. Change group

    • 13-change_group: script that changes group owner to school for the file hello
  • 14. Owner and group

    • 100-change_owner_and_group: script that changes the owner to vincent and the group owner to staff for all the files and directories in the working directory.
  • 15. Symbolic links

    • 101-symbolic_link_permissions: script that changes the owner and the group owner of _hello to vincent and staff respectively.
      • The file _hello is a symbolic link
  • 16. If only

    • 102-if_only: script that changes the owner of the file hello to betty only if it is owned by the user guillaume.
  • 17. Star Wars

    • 103-Star_Wars: script that plays the Star Wars IV episode in the terminal.