Sponsored Content
Full Discussion: To set quota on a folder
Operating Systems Linux Red Hat To set quota on a folder Post 302392317 by jredx on Thursday 4th of February 2010 04:25:00 AM
Old 02-04-2010
To set quota on a folder

Hi guys,

I know that we can set quota limit for an OS user on a filesystem.

But I have a different objective to achieve -

can we set a limit on a folder on a filesystem.
Let use I have a 'apps' folder in some filesystem. Disc space occupied by 'apps' should not be more that 5GB.

Searched on net, but didn't find any useful information.

Thanks,
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Quota

I'm new to Unix and I'm trying to determin how much space I have on this system. the box is dedicated to Oracle and I log in as the oracle user and type quota. It retrunes nothing. Then I log on as root and type quota -v oracle.. It returns nothing! Gosh this is actually a solaris 5.7 box. ... (1 Reply)
Discussion started by: jarthda
1 Replies

2. Linux

How to set user quota

I've a redhat 9.0 and I want to set a user quota. but the question is where should I start from and How ??? :confused: :confused: :confused: :confused: (2 Replies)
Discussion started by: KaiXiang
2 Replies

3. Solaris

Set quota on directories

Hi all, Is it possible to set a quota on subfolders? I understand it can be set on file system level, how bout on individual folders? Thanks. (1 Reply)
Discussion started by: *Jess*
1 Replies

4. UNIX for Dummies Questions & Answers

Quota Problem

Hi all! I'm a user of Debian Etch. I've problem with my accoun't quota. After I removed all of my files from my home directory, and typed: du -hs It showed me: 76K . But when I used quota command, it showed me: Disk quotas for user X (uid *********): Filesystem blocks quota ... (2 Replies)
Discussion started by: mjdousti
2 Replies

5. UNIX for Advanced & Expert Users

Quota threshold

Hi, I am trying to make a script in which the user is notified once the disk space of the environment increases a particular threshold. I have made a script for it but I am facing an error while executing it. Could any one here guide me further?? Script #!/bin/sh warninglimit=350000... (22 Replies)
Discussion started by: Taranjeet Singh
22 Replies

6. Red Hat

User quota

Hi, I want to apply the user quota, but i am unable to apply the quota to user. Kindly provide the guide line, so that i can sortout the problem. Step 1: Create partion on device #fdisk /dev/sda (because hard disk is scsi) #n (new partition table) i.e /dev/sda8. #p ( to print the partition... (2 Replies)
Discussion started by: sahu.tapan
2 Replies

7. UNIX for Advanced & Expert Users

Set ACL automatically for new folder/objects

Hi, In our bank production environment - IBM AIX 5.3, we have a particular parent folder inside which an application creates temporary folders & files. These temp folders exist for the lifetime of the user session within the application and then get deleted automatically. Since these temp... (1 Reply)
Discussion started by: deepaksinbox
1 Replies

8. Shell Programming and Scripting

want to move set of file from one folder to another folder

Hi all, let me explain my requirments i am having 5 folder with different name for eg) abc , cdf , efd, rtg, ead each 5 folders contain 15 files i want to move 10 files to some other folder, remain 5 files should be there in the same folder. give me some suggestion on this. (6 Replies)
Discussion started by: natraj005
6 Replies

9. Red Hat

Setting quota

I would like to set quota for ALL USERS on a particular filesystem and the quota to be set for NEWLY CREATED USERS also. I am not sure, whether my question is clear. I can set quota for all users but my requirement is, I want the same quota to be set automatically for the user which is going... (2 Replies)
Discussion started by: atanubanerji
2 Replies

10. UNIX for Beginners Questions & Answers

Set hard block limit for user using quota

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... (0 Replies)
Discussion started by: robertkwild
0 Replies
QUOTAON(8)						      System Manager's Manual							QUOTAON(8)

