Automates the creation of Linux users with different roles and tests their directory permissions.
This project demonstrates:
- Creation of Linux users (Admin, Staff, Guest)
- Setting proper directory permissions
- Automated access test script
- Logging of access results for verification
docs/ # Screenshots, logs, and documentation
β
ββ test_setup.sh.PNG # Screenshot of setup process
ββ user_setup.sh.PNG # Screenshot of user creation
ββ access_test_full.log # Log file generated by test_permissions.sh
README.md # Project documentation
user_setup.sh # Script to create users and directories
test_permissions.sh # Script to test access permissions
All main scripts (
user_setup.shandtest_permissions.sh) are outsidedocs/for easy execution.
user_setup.sh.PNGβ Shows users being createdtest_setup.sh.PNGβ Shows directories and permissions setupaccess_test_full.logβ Generated after runningtest_permissions.sh
- Make the scripts executable:
chmod +x user_setup.sh
chmod +x test_permissions.sh- Run the user setup script to create users and directories:
sudo ./user_setup.sh- Run the automated access test:
sudo ./test_permissions.sh- Check the log file for results:
docs/access_test_full.log
- Linux user and group management
- Directory permissions and access control
- Bash scripting for automation
- Logging and testing role-based access
- Customize roles or directories in
user_setup.shfor different lab setups - Use
cat docs/access_test_full.logto review results quickly - Can be extended to ACL testing or sudo privilege checks