chmod and file permissions
Edward Potter
ejp at well.com
Mon Oct 14 17:07:28 EDT 2002
yeah, i saw that email went blank, weird... any way here's my input...
thanks
>
> hi,
>
> ok, is this an upload using php with a form? Then files are owned by
> user nobody, which should have viewable permission, HOWEVER you should
> also check out the UMASK command in Unix. If this an FTP upload, then
> that's another story. Permissions can be kinda of tricky. You may to
> assume the ID of the user at the command line, create a file, and do a
> basic save, see where it ends up permissions wise. Once you get your
> UMASK set, I think you'll be ok. No matter what u do permissions
> wise, the UMASK is going to be the default maker of permissions.
>
> -- ed
>
> The default file permissions (umask):
> Each user has a default set of permissions which apply to all files
> created by that user, unless the software explicitly sets something
> else. This is often called the 'umask', after the command used to
> change it. It is either inherited from the login process, or set in the
> .cshrc or .login file which configures an individual account, or it can
> be run manually.
> On Monday, October 14, 2002, at 04:25 AM, Phil Powell wrote:
>
>> If your directory is set to permissions 0755, and you upload your
>> files to be at permissions 0744, will that change the permissions of
>> the directory? Whenever I upload a file, even though I have an is_dir
>> check in place for the directory, the file is uploaded with
>> permissions of 0755 and then the file becomes 0744 and then the file
>> becomes 0744, and then I can't view the file!
>>
>> I am not grasping this whole aspect of file permissions apparently
>> enough to be able to handle file uploading correctly within the
>> framework of PHP. Anyone out there know what I must do to ensure the
>> directory remains at 0755 and the files at 0744 or 0755 and ensure
>> they can be viewed by all?
>>
>> Thanx
>> Phil
>>
>>
>>
>> --- Unsubscribe at http://nyphp.org/list ---
>>
>>
More information about the talk
mailing list