LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-02-2002, 01:33 AM   #1
juno
Member
 
Registered: Sep 2002
Location: fdas
Posts: 100

Rep: Reputation: 15
user file size


How to set the max. quota to limit the size of user to put the file to the system? Thx.
 
Old 10-02-2002, 04:56 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
have a look at the ulimit command
 
Old 10-02-2002, 05:02 AM   #3
born4linux
Senior Member
 
Registered: Sep 2002
Location: Philippines
Distribution: Slackware, RHEL&variants, AIX, SuSE
Posts: 1,127

Rep: Reputation: 49
If you have setup quota on your system:

man edquota

If not, follow these (this what I do in Red Hat):

1. Login as root and go into single mode by running this command:

telinit 1

2. Edit /etc/fstab and change the /home line to this:

LABEL=/home /home ext3 defaults,usrquota 1 2 # this setup sets quotas for users only

(usrquota = users, grpquota = group. you can use both if want = defaults,usrquota,grpquota)

3. Remount the /home partition to update the kernels mount table (/etc/mtable) using this command:

mount / home -o remount,rw

4. To create the quota files, run this:

quotacheck -uv /home

5. To enable quota on /home, run this:

quotaon /home

Quota is now enabled in /home. To go back into multi-user text or GUI mode, run this:

telinit 3

or

telinit 5

If you want to edit quota settings for a certain user (like user1), run this:

edquota -u user1
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
user/folder size limit dfcc Linux - Software 5 10-08-2005 05:56 AM
50M user file size limit FoxyLad Linux - General 4 02-02-2005 08:04 AM
when creating a *.iso file, how to make the file size smaller? minm Linux - Newbie 8 12-26-2004 09:58 PM
file system size larger than fysical size:superblock or partition table corrupt klizon Linux - General 0 06-18-2004 04:18 PM
Total partition size - User partition size is not equals to Free partition size navaneethanj Linux - General 5 06-14-2004 12:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration