You are not logged in.

#1 2006-04-26 06:13:17

peque
Member
From: Denmark - Møn
Registered: 2005-06-26
Posts: 441

Quotas on users homedir [SOLVED]

Hi Forum.

I´m working on a school where I have set up an fileserver where the students have a /home on... but they are young student and after a week there music  to the limit..

Is there an way to setup a quota on each students home, so they can´t have more than 2GB ???


Just getting better .... All the time

Offline

#2 2006-04-26 14:10:49

FUBAR
Member
From: Belgium
Registered: 2004-12-08
Posts: 1,029
Website

Re: Quotas on users homedir [SOLVED]

You quota support enabled for your filesystems. This can be done by enabling it in the kernel and recompiling it.
I'm sure it's possible, but I've never done it so I suggest you google a bit. I have a shell account on a computer at college and my ~ is limited to 250MB.


A bus station is where a bus stops.
A train station is where a train stops.
On my desk I have a workstation.

Offline

#3 2006-04-27 14:30:38

peque
Member
From: Denmark - Møn
Registered: 2005-06-26
Posts: 441

Re: Quotas on users homedir [SOLVED]

OK.. Never done this before .... so how do it recompile the kernel with that option??? is there a good howto on arch


Just getting better .... All the time

Offline

#4 2006-04-27 14:42:32

FUBAR
Member
From: Belgium
Registered: 2004-12-08
Posts: 1,029
Website

Re: Quotas on users homedir [SOLVED]

Check this Wiki.

I suggest you document your quota project in a Wiki page so others can use it. tongue


A bus station is where a bus stops.
A train station is where a train stops.
On my desk I have a workstation.

Offline

#5 2006-04-27 15:05:52

peque
Member
From: Denmark - Møn
Registered: 2005-06-26
Posts: 441

Re: Quotas on users homedir [SOLVED]

Yup - the funniest thing about this little project is...

first time i did quotaon -uv /home   < it said that this option was not supported by this kernel - damn it - hmmm - I restart my server - and did it again and then it works ... So now I´m gonna document that little trick...

I saw your link earliere - and not that good in linux or english "just" to try it....  But thanks very much for your answers - they made me think a litlle more about these things !


Just getting better .... All the time

Offline

#6 2006-04-27 15:57:38

peque
Member
From: Denmark - Møn
Registered: 2005-06-26
Posts: 441

Re: Quotas on users homedir [SOLVED]

Here a little wiki about my journey is this area:
http://wiki.archlinux.org/index.php/How … _Userquota


Just getting better .... All the time

Offline

#7 2006-04-27 16:57:04

FUBAR
Member
From: Belgium
Registered: 2004-12-08
Posts: 1,029
Website

Re: Quotas on users homedir [SOLVED]

Very nice!


A bus station is where a bus stops.
A train station is where a train stops.
On my desk I have a workstation.

Offline

#8 2006-04-27 17:10:54

peque
Member
From: Denmark - Møn
Registered: 2005-06-26
Posts: 441

Re: Quotas on users homedir [SOLVED]

By the way...

Do you know if there´s a way to make it work on users in a LDAP...
Does this work as the same way??? But how do I set it up that way?
Do you know anything about that..
1 PC is running fileserver with samba on.
1 PC is running LDAP with home mountet from the other machine??
How do I get quota to work with LDAP´s users (they´re only virtuel?? )


Just getting better .... All the time

Offline

#9 2006-04-27 17:22:02

peque
Member
From: Denmark - Møn
Registered: 2005-06-26
Posts: 441

Re: Quotas on users homedir [SOLVED]

I have now done some searching - and just to be sure...
The quota follows the UID ?????
(no local ID is needed - also virtuel users are bounded by quota??

If some one could give me an answer on that - then my happiness is done.


Just getting better .... All the time

Offline

#10 2006-04-28 11:52:03

FUBAR
Member
From: Belgium
Registered: 2004-12-08
Posts: 1,029
Website

Re: Quotas on users homedir [SOLVED]

Maybe it helps if you remove [SOLVED] from the topic title. wink

I still can't help you with the actual problem though. Still no experience.


A bus station is where a bus stops.
A train station is where a train stops.
On my desk I have a workstation.

Offline

#11 2006-04-28 15:01:53

peque
Member
From: Denmark - Møn
Registered: 2005-06-26
Posts: 441

Re: Quotas on users homedir [SOLVED]

Nahh - that´s OK - it is solved ....
After some ekstra study I found the answer - The users follows the UID - no matter what Local users /ldap users - so it is solved  big_smile


Just getting better .... All the time

Offline

Board footer

Powered by FluxBB