Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default owner/group & permissions for file operations #1

Open
wbond opened this issue Apr 27, 2012 · 0 comments
Open

Default owner/group & permissions for file operations #1

wbond opened this issue Apr 27, 2012 · 0 comments

Comments

@wbond
Copy link
Member

wbond commented Apr 27, 2012

Ticket #202 by vena:

It'd be wonderful if we could have a set once and forget method to default owner/group and permissions for files created by fFile, fORMFile, etc. Outside of an suPHP environment, this can be quite necessary if you ever want to manipulate files created by the script by hand.

Comment by @wbond:

Due to the way that file permission are set up, the owner of a file can only be changed by the superuser. The group can only be changed to a group that the user, that the web server is running as, is part of. Because of those limitation it doesn't look like it will be possible to set that up.

In terms of the file permissions, I think I can come up with something. Currently fUpload chmods all uploaded files to 0644, but it would be good for fFile::create() and fDirectory::create() to all obey one set of permissions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant