firefox permissions on _files set to 755 although umask is 002
When a webpage is saved, it is saved as ~~._files The issue with this is probably specific to the Unix environment. The resulting ~~.html file is removable by anyone in the group (permissions xrwxrwx-r or 775). The resulting ~~._files directory cannot be removed by anyone in the group because it has permissions xrwx-rx-r or 755). umask of the owner is 002. It becomes a problem is someone in the group tries to move the saved webpage and it's associated files.
It's all acting as if the umask was a blend of 002 and 022.
Все ответы (5)
Please Refresh but do this 1st:
- https://support.mozilla.org/en-US/kb/export-firefox-bookmarks-to-backup-or-transfer
- https://support.mozilla.org/en-US/kb/back-and-restore-information-firefox-profiles
then
TEST....... If no issues then Extensions which need to be added back in 1 at a time and tested ..... Or it is your Profile : Make a new one and test ...:
If is your Profile :
- https://support.mozilla.org/en-US/kb/recovering-important-data-from-an-old-profile
- http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox
Note: Any customization will revert back to default, you will also need to reinstall Extensions.
Please let us know if this solved your issue or if need further assistance.
How might my bookmarks or profiles have any relevance to file permissions of the directory structure generated when firefox saves a complete webpage (File->Save page as)? Example, a save of this webpage as fireQuestion results in two entries: drwxr-xr-x 2 myid mygroup 4096 Dec 29 15:17 fireQuestion_files -rw-rw-r-- 1 myid mygroup 34934 Dec 29 15:17 fireQuestion.html
The contents of the directory fireQuestion_files is like: -rw-rw-r-- 1 myid mygroup 2949 Dec 29 15:17 0fb94b58617cabe.png -rw-rw-r-- 1 myid mygroup 177733 Dec 29 15:17 245873.js -rw-rw-r-- 1 myid mygroup 1559 Dec 29 15:17 bc6d00d7afd7.png -rw-rw-r-- 1 myid mygroup 107 Dec 29 15:17 a.html -rw-rw-r-- 1 myid mygroup 0 Dec 29 15:22 a.txt -rw-rw-r-- 1 myid mygroup 52655 Dec 29 15:17 common-min.css -rw-rw-r-- 1 myid mygroup 327385 Dec 29 15:17 common-min.js -rw-rw-r-- 1 myid mygroup 9378 Dec 29 15:17 djangojs.js -rw-rw-r-- 1 myid mygroup 22746 Dec 29 15:17 jqueryui-min.css -rw-rw-r-- 1 myid mygroup 161610 Dec 29 15:17 jqueryui-min.js -rw-rw-r-- 1 myid mygroup 2521 Dec 29 15:17 mozilla-logo.svg -rw-rw-r-- 1 myid mygroup 1515 Dec 29 15:17 print-min.css -rw-rw-r-- 1 myid mygroup 34680 Dec 29 15:17 questions-min.css -rw-rw-r-- 1 myid mygroup 67053 Dec 29 15:17 questions-min.js
The item giving trouble is the directory itself: drwxr-xr-x 2 myid mygroup 4096 Dec 29 15:17 fireQuestion_files write permission for the group is not present
You may want to file a bug related to this behavior. The one I found from, ahem, 12 years ago, was closed when it was obsoleted by a code reorganization:
Bug 325334 umask is hard coded to 755 for directories when do save as complete web page
Thanks for the research, I have opened bug 1427394.
the new bug has been marked a duplicate of 120679. Like bug 1427394, 120679 has been open a number of year.