Overview
I created department groups and user accounts, added the users to their groups and controlled folder access with chown, chmod, SGID and the sticky bit.
What I set out to do
- Make sure each user can only reach the folders they should.
What I did
- I created the groups and users and set their memberships.
- I set owners and permissions on the department folders.
- I applied SGID and the sticky bit.
Screenshots
They are in the same order as in my repository. Click one to see it full size.
1. Group VerificationShows the department groups, user accounts and group memberships configured on the Linux server. 2. Directory PermissionsShows the department directory structure, ownership and Linux file permissions configured using `chown` and `chmod`. 3. SGID VerificationShows SGID configured on department directories, ensuring new files inherit the parent directory's group ownership. 4. Sticky Bit VerificationShows the shared directory configured with the Sticky Bit, allowing users to create files while preventing them from deleting files owned by other users.
How I tested it
- New files took the folder's group because of SGID.
- Users could not delete each other's files in the sticky bit folder.
Repository
My full notes and the original screenshots are on GitHub: linux-projects/02-user-and-groups-management