Implementing quotas on Solaris 8

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.

Who is Participating?
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.
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.

EE Cleanup Volunteer
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.