-
Notifications
You must be signed in to change notification settings - Fork 111
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
FileExplorer: Allow user to chmod files. #294
Comments
That second part of this is now it's own issue at: OSC/ood-fileexplorer#12 |
I have been added to a new project on the cloudcmd org to come up with a solution for this. |
Further research reveals that node.js uses 0777 for new folders and 0666 for new files. I've confirmed that this is the current behavior of cloudcmd. Both in folder creation and file uploads. (A file with permissions of 0600 was uploaded and the node process remapped it to 0666.) Node.js provides a process.umask(mask) method that will trim down these default permissions. Further experimentation will be required to see if I can run a global mask on the process or if I will need to invoke the mask at each file/folder creation event. This link for my reference: http://x-team.com/2015/02/file-system-permissions-umask-node-js/ |
This appears to be a result of Passenger (or nginx) wiping the user environment. Tests of Ruby code in the new passenger infrastructure reveal similar results.
Jeremy's tests of file and folder creation in the console did respect the system umask settings, so this issue may be able to be resolved by resetting umask in passenger to |
Loading an app after navigating to Loading an app after navigating to The difference appears to be whether passenger is running as a separate process from nginx (after |
Or both the "child process" and the "umask" issues could both be caused some underlying mechanism that occurs when you run |
This is still very much relevant and indeed related to #2609. |
Currently cloudcmd displays file permissions, but does not allow you to change them.
I've submitted an issue at coderaiser/cloudcmd#63
Additionally, node.js uses default file permissions of 0666 for uploads. This is unacceptable and will need to be changed to a default of at least 0644.
┆Issue is synchronized with this Asana task by Unito
The text was updated successfully, but these errors were encountered: