[PHP] tar and ownership

2003-11-21 Thread Rodney Green
Greetings! I'm writing a script that downloads a tarball from an FTP server and unpacks it into a directory. Here's the line of code that does this. exec(tar -C /scripts/ -zxv --preserve-permissions -f . /scripts/mailfiles.tar.gz) or die('Tar failed!'); My problem is that the files'

Re: [PHP] tar and ownership

2003-11-21 Thread Marek Kilimajer
Rodney Green wrote: Greetings! I'm writing a script that downloads a tarball from an FTP server and unpacks it into a directory. Here's the line of code that does this. exec(tar -C /scripts/ -zxv --preserve-permissions -f . /scripts/mailfiles.tar.gz) or die('Tar failed!'); My problem is

Re: [PHP] tar and ownership

2003-11-21 Thread Rodney Green
Marek Kilimajer wrote: Rodney Green wrote: Greetings! I'm writing a script that downloads a tarball from an FTP server and unpacks it into a directory. Here's the line of code that does this. exec(tar -C /scripts/ -zxv --preserve-permissions -f . /scripts/mailfiles.tar.gz) or die('Tar

Re: [PHP] tar and ownership

2003-11-21 Thread Eugene Lee
On Fri, Nov 21, 2003 at 01:10:28PM -0500, Rodney Green wrote: : Marek Kilimajer wrote: : Rodney Green wrote: : : I'm writing a script that downloads a tarball from an FTP server and : unpacks it into a directory. Here's the line of code that does this. : : exec(tar -C /scripts/ -zxv

RE: [PHP] tar and ownership

2003-11-21 Thread Wouter van Vliet
Rodney Green wrote: Marek Kilimajer wrote: Rodney Green wrote: Greetings! I'm writing a script that downloads a tarball from an FTP server and unpacks it into a directory. Here's the line of code that does this. exec(tar -C /scripts/ -zxv --preserve-permissions -f .

[PHP] FW: [ERR] RE: [PHP] tar and ownership

2003-11-21 Thread Wouter van Vliet
[EMAIL PROTECTED] wrote: Transmit Report: To: [EMAIL PROTECTED], 402 Local User Inbox Full ([EMAIL PROTECTED]) Is someone able to unsubscribe [EMAIL PROTECTED] .. I'm getting annoyed by all those User inbox full replies. ---BeginMessage--- Rodney Green wrote: Marek Kilimajer wrote:

RE: [PHP] tar and ownership

2003-11-21 Thread Nigel Jones
PROTECTED] Subject: RE: [PHP] tar and ownership Rodney Green wrote: Marek Kilimajer wrote: Rodney Green wrote: Greetings! I'm writing a script that downloads a tarball from an FTP server and unpacks it into a directory. Here's the line of code that does this. exec(tar -C

RE: [PHP] FW: [ERR] RE: [PHP] tar and ownership

2003-11-21 Thread Nigel Jones
I second that it's annoying CC'ed to List Owner :P -Original Message- From: Wouter van Vliet [mailto:[EMAIL PROTECTED] Sent: Saturday, November 22, 2003 7:57 AM To: 'PHP General list' Subject: [PHP] FW: [ERR] RE: [PHP] tar and ownership [EMAIL PROTECTED] wrote: Transmit

RE: [PHP] tar and ownership

2003-11-21 Thread Wouter van Vliet
Nigel Jones wrote: I think if you are using the Unix Tar Version you can do tar -C /scripts/ -zxv -f ./scripts/mailfiles.tar.gz --owner=REPLACEME --group=REPLACEME I sure hope this is NOT possible, since it would be a major security problem. Think for example in terms of the php safe_mode.

RE: [PHP] FW: [ERR] RE: [PHP] tar and ownership

2003-11-21 Thread Chris W. Parker
Nigel Jones mailto:[EMAIL PROTECTED] on Friday, November 21, 2003 11:44 AM said: I second that it's annoying CC'ed to List Owner :P Your best bet is to refuse @hanmir.com altogether. This has been happening for a long time (with different addresses all @hanmir.com) and I imagine it will

RE: [PHP] tar and ownership

2003-11-21 Thread Nigel Jones
To: 'Nigel Jones'; 'Rodney Green' Cc: [EMAIL PROTECTED] Subject: RE: [PHP] tar and ownership Nigel Jones wrote: I think if you are using the Unix Tar Version you can do tar -C /scripts/ -zxv -f ./scripts/mailfiles.tar.gz --owner=REPLACEME --group=REPLACEME I sure hope this is NOT possible

Re: [PHP] tar and ownership

2003-11-21 Thread Marek Kilimajer
Nigel Jones wrote: it's part of Tar (see: tar --help) I'm sure there are restrictions to Non-Root users (I don't think many *nix developers are stupid enough to let open that sort of bug The restrictions are always the same, the kernel will not allow non-root user to change ownership and will

Re: [PHP] tar and ownership

2003-11-21 Thread Marek Kilimajer
Nigel Jones wrote: it's part of Tar (see: tar --help) I'm sure there are restrictions to Non-Root users (I don't think many *nix developers are stupid enough to let open that sort of bug The restrictions are always the same, the kernel will not allow non-root user to change ownership and will

Re: [PHP] FW: [ERR] RE: [PHP] tar and ownership

2003-11-21 Thread John Nichel
Chris W. Parker wrote: Your best bet is to refuse @hanmir.com altogether. This has been happening for a long time (with different addresses all @hanmir.com) and I imagine it will continue to happen. Chris. If I keep adding domains to my '/dev/null' list, I'm going to fill up null. ;) --