- 0 Write a script that switches the current user to the user betty.
- 1 Write a script that prints the effective username of the current user.
- 2 Write a script that prints all the groups the current user is part of.
- 3 Write a script that changes the owner of the file hello to the user betty.
- 4 Write a script that creates an empty file called hello.
- 5 Write a script that adds execute permission to the owner of the file hello.
- 6 Write a script that adds execute permission to the owner and the group owner, and read permission to other users, to the file hello.
- 7 Write a script that adds execution permission to the owner, the group owner and the other users, to the file hello
- 8 Write a script that sets specific permissions for the file hello: no permission for the owner and group, all permissions for other users.
- 9 Write a script to set the mode of the file hello to
-rwxr-x-wx. - 10 Write a script to set the mode of the file
helloto match the mode of another file namedolleh. - 11 Write a script to add execute permission to all subdirectories of the current directory for the owner, the group owner and all other users.
- 12 Write a script that creates a directory called
my_dirwith permissions751in the working directory. - 13 Write a script that changes the group owner to
schoolfor the filehello - 14 Write a script that changes the owner to
vincentand the group owner tostafffor all the files and directories in the working directory. - 15 Write a script that changes the owner and the group owner of
_hellotovincentandstaffrespectively. - 16 Write a script that changes the owner of the file
hellotobettyonly if it is owned by the userguillaume. - 17 Write a script that will play the StarWars IV episode in the terminal.
0x01-shell_permissions
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||