1830168 Members
2072 Online
109999 Solutions
New Discussion

How To Disk Quota

 
Worapoj P.
Regular Advisor

How To Disk Quota

Dear all Expertise,
Could you give me instruction for setting disk quota on Linux Redhat6.2 and 7.3,

Thanks in advance for your helps.
B/R
Worapoj
For LOVE For Honor For Mankind
5 REPLIES 5
Stuart Browne
Honored Contributor

Re: How To Disk Quota

for a 7+ box, mini-howto is your friend:

http://www.ibiblio.org/pub/Linux/docs/HOWTO/mini/Quota

(summary:

add 'usrquota' and/or 'grpquota' to /etc/fstab file-system entries

reboot to get them to take effct, unless you like 'mount -oremount,usrquota' commands.

execute 'quotacheck -cmauvg' to create starting quota files

make sure 'quotaon -uavg' gets executed at boot-up (should be done via /etc/rc.sysinit already).

Periodically run 'quotacheck -auvg'.

Use 'edquota' and 'setquota' to make your quota levels.)

Hope this helps.

(Sorry for the brief post, not having a happy afternoon).
One long-haired git at your service...
Khalid A. Al-Tayaran
Valued Contributor

Re: How To Disk Quota


Hi,

Look at the quota command.
See man quota

Worapoj P.
Regular Advisor

Re: How To Disk Quota

Dear all,

I have another question, even i had accessed samba server from PC A. aferward PC A has always access samba server. How to prevent by refresh logon promlt every time access to file server.


B/R,
Worapoj P
For LOVE For Honor For Mankind
U.SivaKumar_2
Honored Contributor

Re: How To Disk Quota

Hi,

edit smb.conf

in [global] section , put this command.

deadtime = 200

if the client is inactive for 300 seconds samba will terminate its connection. And client will have to reconnect.

regards,
U.SivaKumar
Innovations are made when conventions are broken
U.SivaKumar_2
Honored Contributor

Re: How To Disk Quota

Hi,

If you have enabled domain logon in samba. you can use this share option for your purpose.

[home]
revalidate = yes

Restart samba.

In my previous thread the actual units is in minutes not seconds. sorry for the mistake.

regards,

U.SivaKumar.
Innovations are made when conventions are broken