This script, permissioncheck
, is a powerful tool to inspect file permissions on Unix-based systems. It provides detailed information about the ownership, group, and type of a file or directory, along with a user-friendly summary of the permissions for the user, group, and others.
- Install
xclip
if not already installed:sudo apt-get install xclip
- Copy the script to your clipboard:
permissioncheck=$(curl https://raw.githubusercontent.com/pentestfunctions/permissioncheck/main/permissioncheck); echo $suidcheck | xclip -sel clipboard
- Once copied to your clipboard with the above command, you can now paste it into your terminal and press enter.
- Copy the contents and paste directly into your terminal
- Voila! The function has been created that you can call on.
To check the permissions of a file or directory, simply run:
permissioncheck [file/directory path]
The script outputs detailed information about the file or directory specified, including:
- File type (e.g., Regular File, Directory, Symbolic Link)
- Owner and group information
- Read, write, and execute permissions for user, group, and others
Feel free to fork the repository and submit pull requests.
Distributed under the MIT License.
If you like this project, please consider starring the repo!