LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-15-2009, 03:57 PM   #1
siskyline
LQ Newbie
 
Registered: Jun 2009
Posts: 5

Rep: Reputation: 0
Suse - quota users home folder


Hello.

I have a small problem what I think can be solved but I am unsure what action to take.

I want to quota each user in my LDAP server there is ~1000 users, I have two current ideas to implament.

I understand that quotas only apply to file systems so,

1..
I create a "virtual filesystem" and also a mounting point for the user. this has worked great on my tests, but I am unsure if having 1000+ mounting points will be a problem.

2..
My home file is placed on a differant partition (/dev/sda3) so it is possible to apply a quota to this.

but when I goto set a quota for a user in option 2 it tells me that 2752 blocks have been taken, but this is a new user. so I can only come to the conclusion this will not work because it is quoting the hole home drive and not just the files of the user I am setting the quota for.

Is there any advice on what actions to take or documentation on a differant way to tackle this?

Thank you for your time,
Simon
 
Old 08-16-2009, 11:46 AM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650
Hi Simon,

Could you please provide the steps you are using to enable and manage quotas ?

thanks,


kbp
 
Old 08-16-2009, 10:38 PM   #3
siskyline
LQ Newbie
 
Registered: Jun 2009
Posts: 5

Original Poster
Rep: Reputation: 0
Hi,

Thanks fot the reply.

1) Packages have been installed
2) # quotacheck -cug /home - to create quota files
3) # edquota -f /home sosuser2 - add user sosuser2 to quota

Within the quota file it then tells me

Disk quotas for user sosuser2
Filesystem blocks soft hard
/dev/sda3 2752 0 0

4) If I was to continue I would of set the soft and hard limit for the user sosuser2 under soft and hard.
5) Save the file and enjoy quotas

I hope that helps you on the process I have taken, if you need any more information please ask.

Thanks,
Simon
 
Old 08-17-2009, 12:20 AM   #4
vishesh
Member
 
Registered: Feb 2008
Distribution: Fedora,RHEL,Ubuntu
Posts: 661

Rep: Reputation: 66
Issue quotaon command
root#quotaon /home

thnks
 
Old 08-17-2009, 02:15 AM   #5
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650
Hi Simon,

Another question... did you edit the /etc/fstab entry for /home to add usrquota,grpquota mount options ?

A quick google turned up this if you would like to compare your steps:

http://souptonuts.sourceforge.net/quota_tutorial.html


cheers

kbp
 
Old 08-17-2009, 10:46 AM   #6
siskyline
LQ Newbie
 
Registered: Jun 2009
Posts: 5

Original Poster
Rep: Reputation: 0
hi,

sorry that i forgot to add that in to the process. Yes i do edit that file.
I have also missed out quota on as stated in another post.

My main consern is where the space taken comming from if it is a new user. My assumtion was the quota only showed usage to that user. When i view the folder of the user the file size is 0

do you think there would be a problem having over a thousand mount point on a system.

Thanks again,
simon

Last edited by siskyline; 08-17-2009 at 10:55 AM.
 
Old 08-17-2009, 10:55 AM   #7
centosboy
Senior Member
 
Registered: May 2009
Location: london
Distribution: centos5
Posts: 1,137

Rep: Reputation: 116Reputation: 116
Quote:
Originally Posted by siskyline View Post
Hello.

I have a small problem what I think can be solved but I am unsure what action to take.

I want to quota each user in my LDAP server there is ~1000 users, I have two current ideas to implament.

I understand that quotas only apply to file systems so,

1..
I create a "virtual filesystem" and also a mounting point for the user. this has worked great on my tests, but I am unsure if having 1000+ mounting points will be a problem.

2..
My home file is placed on a differant partition (/dev/sda3) so it is possible to apply a quota to this.

but when I goto set a quota for a user in option 2 it tells me that 2752 blocks have been taken, but this is a new user. so I can only come to the conclusion this will not work because it is quoting the hole home drive and not just the files of the user I am setting the quota for.

Is there any advice on what actions to take or documentation on a differant way to tackle this?

Thank you for your time,
Simon
it will work.
blocks are always bound to be already used, because of existing directories created by default when adding the user that would have already have taken that space.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with cron in another users home folder tanveer Linux - General 3 04-08-2009 12:50 PM
Restricting users to their home folder supervillan Linux - Newbie 2 04-08-2009 12:47 PM
Copying to a folder in a users $HOME dir. jaredhanks Linux - Newbie 4 05-03-2008 01:17 AM
back up users home folder? paperplane Linux - Newbie 5 12-27-2007 04:45 PM
Home Folder for new users CatSC Red Hat 3 11-29-2003 05:21 PM


All times are GMT -5. The time now is 04:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration