Operating System - HP-UX
1748201 Members
2941 Online
108759 Solutions
New Discussion юеВ

Limiting Users Home Directory Size

 
Jason Berendsen
Regular Advisor

Limiting Users Home Directory Size

Does anyone know of a way to limit the size of a users home directory in HP-UX?

Thanks
7 REPLIES 7
Rainer von Bongartz
Honored Contributor

Re: Limiting Users Home Directory Size

set up quotas for your users.
see man(5) quotas
He's a real UNIX Man, sitting in his UNIX LAN making all his UNIX plans for nobody ...
Brendan Newport
Frequent Advisor

Re: Limiting Users Home Directory Size

You could set Disk Quotas on (say) the /home file system, then with edquota, set low and high limits for each individual user.

Quotas are a bit awkward if your user community is constantly changing, but for a fixed environment it should do the trick.

Bren

"It doesn't have to be like this. All we need to do is make sure we keep talking"(Dave Gilmour)
Magdi KAMAL
Respected Contributor

Re: Limiting Users Home Directory Size

Hi Jason,

Using disk quotas solve your problem.

edquota [ -p proro-user ] username ...
edquota -t

Filesystem on which you want to set user's quota must contain in it's root disrectory a file named "quota".

Magdi
Sundar_7
Honored Contributor

Re: Limiting Users Home Directory Size

First setup an empty quotas file

using

cpset /dev/null /home/quotas..

then go for edquota
Learn What to do ,How to do and more importantly When to do ?
Ravi_8
Honored Contributor

Re: Limiting Users Home Directory Size

Hi,
setting up the quota on every user is the only way to restrict their home dir's sizes
never give up
Deshpande Prashant
Honored Contributor

Re: Limiting Users Home Directory Size

Thierry Poels_1
Honored Contributor

Re: Limiting Users Home Directory Size

hi,
as quotacheck is based on the owner of the files, and not really on the total size of the user's homedir, you should also limit the use of "chown" (see setprivgrp) ;-)
regards,
Thierry.
All unix flavours are exactly the same . . . . . . . . . . for end users anyway.