travbeav
asked on
Automatic User Quotas possible in RHEL5?
I have a RHEL5 server authenticating against Active DIrectory via Winbind and Samba. I have Samba setup to create each person's home directory under /home/%U
/etc/skel is set to be my skeleton home directory.
I want each user's home directory to have a 20GB soft limit and a 25GB hard limit. However, I don't want to have to manually assign the quota to each home directory as each person logs in for the first time (there are 100+ users).
Is there any way to setup Samba or RHEL iteself to automatically assign a quota to a user's home directory at the time of thier first login when the directory is created?
Thanks,
Travis
/etc/skel is set to be my skeleton home directory.
I want each user's home directory to have a 20GB soft limit and a 25GB hard limit. However, I don't want to have to manually assign the quota to each home directory as each person logs in for the first time (there are 100+ users).
Is there any way to setup Samba or RHEL iteself to automatically assign a quota to a user's home directory at the time of thier first login when the directory is created?
Thanks,
Travis
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Saw it... However, this module is NOT part of the Linux mainstream distributions. I usually tend to recommend only solutions that are part of the main distributions and that do not require any compilation by the user.
On top of that, the module you specified was not maintained in a long time (last update in 2005) and is stated to work on FreeBSD only ("THIS MODULE COMPILES BUT DOES NOT WORK ON LINUX! I don't have time to handle linux's multiple quota versions."). So I can't see how it can help the OP.
On top of that, the module you specified was not maintained in a long time (last update in 2005) and is stated to work on FreeBSD only ("THIS MODULE COMPILES BUT DOES NOT WORK ON LINUX! I don't have time to handle linux's multiple quota versions."). So I can't see how it can help the OP.
ASKER
I ended up issuing a setquota for my user ID, and then using edquota -p and listing a me as the template user, and all my future users after that. Splitting poiints between all contributors...thanks for the tips.
Is it? Please refer my previous post.