You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Eelco Alosery <in...@multi-graphics.nl> on 2003/02/28 23:47:02 UTC

[users@httpd] premisions problem

I have a question about premisions.
I have a domain hosted by a hosting company, and when I let perl make a 
file and chmod it to 0711 it is posible for my to read the file whit 
perl, and to read the file when I'm loged in to the server on FTP.
But other domains on the same server can not read this file whit perl, 
what is good.
But now I have ad home a personal webserver on my laptop and whem I 
greate a file exactly as subscribet as above I can only read it whit 
perl but not when i'm loged in to server on FTP, then my premisions are 
not corect.

What is the diverence between my peronal server and the hosting 
company's server.
Is it becose I havent setup virtualhosts and the hosting company dus 
have set ip up.

Any help wil be great.


---------------------------------------------------------------------
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] premisions problem

Posted by Eelco Alosery <in...@multi-graphics.nl>.
I have the same problem.
I think it has to do becose you and I need to enable suexec on apache.
But I dont know how to do this, I have posted my question about this to.

Richard Hector heeft op dinsdag, 4 maa 2003 om 08:56 (Europe/Amsterdam) 
het volgende geschreven:

> On Sat, Mar 01, 2003 at 12:24:47AM +0100, Eelco Alosery wrote:
>>
>> Example:
>> Everyting I put tru FTP or created tru FTP on the hosting company's
>> server has owner 621 groep 83, even when perl greates a file.
>> On my personal server everyting put tru FTP has owner 301 groep 45, 
>> but
>> files greated by perl are owner 20 groep 45.
>> Thats why I cant read the files on FTP.
>
> My guess: Your hosting company has setup apache to run scripts as you,
> which helps protect other customers' data. Therefore you can read them.
>
> Your home server runs them as www-data or something, which I think is 
> the
> default. So the files are owned by www-data, and not readable by you.
>
> What the best way is to get it to work how you want, I don't know.
>
> Richard
>
>
> ---------------------------------------------------------------------
> 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
>


---------------------------------------------------------------------
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] premisions problem

Posted by Richard Hector <rh...@paradise.net.nz>.
On Sat, Mar 01, 2003 at 12:24:47AM +0100, Eelco Alosery wrote:
> 
> Example:
> Everyting I put tru FTP or created tru FTP on the hosting company's 
> server has owner 621 groep 83, even when perl greates a file.
> On my personal server everyting put tru FTP has owner 301 groep 45, but 
> files greated by perl are owner 20 groep 45.
> Thats why I cant read the files on FTP.

My guess: Your hosting company has setup apache to run scripts as you,
which helps protect other customers' data. Therefore you can read them.

Your home server runs them as www-data or something, which I think is the
default. So the files are owned by www-data, and not readable by you.

What the best way is to get it to work how you want, I don't know.

Richard


---------------------------------------------------------------------
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] premisions problem

