My Experience on This Lab
In this lab, I learned how Linux manages file permissions by creating users and groups using commands like groupadd, useradd, passwd, and usermod -aG. I set up a shared directory with mkdir and adjusted its permissions using chmod 770 and chgrp. I also practiced switching users with su –, changing default permissions using umask, and copying files between directories with cp. Later, I worked with special permissions by enabling SGID chmod 2770 and the sticky bit chmod +t on the shared folder to see how they affected file access.
Key Concepts I Learned
I learned how ownership, group membership, and octal permissions control who can read or modify files. I also saw how the SGID bit forces new files to inherit the shared group, and how the sticky bit prevents users from deleting files they don’t own. It doesn’t stop users from utilizing scripts or modifying but strictly prohibits deletion of other users file.
Challenges Faced
Some challenges included keeping track of the correct permission values and confirming that each user had the right primary and secondary groups. Verifying access with commands such as cat, ls -l, and groups helped clarify why certain users could or could not read or modify files. Working through these steps strengthened my understanding of Linux file permission behavior.