HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: quota for all users
Operating System - Linux
1833109
Members
2951
Online
110051
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2004 03:39 PM
07-06-2004 03:39 PM
quota for all users
Is there any easier way to set quota for all users ? I have 800 users and 10 different systems. I want to avoid using script using /etc/passwod input.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2004 03:53 PM
07-06-2004 03:53 PM
Re: quota for all users
You want quota's for individual users?
You can set a default user quota, as well as a default group quota, which can then be refined per user/group should the need be required.
The Quota-HOWTO on at http://www.tldp.org/HOWTO/Quota.html has all the details on this, and much much more.
(NOTE: Most modern distributions have quota support built into the kernel already).
You can set a default user quota, as well as a default group quota, which can then be refined per user/group should the need be required.
The Quota-HOWTO on at http://www.tldp.org/HOWTO/Quota.html has all the details on this, and much much more.
(NOTE: Most modern distributions have quota support built into the kernel already).
One long-haired git at your service...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2004 01:42 AM
07-07-2004 01:42 AM
Re: quota for all users
I want to add default quota to all users.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2004 08:47 AM
07-08-2004 08:47 AM
Re: quota for all users
Default quotas are not implemented for users in the linux quota system.
This has to do with the quota being bound to the user id / group id. The authentication model determines these values, and linux can handle many different authentication models (see: pam, the pluggable authentication module). Finally, many authentication models have no concept of a "default" user or "default" values which are accessible from any users's login context.
Some extensions to quota have been proposed, including setting the quota for all possible uid's and gid's. That won't happen soon, since it is incredibly wasteful in disk space consider you would be settin quotas on the many thousands (or millions) of users who will never be created or used. Also setting quotas on all users is generally a bad idea on UNIX / LINUX systems where system services run as users instead of root (to enhance security).
Tracking down the mail user, database user, web user, ftp user, etc. and determining the appropriate amount of quota to set so email, oracle, apache, ftpd, etc. don't stop working quickly makes setting quotas on individual users seem a much better solution.
By the way, you don't need to use a password file to set quotas for all your users. Once you setup the "default" quota on user "bob" and you have a list of other users ("jane", "sally", and "jim") you wish to set identical quotas on, you can use the simple shell script:
#!/bin/sh
for USER in jane sally jim; do
edquota -p user1 "$USER"
done
This has to do with the quota being bound to the user id / group id. The authentication model determines these values, and linux can handle many different authentication models (see: pam, the pluggable authentication module). Finally, many authentication models have no concept of a "default" user or "default" values which are accessible from any users's login context.
Some extensions to quota have been proposed, including setting the quota for all possible uid's and gid's. That won't happen soon, since it is incredibly wasteful in disk space consider you would be settin quotas on the many thousands (or millions) of users who will never be created or used. Also setting quotas on all users is generally a bad idea on UNIX / LINUX systems where system services run as users instead of root (to enhance security).
Tracking down the mail user, database user, web user, ftp user, etc. and determining the appropriate amount of quota to set so email, oracle, apache, ftpd, etc. don't stop working quickly makes setting quotas on individual users seem a much better solution.
By the way, you don't need to use a password file to set quotas for all your users. Once you setup the "default" quota on user "bob" and you have a list of other users ("jane", "sally", and "jim") you wish to set identical quotas on, you can use the simple shell script:
#!/bin/sh
for USER in jane sally jim; do
edquota -p user1 "$USER"
done
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP