- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- how i set the max files number for user?
Categories
Company
Local Language
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
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
Community
Resources
Forums
Blogs
- 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
05-03-2006 01:44 AM
05-03-2006 01:44 AM
how i set the max files number for user?
what is the different of:
/etc/security/limits.conf
hard nofile numberA
soft nofile numberB
more /proc/sys/fs/file-max
and use the command
ulimit -u number -n number
in the .bash_profile
????
i am confuse, please help me!!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2006 02:04 AM
05-03-2006 02:04 AM
Re: how i set the max files number for user?
You can use /etc/security/limits.conf establish the maximum limits for users or groups.
The ulimit command can be used to modify these values but never larger to the established on the limits.conf file, only root can raise the limits. So, use /etc/security/limits.conf to configure the limits for users.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2006 02:04 AM
05-03-2006 02:04 AM
Re: how i set the max files number for user?
hard nofile numberA
soft nofile numberB
are the limits that you should use - there are hard and soft limits per user/group.
2)
more /proc/sys/fs/file-max
is a per system limit - e.g. for all processes
3)
and use the command
ulimit -u number -n number
in the .bash_profile
With this command regular user can increase his limit, but only up to his hard limit
There is setrlimit() system call that do the same thing.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2006 02:06 AM
05-03-2006 02:06 AM
Re: how i set the max files number for user?
I've never heard of limits.conf, but please tell us what distribution of Linux we're talking about here.
ulimit and kernel parameters can control max files per user. There are two limtits to look at. Overall limits for the system and for any one user.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2006 02:08 AM
05-03-2006 02:08 AM
Re: how i set the max files number for user?
You can do it by enabling quota on the file system.
Once that is done use the edquota command to set the max no. of inodes that a user can have. ( as each file has an inode if you specify max indoes as 100 the user will be able to make only 100 files)
Cheers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2006 03:50 AM
05-03-2006 03:50 AM
Re: how i set the max files number for user?
but, where i set the default???