Sample Header Ad - 728x90

xfs_quota apply for all users under /home

0 votes
1 answer
568 views
in RHEL 8.9, I have a 100gb XFS formatted /home partition; all local user accounts in /etc/passwd have their home directories under /home. And all user accounts primary gid is and will always be 100 {users}. I would like to apply a quota of 1GB per user on their /home account as an administration effort to manage data. I have 80 users currently in /etc/passwd can expect it to grow back up over 150. I currently have in /etc/fstab UUID=12345 /home xfs defaults,nodev,nosuid,uquota,gquota 0 0 - What are the correct arguments to pass to the xfs_quota command? - If I have 80 users, do I have to do 80 xfs_quota commands one for each account under /home? Or can it be done with one command instance? - should a mount -o remount /home work? I'm finding it doesn't and either a successful umount or reboot is needed. Will a umount -l work? How dangerous is this on an active system with users logged in? - For all new users in the future, will a new xfs_quota need to be performed on their home folder or is there a way to have it automatically applied?
Asked by ron (8647 rep)
Jan 29, 2024, 07:40 PM
Last activity: Jan 31, 2024, 12:25 PM