Skip to content

bibinmv/RHCSA-User-Permission-Management

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 

Repository files navigation

RHCSA-User-Permission-Management

RHCSA lab project demonstrating Linux user management, groups, permissions, ACLs, sudo (wheel group), password aging, and umask using AlmaLinux.

Lab Environment

Component Details
OS AlmaLinux / RHEL
Shell Bash
Users bibin, reuben
Directory /projects

Project Objectives

  • Create and manage users
  • Create and manage groups
  • Configure shared directories
  • Manage Linux permissions
  • Configure special permissions (SGID)
  • Configure ACL
  • Configure password aging
  • Configure sudo using wheel group
  • Configure default file permissions using umask

Step 1 — Create Users

Create two users.

useradd bibin
useradd reuben

Set passwords.

passwd bibin
passwd reuben

Verify users.

id bibin
id reuben

Screenshot:
User Creation


Step 2 — Create Group

Create a group called developers.

groupadd developers

Verify group.

getent group developers

Screenshot:
group_creation


Step 3 — Add Users to Group

Add users to developers group.

usermod -aG developers bibin
usermod -aG developers reuben

Verify membership.

id bibin
id reuben

Screenshot:
group_membership


Step 4 — Create Shared Directory

Create a shared directory.

mkdir /projects

Change group ownership.

chown :developers /projects

Set permissions.

chmod 770 /projects

Verify.

ls -ld /projects

Screenshot:
directory_permissions


Step 5 — Enable SGID

Enable SGID so files inherit group ownership.

chmod g+s /projects

Verify.

ls -ld /projects

Expected output example:

drwxrws---

Screenshot:
sgid_permission


Step 6 — Test File Creation

Switch to user bibin.

su - bibin

Create a file.

touch /projects/project1.txt

Verify.

ls -l /projects

Screenshot:
file_creation


Step 7 — Configure ACL

Switch to root and create a file.

touch /projects/design.txt

Give reuben read permission.

setfacl -m u:reuben:r /projects/design.txt

Verify ACL.

getfacl /projects/design.txt

Screenshot:
acl_permission


Step 8 — Configure Password Aging

Check current password policy.

chage -l reuben

Set password aging.

chage -m 5 -M 90 -W 7 reuben

Verify again.

chage -l reuben

Screenshot:
password_aging


Step 9 — Configure Sudo Using Wheel Group

Edit sudo configuration.

visudo

Ensure this line is enabled:

%wheel ALL=(ALL) ALL

Add user bibin to wheel group.

usermod -aG wheel bibin

Verify.

id bibin

Screenshot:
sudo_using_wheel_group1

sudo_using_wheel_group2


Step 10 — Verify Sudo Access

Switch to user.

su - bibin

Become root using sudo.

sudo -i

Verify.

whoami

Expected output:

root

Step 11 — Configure umask

Check current umask.

umask

Set a new mask.

umask 027

Create test file.

touch umask_test.txt
ls -l umask_test.txt

Screenshot:
umask_test1

umask_test2


Useful Commands Used

useradd
usermod
groupadd
chmod
chown
setfacl
getfacl
chage
visudo
umask

Conclusion

This lab demonstrates core Linux system administration tasks related to user and permission management. By completing this project on AlmaLinux, I gained practical experience with user accounts, groups, file permissions, ACLs, password policies, and sudo configuration—key skills required for the RHCSA certification and real-world Linux administration.


About

RHCSA lab project demonstrating Linux user management, groups, permissions, ACLs, sudo (wheel group), password aging, and umask using AlmaLinux.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors