LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] umask query

[ILUG] umask query

Colm MacCarthaigh colm at stdlib.net
Fri Apr 22 23:27:09 IST 2005


On Fri, Apr 22, 2005 at 11:14:30PM +0100, Sean O Sullivan wrote:
> I'm not aware of which mod, or part of apache is creating the files, I 
> do know that the files are being created by apache, and are being 
> created in htroot & must have permissions 775.

o.k. well you're going to have to track that down and change the calls
for open() to use something other than the default permissions for files
(666). What are the files called?

> Apache's default umask (compiled in I believe) is set as 755, and ways 
> of changing are apparently editing the apachectl (however i added umask 
> 002 to this, and it made no difference) and mod_umask was created (with 
> mod_dav in mind I believe).
> 
> At this point, I'm thinking umask is not the way to go - since files 
> /must/ be 775, and umask sets files to 666 max.
> Problem is - I'm at a slight loss as to how to set file creation mask 
> (any googling only throws up umask or mod_umask, and not much of 
> anything else useful).

It's hardcoded into libc. glibc for example defines the macro
DEFFILEMODE. *nix systems never create executable files without
an explicit chmod, it's just part of the security model. 

It's a *really* bad idea changing this.

-- 
Colm MacCárthaigh                        Public Key: colm+pgp at stdlib.net



More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell