hi all,
i have installed quota on my centos 7 machine and its what im after (setting size limit on users, so they cant fill the hard drive)
i want to now make this part of my create user script for my sftp server so i want to do a echo and a read command so i capture the limit they enter and it puts the limit in the 4th column under hard
what i do is run the command below
edquota -u username
once its opened up the below table i just input the required hard blocks ie 900000
Disk quotas for user robw (uid 1000):
Filesystem blocks soft hard inodes soft hard
/dev/sdb1 8 0 0 2 0 0
is this easy to do please
many thanks,
rob
---------- Post updated at 09:05 AM ---------- Previous update was at 07:39 AM ----------
sorted it by running this command -
setquota -u robw 0 52428800 0 0 -a /dev/sdb1