LinuxQuestions.org
Visit Jeremy's Blog.
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 06-07-2008, 02:07 AM   #1
yadava
Member
 
Registered: Apr 2008
Posts: 60

Rep: Reputation: 15
Cool problem relating quota


hi all
i have a problem relating quota setup
i want to setup quota for a group "quo"
i applied all setting
there are three users "ddn,azm,chand"
that are the member of this group
i had set the soft limit up to 2M and hard limit up to 3M
but this restriction was not applied to any one of the above user
same thing i did with group chand, since chand is also a user
i added user "ddn,azm" to group chand
and applied quota setting
but quota restriction was only enable for user chand not on user "ddn" and "azm"
plz help me
 
Old 06-07-2008, 10:30 PM   #2
eggixyz
Member
 
Registered: Apr 2008
Posts: 310

Rep: Reputation: 30
Hey THere,

This could vary slightly depending on what distro you're using.

Have you checked using repquota -a or quotacheck? Either of those two commands might give you some insight into where the problem lies.

If you could post the commands you used to set the quotas and what distro you're running on, that would make it easier to help you out

Thanks,

Mike
 
Old 06-08-2008, 01:22 AM   #3
yadava
Member
 
Registered: Apr 2008
Posts: 60

Original Poster
Rep: Reputation: 15
Cool

Quote:
Originally Posted by yadava View Post
hi all
i have a problem relating quota setup
i want to setup quota for a group "quo"
i applied all setting
there are three users "ddn,azm,chand"
that are the member of this group
i had set the soft limit up to 2M and hard limit up to 3M
but this restriction was not applied to any one of the above user
same thing i did with group chand, since chand is also a user
i added user "ddn,azm" to group chand
and applied quota setting
but quota restriction was only enable for user chand not on user "ddn" and "azm"
plz help me
i used following command
1-entry of usequota and grpquota in /etc/fstab
2-mount -o remount /home
3-quioacheck -cug /home
4- edquota -u username (for user)
5- edquota -g groupname (for group)
6- repquota -a (to see the settings)
7- quota -g groupname (to see the group quota setting)
8- quota username (to see the user quota setting)
i am using currently RED HAT ENTERPRISE LINUX 5.0 server edition
(2.6.18-8)
 
Old 06-09-2008, 12:49 AM   #4
eggixyz
Member
 
Registered: Apr 2008
Posts: 310

Rep: Reputation: 30
Hey Again,

Can you post the output for your commands, also. Mostly, the edquota -g (what comes up in the editor) and then for quota -g groupname.

It might be helpful to see all the output, for the other commands, too, since chand is both a group and a user (might be an issue, maybe, I'm not sure).

Also, have you set any "project" limits for any of these users or groups? There might be a quirky interaction to be found there, too.

Hopefully, with all the info, this will make more sense to me and I can help you fix it

Thanks, again!

, Mike
 
Old 06-09-2008, 06:15 AM   #5
sins
LQ Newbie
 
Registered: Jun 2008
Posts: 4

Rep: Reputation: 0
Hi yadav try it

mount /home on fstab
mount -o remount /home
quotacheck -c /home
edquota -u username
set your quota limits as soft=2M and hard 3M
---> I think 2M is not good in quota file give 2048(default is KB....ok)
quotaon /home

swithch to that user and run the command
dd if=/dev/zero of=filename bs=1024 count=2048 -> sure you will get warning
dd if=/dev/zero of=filename bs=1024 count=3072 -> user quota is over
 
Old 06-11-2008, 12:07 PM   #6
yadava
Member
 
Registered: Apr 2008
Posts: 60

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by eggixyz View Post
Hey Again,

Can you post the output for your commands, also. Mostly, the edquota -g (what comes up in the editor) and then for quota -g groupname.

It might be helpful to see all the output, for the other commands, too, since chand is both a group and a user (might be an issue, maybe, I'm not sure).

Also, have you set any "project" limits for any of these users or groups? There might be a quirky interaction to be found there, too.

Hopefully, with all the info, this will make more sense to me and I can help you fix it

Thanks, again!

, Mike
whatsoever i tried i am giving here
**********************************************
1- i made a group "quo"
2- i added three user in this group
3- edquota -g (group name)
4- save and exit
5- quota -g groupname was showing the quota limits on that group
6- when i login with a user that was the member of the group "quo"
and tried to check the quota limit but it easily crossed the
soft limit and hard limit barrier
i had set the soft limit 2000 and hard limit 3000
 
Old 06-11-2008, 02:47 PM   #7
eggixyz
Member
 
Registered: Apr 2008
Posts: 310

Rep: Reputation: 30
Hi again,

I think we're just misunderstanding one another. If you could, can you post the output of your commands. For instance, if you did "quota -g groupname" and "requota -a" can you post the full output for the commands, as well as the command themselves.

So, for quota -g quo and quota -q chand and repquota -a, can you post the output you receive from those commands. If you just run those 3 commands in succession, grep quo and chand from /etc/group and grep your users out of /etc/passwd (only really need to see the uid, gid and seconday gid fields), that would be helpful.

I understand "what" you're doing, but I can't replicate it and need to see the response the OS is giving you to understand where the problem is occurring.

Also, try "sins"' suggestions above. Hopefully they will work for you and you won't have to post another thing

Thanks,

Mike
 
  


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 relating SSH shwetank_gupta1 Linux - Networking 1 02-22-2007 09:50 AM
procmail+quota+bounch mail+but no quota full msg to receipent mickyman Linux - General 3 03-02-2006 04:32 AM
ftp quota probs - 0kb files at quota limit ph_xm Linux - Newbie 0 02-02-2005 12:13 PM
A problem with quota ZeiP Slackware 4 01-04-2004 02:29 PM
Quota problem kelper Linux - General 2 10-08-2003 12:37 AM


All times are GMT -5. The time now is 04:51 AM.

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