You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Tom Ray <to...@blazestudios.com> on 2003/03/30 01:07:28 UTC
[users@httpd] A quick question
I have a web server set up right now and at the moment I have it
configured that any CGI or PHP script that creates a directory or file
it creates it via the webserver or nobody. It also creates the files
644, is there a way that I can create these files 664 instead? I just
can't find where I set that.
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] A quick question
Posted by Tim Wort <ti...@pobox.com>.
I am not certian but I believe in RedHat you can set the umask=002 in
/etc/rc.d/init.d/function script and it will be the system wide default or
you can set it in your cgi script, how depends on what language your using
but you can research that exact syntax.
umask=002 will have files created with 664 permissions and directoris with
775 permissions.
On Sun, 30 Mar 2003, Tom Ray wrote:
> Sorry Red Hat 7.3
>
> Tim Wort wrote:
>
> >the 644 is a function of a default umask of 022, you need to set the
> >umask, this is typically done in say /etc/profile (depends on the shell)
> >for a user or it can be set in the cgi script. Some systems will allow you
> >to set a default, you didn't mention the OS your using.
> >
> >
> >On Sat, 29 Mar 2003, Tom Ray wrote:
> >
> >
> >
> >>I have a web server set up right now and at the moment I have it
> >>configured that any CGI or PHP script that creates a directory or file
> >>it creates it via the webserver or nobody. It also creates the files
> >>644, is there a way that I can create these files 664 instead? I just
> >>can't find where I set that.
> >>
> >>
> >>---------------------------------------------------------------------
> >>The official User-To-User support forum of the Apache HTTP Server Project.
> >>See <URL:http://httpd.apache.org/userslist.html> for more info.
> >>To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> >> " from the digest: users-digest-unsubscribe@httpd.apache.org
> >>For additional commands, e-mail: users-help@httpd.apache.org
> >>
> >>
> >>
> >>
> >>
> >
> >=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> >= Inkling Research Inc. =
> >= Tim.Wort@InklingResearch.com =
> >= Tim.Wort@pobox.com =
> >= =
> >= Eschew Obfuscation =
> >=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> >
> >
> >
> >---------------------------------------------------------------------
> >The official User-To-User support forum of the Apache HTTP Server Project.
> >See <URL:http://httpd.apache.org/userslist.html> for more info.
> >To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> > " from the digest: users-digest-unsubscribe@httpd.apache.org
> >For additional commands, e-mail: users-help@httpd.apache.org
> >
> >
> >
> >
>
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
= Inkling Research Inc. =
= Tim.Wort@InklingResearch.com =
= Tim.Wort@pobox.com =
= =
= Eschew Obfuscation =
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] A quick question
Posted by Tom Ray <to...@blazestudios.com>.
Sorry Red Hat 7.3
Tim Wort wrote:
>the 644 is a function of a default umask of 022, you need to set the
>umask, this is typically done in say /etc/profile (depends on the shell)
>for a user or it can be set in the cgi script. Some systems will allow you
>to set a default, you didn't mention the OS your using.
>
>
>On Sat, 29 Mar 2003, Tom Ray wrote:
>
>
>
>>I have a web server set up right now and at the moment I have it
>>configured that any CGI or PHP script that creates a directory or file
>>it creates it via the webserver or nobody. It also creates the files
>>644, is there a way that I can create these files 664 instead? I just
>>can't find where I set that.
>>
>>
>>---------------------------------------------------------------------
>>The official User-To-User support forum of the Apache HTTP Server Project.
>>See <URL:http://httpd.apache.org/userslist.html> for more info.
>>To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> " from the digest: users-digest-unsubscribe@httpd.apache.org
>>For additional commands, e-mail: users-help@httpd.apache.org
>>
>>
>>
>>
>>
>
>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>= Inkling Research Inc. =
>= Tim.Wort@InklingResearch.com =
>= Tim.Wort@pobox.com =
>= =
>= Eschew Obfuscation =
>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>
>
>
>---------------------------------------------------------------------
>The official User-To-User support forum of the Apache HTTP Server Project.
>See <URL:http://httpd.apache.org/userslist.html> for more info.
>To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
>For additional commands, e-mail: users-help@httpd.apache.org
>
>
>
>
Re: [users@httpd] A quick question
Posted by Tim Wort <ti...@pobox.com>.
the 644 is a function of a default umask of 022, you need to set the
umask, this is typically done in say /etc/profile (depends on the shell)
for a user or it can be set in the cgi script. Some systems will allow you
to set a default, you didn't mention the OS your using.
On Sat, 29 Mar 2003, Tom Ray wrote:
> I have a web server set up right now and at the moment I have it
> configured that any CGI or PHP script that creates a directory or file
> it creates it via the webserver or nobody. It also creates the files
> 644, is there a way that I can create these files 664 instead? I just
> can't find where I set that.
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
>
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
= Inkling Research Inc. =
= Tim.Wort@InklingResearch.com =
= Tim.Wort@pobox.com =
= =
= Eschew Obfuscation =
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org