Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello all,
For a user user1 and a filesystem /partition, quota is set. What happens if user1 has already exceeded the hard limit set for him?
Is there any way to cut down the storage space already allocated to user1 to the specified hard limit? Or the administrator has to do it manually?
I'm not sure I understand what you're asking, or if you're asking quite the right question.
When you ask "Is there any way to cut down the storage space already allocated to user1 to the specified hard limit?" do you mean is there a way for user1 to do that?
If user1 is over the hard limit they can't create any files or append to any existing files but they should still be able to log in and then delete files to get back under the hard limit. Even if they can't log in to an X session they should at least be able to log in to a command prompt.
Thanks for the reply,Arizona !
Say user1 has already used 5GB space and then quota is set on the filesystem with hard limit 4GB per user.In this case,do we have any configuration parametr in quota utility to reduce the space from 5GB to 4GB by automatically deleting some of his files/folders? Or can we set some grace period before deleting the files so?
I hope I'm communicating my question.
Quote:
Originally Posted by arizonagroovejet
I'm not sure I understand what you're asking, or if you're asking quite the right question.
When you ask "Is there any way to cut down the storage space already allocated to user1 to the specified hard limit?" do you mean is there a way for user1 to do that?
If user1 is over the hard limit they can't create any files or append to any existing files but they should still be able to log in and then delete files to get back under the hard limit. Even if they can't log in to an X session they should at least be able to log in to a command prompt.
In this case,do we have any configuration parametr in quota utility to reduce the space from 5GB to 4GB by automatically deleting some of his files/folders?
That was actually my best guess as to what you meant but I thought you couldn't mean that because... well how would that work exactly? How you you, or any utility, decide which of user1's files it was OK to delete? I'm assuming of course that you want to avoid making user1 hate you because you chose some of their files to delete at random.
As for a grace period, well as I said user1 won't be able to create or modify any files until they get back under their hard limit. So assuming user1 actually wants to keep using whatever system this quota is on, they'll have no choice but to delete some of their files themselves.
As for a grace period, well as I said user1 won't be able to create or modify any files until they get back under their hard limit. So assuming user1 actually wants to keep using whatever system this quota is on, they'll have no choice but to delete some of their files themselves.
Pragmatically, since the reason for the machine (and therefore, for your job) is to enable users to get work done ... you need to use your powers of politics and persuasion here, first. First, educate the user as to the reason why quotas exist. Next, ask them to reduce their disk space usage, and offer them practical assistance in doing so. (They're probably not programmers, and if you give them an ultimatum, you've also put their project and their personnel-budget in jeopardy.) Perhaps they can argue successfully that they need their quota to be larger. Prepare your point-of-view for easy decision making by a senior manager at the appropriate level of your company's food chain. (Maybe what the company should be doing instead is buying more disk drives. C'est la vie.)
Fair Warning: Take no action that could be interpreted as "adverse to" the business objectives of any user or customer. It does not matter in the slightest what your system-administration capabilities are, because you should not confuse these with your (much more limited...) prerogatives. Document the situation very carefully and approach your management now for guidance and instructions. You are treading on (familiar...) egg shells. This is why those people get paid the bigger bucks.
Quote:
They always have one more choice ... the choice to get rid of you.
Quote:
Diplomacy: The fine art of telling someone to go to hell, in such a way that they look forward to the trip.
Quote:
Leadership is the art of making someone do what you want them to do because they want to do it.
Last edited by sundialsvcs; 08-22-2011 at 03:08 PM.
What can I say?...Thank you very much for the reply.
Quote:
Originally Posted by sundialsvcs
Pragmatically, since the reason for the machine (and therefore, for your job) is to enable users to get work done ... you need to use your powers of politics and persuasion here, first. First, educate the user as to the reason why quotas exist. Next, ask them to reduce their disk space usage, and offer them practical assistance in doing so. (They're probably not programmers, and if you give them an
ultimatum, you've also put their project and their personnel-budget in jeopardy.) Perhaps they can argue successfully that they need their quota to be larger. Prepare your point-of-view for easy decision making by a senior manager at the appropriate level of your company's food chain. (Maybe what the company should be doing instead is buying more disk drives. C'est la vie.)
Fair Warning: Take no action that could be interpreted as "adverse to" the business objectives of any user or customer. It does not matter in the slightest what your system-administration capabilities are, because you should not confuse these with your (much more limited...) prerogatives. Document the situation very carefully and approach your management now for guidance and instructions. You are treading on (familiar...) egg shells. This is why those people get paid the bigger bucks.
That was actually my best guess as to what you meant but I thought you couldn't mean that because... well how would that work exactly? How you you, or any utility, decide which of user1's files it was OK to delete? I'm assuming of course that you want to avoid making user1 hate you because you chose some of their files to delete at random.
As for a grace period, well as I said user1 won't be able to create or modify any files until they get back under their hard limit. So assuming user1 actually wants to keep using whatever system this quota is on, they'll have no choice but to delete some of their files themselves.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.