[SLUG] Force mounting usb storage read only

2012-04-03 Thread Grant Street

Hello All

Before I post to the Centos list I was wondering if you all had any ideas.

Due to compliance requirements we are looking to be able to force 
mounting of usb drives to be read only.


We originally thought of black listing the usb-storage kernel modules. 
Although it is very simple to implement, it is probably a bit too 
restrictive.


I am getting confused however what exactly is doing the auto mount for 
desktop machines and how to introduce different mount options eg ro .


I found that Centos 6 has udev, HAL,  udisks and gvfs and trying to 
decipher who does what is a bit daunting.


I know that all bets are off for the root user, I am just looking for a 
solution for average user logging in graphically.


Thanks in advance

Grant
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Linux and Apache limits on number of files in a directory

2012-04-03 Thread Ken Foskey
-Original Message- 
From: Marghanita da Cruz 
Sent: Tuesday, April 03, 2012 12:31 PM 
To: slug 
Subject: [SLUG] Linux and Apache limits on number of files in a directory 

Hi All,

Does anyone know what the limit is on the number of files in Linux
Directories and Apache Directories?

Also, any idea what happens if you hit the limit?
---

While I now the limit on a directory is very large it is NOT a good idea to 
fill it.   I had major performance problems on a system that recorded every 
file into a single directory.   I found that performance improved substantially 
just by structuring a couple of subdirectories.

If you look at cricket archive it uses a magic number for every player,  there 
are possibly close to 1 million players by now (700,000+ last time I checked).  
 It uses grouping of 1000 to reduce the number of entries that it searches.  so 
0/900, 1/1789,   214/214759.   When I downloaded the players in a single 
directory on my computer after download the directory management took it toll 
on my application,  following the same directory structure had a massive 
improvement on performance,  a simple divide gave me the directory.

Thanks
Ken
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html