Posted by ge...@ameritech.net.
Security and other concerns aside, just in terms of users (browsers)  
being able to read a file, it doesn't matter which uid or groupid owns
the file.  It only needs to be world-readable.  I believe you're saying
you *don't* want people (browsers) to be able to read the file, but only
execute it (yes?).  If so, then yes, "chmod 711" will do this.  If
ownership of the file is important (for some reason I can't fathom), it
can be changed with the "chown" command (do "man chown" for more info).  
On most UNIX systems, however, you must be root to successfully change a
file's ownership.


Happy hacking,
ken

At 00:24 (UTC+0100) on Sat, 1 Mar 2003 Eelco Alosery said:

= I also want to let other users to be unable to read this file thats wy 
= i use chmod 711
= I want to by the owner if this file like as it is on the server from  
= the hosting company, and not perl to be the owner
= 
= Example:
= Everyting I put tru FTP or created tru FTP on the hosting company's 
= server has owner 621 groep 83, even when perl greates a file.
= On my personal server everyting put tru FTP has owner 301 groep 45, but 
= files greated by perl are owner 20 groep 45.
= Thats why I cant read the files on FTP.
= 
= gebser@ameritech.net heeft op zaterdag, 1 maa 2003 om 00:13 
= (Europe/Amsterdam) het volgende geschreven:
= 
= >
= > chmod 644 [file_spec]
= >
= > At 23:47 (UTC+0100) on Fri, 28 Feb 2003 Eelco Alosery said:
= >
= > = I have a question about premisions.
= > = I have a domain hosted by a hosting company, and when I let perl 
= > make a
= > = file and chmod it to 0711 it is posible for my to read the file whit
= > = perl, and to read the file when I'm loged in to the server on FTP.
= > = But other domains on the same server can not read this file whit 
= > perl,
= > = what is good.
= > = But now I have ad home a personal webserver on my laptop and whem I
= > = greate a file exactly as subscribet as above I can only read it whit
= > = perl but not when i'm loged in to server on FTP, then my premisions 
= > are
= > = not corect.
= > =
= > = What is the diverence between my peronal server and the hosting
= > = company's server.
= > = Is it becose I havent setup virtualhosts and the hosting company dus
= > = have set ip up.
= > =
= > = Any help wil be great.
= > =
= > =
= > = ---------------------------------------------------------------------
= > = 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
= > =
= >
= >
= > ---------------------------------------------------------------------
= > 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
= >
= 
= 
= ---------------------------------------------------------------------
= 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
= 


---------------------------------------------------------------------
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] premisions problem

Posted by Eelco Alosery <in...@multi-graphics.nl>.
I also want to let other users to be unable to read this file thats wy 
i use chmod 711
I want to by the owner if this file like as it is on the server from  
the hosting company, and not perl to be the owner

Example:
Everyting I put tru FTP or created tru FTP on the hosting company's 
server has owner 621 groep 83, even when perl greates a file.
On my personal server everyting put tru FTP has owner 301 groep 45, but 
files greated by perl are owner 20 groep 45.
Thats why I cant read the files on FTP.

gebser@ameritech.net heeft op zaterdag, 1 maa 2003 om 00:13 
(Europe/Amsterdam) het volgende geschreven:

>
> chmod 644 [file_spec]
>
> At 23:47 (UTC+0100) on Fri, 28 Feb 2003 Eelco Alosery said:
>
> = I have a question about premisions.
> = I have a domain hosted by a hosting company, and when I let perl 
> make a
> = file and chmod it to 0711 it is posible for my to read the file whit
> = perl, and to read the file when I'm loged in to the server on FTP.
> = But other domains on the same server can not read this file whit 
> perl,
> = what is good.
> = But now I have ad home a personal webserver on my laptop and whem I
> = greate a file exactly as subscribet as above I can only read it whit
> = perl but not when i'm loged in to server on FTP, then my premisions 
> are
> = not corect.
> =
> = What is the diverence between my peronal server and the hosting
> = company's server.
> = Is it becose I havent setup virtualhosts and the hosting company dus
> = have set ip up.
> =
> = Any help wil be great.
> =
> =
> = ---------------------------------------------------------------------
> = 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
> =
>
>
> ---------------------------------------------------------------------
> 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
>


---------------------------------------------------------------------
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] premisions problem

Posted by ge...@ameritech.net.
chmod 644 [file_spec]

At 23:47 (UTC+0100) on Fri, 28 Feb 2003 Eelco Alosery said:

= I have a question about premisions.
= I have a domain hosted by a hosting company, and when I let perl make a 
= file and chmod it to 0711 it is posible for my to read the file whit 
= perl, and to read the file when I'm loged in to the server on FTP.
= But other domains on the same server can not read this file whit perl, 
= what is good.
= But now I have ad home a personal webserver on my laptop and whem I 
= greate a file exactly as subscribet as above I can only read it whit 
= perl but not when i'm loged in to server on FTP, then my premisions are 
= not corect.
= 
= What is the diverence between my peronal server and the hosting 
= company's server.
= Is it becose I havent setup virtualhosts and the hosting company dus 
= have set ip up.
= 
= Any help wil be great.
= 
= 
= ---------------------------------------------------------------------
= 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
= 


---------------------------------------------------------------------
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