NAME
quotaon, quotaoff - turn filesystem quotas on and off SYNOPSIS
/usr/sbin/quotaon [ -vugfp ] [ -F format-name ] filesystem... /usr/sbin/quotaon [ -avugfp ] [ -F format-name ] /usr/sbin/quotaoff [ -vugp ] [ -x state ] filesystem... /usr/sbin/quotaoff [ -avugp ] DESCRIPTION
quotaon quotaon announces to the system that disk quotas should be enabled on one or more filesystems. The filesystem quota files must be present in the root directory of the specified filesystem and be named either aquota.user (for version 2 user quota), quota.user (for version 1 user quota), aquota.group (for version 2 group quota), or quota.group (for version 1 group quota). XFS filesystems are a special case - XFS considers quota information as filesystem metadata and uses journaling to provide a higher level guarantee of consistency. There are two components to the XFS disk quota system: accounting and limit enforcement. XFS filesystems require that quota accounting be turned on at mount time. It is possible to enable and disable limit enforcement on an XFS filesystem after quota accounting is already turned on. The default is to turn on both accounting and enforcement. The XFS quota implementation does not maintain quota information in user-visible files, but rather stores this information internally. quotaoff quotaoff announces to the system that the specified filesystems should have any disk quotas turned off. OPTIONS
quotaon -F, --format=format-name Report quota for specified format (ie. don't perform format autodetection). Possible format names are: vfsold Original quota format with 16-bit UIDs / GIDs, vfsv0 Quota format with 32-bit UIDs / GIDs, 64-bit space usage, 32-bit inode usage and limits, vfsv1 Quota format with 64-bit quota limits and usage, xfs (quota on XFS filesystem) -a, --all All automatically mounted (no noauto option) non-NFS filesystems in /etc/fstab with quotas will have their quotas turned on. This is normally used at boot time to enable quotas. -v, --verbose Display a message for each filesystem where quotas are turned on. -u, --user Manipulate user quotas. This is the default. -g, --group Manipulate group quotas. -p, --print-state Instead of turning quotas on just print state of quotas (ie. whether. quota is on or off) -x, --xfs-command enforce Switch on limit enforcement for XFS filesystems. This is the default action for any XFS filesystem. This option is only applicable to XFS, and is silently ignored for other filesystem types. -f, --off Make quotaon behave like being called as quotaoff. quotaoff -F, --format=format-name Report quota for specified format (ie. don't perform format autodetection). Possible format names are: vfsold (version 1 quota), vfsv0 (version 2 quota), xfs (quota on XFS filesystem) -a, --all Force all filesystems in /etc/fstab to have their quotas disabled. -v, --verbose Display a message for each filesystem affected. -u, --user Manipulate user quotas. This is the default. -g, --group Manipulate group quotas. -p, --print-state Instead of turning quotas off just print state of quotas (ie. whether. quota is on or off) -x, --xfs-command delete Free up the space used to hold quota information (maintained internally) within XFS. This option is only applicable to XFS, and is silently ignored for other filesystem types. It can only be used on a filesystem with quota previously turned off. -x, --xfs-command enforce Switch off limit enforcement for XFS filesystems (perform quota accounting only). This is the default action for any XFS filesystem. This option is only applicable to XFS, and is silently ignored for other filesystem types. -x, --xfs-command account This option can be used to disable quota accounting. It is not possible to enable quota accounting by quota tools. Use mount(8) for that. This option is only applicable to XFS filesystems, and is silently ignored for other filesystem types. NOTES ON XFS FILESYSTEMS
To enable quotas on an XFS filesystem, use mount(8) or /etc/fstab quota option to enable both accounting and limit enforcement. quotaon utility cannot be used for this purpose. Turning on quotas on an XFS root filesystem requires the quota mount options be passed into the kernel at boot time through the Linux root- flags boot option. To turn off quota limit enforcement on any XFS filesystem, first make sure that quota accounting and enforcement are both turned on using repquota -v filesystem. Then, use quotaoff -v filesystem to disable limit enforcement. This may be done while the filesystem is mounted. Turning on quota limit enforcement on an XFS filesystem is achieved using quotaon -v filesystem. This may be done while the filesystem is mounted. FILES
aquota.user or aquota.group quota file at the filesystem root (version 2 quota, non-XFS filesystems) quota.user or quota.group quota file at the filesystem root (version 1 quota, non-XFS filesystems) /etc/fstab default filesystems SEE ALSO
quotactl(2), fstab(5), quota_nld(8), repquota(8), warnquota(8) 4th Berkeley Distribution QUOTAON(8)
All times are GMT -4. The time now is 06:46 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy