Hmm, i think you do have a point. There is one main place where writing files are done:
_clucene-config.h:#define _cl_open open store/FSDirectory.cpp: fhandle = _cl_open( path, _O_BINARY | O_RDWR | _O_RANDOM | O_TRUNC, _S_IREAD | _S_IWRITE); so the file mode would need to be changed to something else. Commit 48c68c4a420b42bf4db9423f8633df57abf880aa implements FSDirectory->setFileMode(0644) type of functionality. I hope that helps? If it does, let me know and i'll merge it into master, as i think it is a very useful feature ben 2009/10/22 Michel Nadeau <aka...@gmail.com>: > My Index Writer daemon is running as root. The index directory's permission > is 755 (root.root); I created a file manually in that directory and the file > was 644. All files created by CLucene 2.3.2 in that directory are 600. I > didn't have that issue with CLucene 0.9.x. > > Any idea? > > - Mike > aka...@gmail.com > > > On Thu, Oct 22, 2009 at 3:29 AM, Ben vanklinken <bvanklin...@gmail.com> > wrote: >> >> As far as I am aware we don't specify any file permissions when we open a >> file for writing. It is up to the file system based on parent >> directory/sticky bit/whatever >> Ben >> >> Sent from my iPhone >> On 22/10/2009, at 12:04 AM, Michel Nadeau <aka...@gmail.com> wrote: >> >> Hi, >> >> Is there a way to specify the IndexWriter to write index files using a >> specific permission? The default seems to be 600 (read/write by owner only). >> I would like my index files to be written using the 644 permission. >> >> Thanks! >> >> - Mike >> aka...@gmail.com >> >> >> ------------------------------------------------------------------------------ >> Come build with us! The BlackBerry(R) Developer Conference in SF, CA >> is the only developer event you need to attend this year. Jumpstart your >> developing skills, take BlackBerry mobile applications to market and stay >> ahead of the curve. Join us from November 9 - 12, 2009. Register now! >> http://p.sf.net/sfu/devconference >> >> _______________________________________________ >> CLucene-developers mailing list >> CLucene-developers@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/clucene-developers >> >> >> ------------------------------------------------------------------------------ >> Come build with us! The BlackBerry(R) Developer Conference in SF, CA >> is the only developer event you need to attend this year. Jumpstart your >> developing skills, take BlackBerry mobile applications to market and stay >> ahead of the curve. Join us from November 9 - 12, 2009. Register now! >> http://p.sf.net/sfu/devconference >> _______________________________________________ >> CLucene-developers mailing list >> CLucene-developers@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/clucene-developers >> > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > CLucene-developers mailing list > CLucene-developers@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/clucene-developers > > ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ CLucene-developers mailing list CLucene-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/clucene-developers