We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now

x

Implementing quotas on Solaris 8

wfaleiro
wfaleiro asked
on
Medium Priority
905 Views
Last Modified: 2013-12-21
Hi,
Is there any way I can implement a quota on a subdirectory on a file system. currently i need to implement a file system on a partition/subdirectory. I cannot implement it on the global partition as it will apply to the whole filesytem onthat partition. Just want to know if I could mount this subdirectory to some othe rpartiton and implement the quota on that mount.

Thanks,
--Walter
Comment
Watch Question

Quotas are inherently a property of the mount of a physical filesystem, and can not be applied to virtual, network, or other types of mounts. You can enable quotas on the whole filesystem and then just specify limits for the user(s) or group(s) that will be writing to the directory that you wish to limit.

If you are simply trying to limit the behavior of applications that may be writing to a specific directory, create a group for this purpose and set quota limits for it. Then set the group owner of the directory to the limited group and turn on the set-gid permission bit on the directory (with a command such as "chmod g+s <path>"). This sets the directory in BSD-style group propagation mode so that all files and subdirectories created will have the group of their parent, and thus subject to your quota, regardless of the uid or gid of the running application that created the file.

This method is sufficient to limit well-behaved applications that simply create or write to files in the limited directories. If you are trying to limit applications or users that may attempt to subvert the quota system by changing the group ownership of files or directories, then you will also need to guarantee that any applications run with only the gid of the limited group, and no additional groups, thus preventing them from changing group owners of files or directories to anything else. This still will not prevent them from writing to exisiting files with other group owners without limit; the only way to prevent that is to be sure such files are never writable to them in the filesystem.

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
XoF

Commented:
No comment has been added to this question in more than 21 days, so it is now classified as abandoned.
I will leave the following recommendation for this question in the Cleanup topic area:

Accept: TimEliseo

Any objections should be posted here in the next 4 days. After that time, the question will be closed.

-XoF-
EE Cleanup Volunteer
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.