How to assign disc quota for users?

Asked By 20 points N/A Posted on -
qa-featured

I have one samba server where I need some restriction regarding disc space for individuals?

I don’t want give them more then 1GB of space each person, so what will be solution?

Can you help me out?

SHARE
Answered By 0 points N/A #133399

How to assign disc quota for users?

qa-featured

Hi Dunley ,

You don’t need to worry about that. You can do your job easily using Red Hat Linux quota package.

Just type the following commands below 

# mount -o remount,usrquota /home 
# quotacheck -cM /home
# setquota -u Eric  0   0   972800   1024000    /home

Here Eric is a user, we are assign quota for him.
Here you have soft limit 950MB and hard limit is 1GB

# vi /etc/fstab   [edit the fstab for permanent ]
/home  /home ext3   defaults,usrquota   0   0

Check the quota for user –
# dd if=/dev/zero of=newfile bs=1000M count=1 (you can check quota for user with this command)

Britnu Salu

Related Questions