In this project, I learned about using the chmod, sudo, su, chown, and
chgrp commands to represent and change Linux file permissions and change users
in the Shell.
-
0. My name is Betty
- 0-iam_betty: Bash script that changes the user ID to
betty.
- 0-iam_betty: Bash script that changes the user ID to
-
1. Who am I
- 1-who_am_i: Bash script that prints the effective userid of the current user.
-
2. Groups
- 2-groups: Bash script that prints all the groups the current user is a part of.
-
3. New owner
- 3-new_owner: Bash script that changes the owner of the
file
helloto the userbetty.
- 3-new_owner: Bash script that changes the owner of the
file
-
4. Empty!
- 4-empty: Bash script that creates an empty file called
hello.
- 4-empty: Bash script that creates an empty file called
-
5. Execute
- 5-execute: Bash script that adds execute permissions to the owner
of the file
hello.
- 5-execute: Bash script that adds execute permissions to the owner
of the file
-
6. Multiple permissions
- 6-multiple_permissions: Bash script that adds
execute permission to the owner and the group owner, and read permission to
other users, for the file
hello.
- 6-multiple_permissions: Bash script that adds
execute permission to the owner and the group owner, and read permission to
other users, for the file
-
7. Everybody!
- 7-everybody: Bash script that adds execution permission to the owner,
the group owner and the other users, for the file
hello.
- 7-everybody: Bash script that adds execution permission to the owner,
the group owner and the other users, for the file
-
8. James Bond
- 8-James_Bond: Bash script that sets the permission for the file
helloas follows:- Owner - no permission at all
- Group - no permission at all
- Other users - all permissoins
- 8-James_Bond: Bash script that sets the permission for the file
-
9. John Doe
- 9-John_Doe: Bash script that sets the mode of the file
helloto -rwxr-x-wx.
- 9-John_Doe: Bash script that sets the mode of the file
-
10. Look in the mirror
- 10-mirror_permissions: Bash script that sets the mode
of the file
hellothe same as the fileolleh.
- 10-mirror_permissions: Bash script that sets the mode
of the file
-
11. Directories
- 11-directories_permissions: Bash script that adds execute permission to all subdirectories of the current directory for the owner, the group owner and all other users. Regular files are not changed.
-
12. More directories
- 12-directory_permissions: Bash script that creates a
directory
my_dirwith permissions 751 in the working directory.
- 12-directory_permissions: Bash script that creates a
directory
-
13. Change group
- 13-change_group: Bash script that changes the group owner to
schoolfor the filehello.
- 13-change_group: Bash script that changes the group owner to
-
100. Owner and group
- 100-change_owner_and_group: Bash script that changes the
owner to
staffand the group owner tovincentfor all the files and directories in the working directory.
- 100-change_owner_and_group: Bash script that changes the
owner to
-
101. Symbolic links
- 101-symbolic_link_permissions: Bash script that changes
the owner and the group owner of the file
satff_hellotobettyandvincent, respectively.
- 101-symbolic_link_permissions: Bash script that changes
the owner and the group owner of the file
-
102. If only
- 102-if_only: Bash script that changes the owner of the file
hellotobettyonly if it is owned by the userguillaume.
- 102-if_only: Bash script that changes the owner of the file
-
103. Star Wars
- 103-Star_Wars: Bash script that plays Star Wars Episode IV in the terminal.
- Festus Maithya festusmaithyakcau
All work contained in this project was completed as part of the curriculum for ALX School. ALX School is a campus-based full-stack software engineering program that prepares students for careers in the tech industry using project-based peer learning. For more information, visit this link.