[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Folder size and limits?
- Subject: Re: [cobalt-users] Folder size and limits?
- From: "Brian N. Smith" <support@xxxxxxxxxx>
- Date: Wed Jul 2 21:16:02 2003
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
> Hi all,
> Just a quick one, how do I create and alter a directory size, by that I
mean
> limiting its size, and then making it larger.
>
> Any comments would be appreciated.
>
Your looking to apply a usage quota to it? The easiest way:
1) create your directory, it NEEDS to be under /home, as that is the only
partition
with quotas turned on.
2) create a user, under your domain, or whatever domain you wish. Set a max
amount of hard drive space for that user.
3) Change the ownership of that directory to match your user.
That should do what your set out to do.
Example:
cd /home/
mkdir directory_name
[cobalt gui --> create user "restricted", set quota to 'X']
chown restricted directory_name
Now, the thing is though, all files in that directory NEED to be owned by
'restricted' user
to make it work properly. Or what you can do is to do it via a new virtual
site, so that you
can limit it based on group quota, and then set the "sticky" bit for group,
so any files that
get made in that directory will be giving the group ID, and then be
enforced.
to set the "sticky" bit:
chmod g+s directory_name
So, now you have your options :-) Have fun!
Brian N. Smith
NuOnce Networks
www.nuonce.net
--
This message has been scanned for viruses and
dangerous content by MailScanner & F-Prot, and is
believed to be clean.