Re: [PHP] Uploading files / processing with a PHP script
- From: ceo@xxxxxxxxx ("Richard Lynch")
- Date: Mon, 9 Oct 2006 12:51:36 -0500 (CDT)
On Sun, October 8, 2006 2:49 pm, Larry Garfield wrote:
The owner of a file can change ownership of the file, too, I believe,
essentially "willing" it to someone else.
I sure hope not...
Cuz then I could chmod 4777 a file to make it execute as owner, then I
could "will" it to 'root' owner, and then I am root.
[4### is how you make it "run as user" right?...]
Actually, at that point, as it's chmod 777, *every* user on the
machine is 'root' as they can cram whatever they want into that file.
Total chaos ensues.
That would be bad. :-) :-) :-)
A better solution is to set the file's group permissions to 7, then
chown the
file to apache:mygroup, then put both apache and your ftp user into
the
mygroup group.
This is a Good Solution, however, and probably most closely resembles
the real-world need: www and rpiggot need to be in a common group of
users with access to this file.
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?
.
- References:
- Uploading files / processing with a PHP script
- From: "Ron Piggott (PHP)"
- Re: [PHP] Uploading files / processing with a PHP script
- From: Stut
- Re: [PHP] Uploading files / processing with a PHP script
- From: Larry Garfield
- Uploading files / processing with a PHP script
- Prev by Date: Re: [PHP] Uploading files / processing with a PHP script
- Next by Date: Re: [PHP] PHP solution for virtual folder management
- Previous by thread: Re: [PHP] Uploading files / processing with a PHP script
- Next by thread: Re: [PHP] Uploading files / processing with a PHP script
- Index(es):
Relevant Pages
|
|