Description - UNIX's 'chmod' command replica
Course - Operating Systems
XMOD is a UNIX command line tool that replicates the functionality of the 'chmod' command. It runs in user-space and allows users to change the permissions of files and directories on a UNIX-based system.
To run the XMOD, simply compile the source code using the provided Makefile and then execute the resulting binary.
XMOD supports both octal and symbolic inputs.
Supports the flags: -R (recursive); -v (verbose); -c (compact).
The commands to run are:
./xmod [OPTIONS] [FILEPATH]
- Octal
./xmod 0777 ficheiro.txt
- Symbolic
./xmod u=rwx ficheiro.txt
./xmod g=rwx ficheiro.txt
./xmod o=rwx ficheiro.txt