Sample Header Ad - 728x90

Setting up disk quotas for every new user account

0 votes
1 answer
1723 views
I'm trying to set up default disk quotas for every new user that gets an account created in my Debian10 server. For example, user1 gets an account created and the first time he logs in the system (through ssh or su or whatever) his account gets a 100MB disk quota hard limit without the manual intervention of the server admin. I've made a perl script that lets me set disk quotas for a user but it only works when used by root, which makes sense since a user could modify his own quotas. But is there a way to use it with a pam module maybe so that a user quotas are set up automatically? Is there another (maybe better) way to set these automatic disk quotas for all the incoming new users?
Asked by wolfvc (1 rep)
Jun 23, 2020, 03:18 PM
Last activity: Nov 22, 2023, 06:30 AM