There's more than one way to do things | |
PerlMonks |
chmod failsby Umdurman (Acolyte) |
on Aug 14, 2020 at 20:33 UTC ( [id://11120745]=perlquestion: print w/replies, xml ) | Need Help?? |
Umdurman has asked for the wisdom of the Perl Monks concerning the following question:
Dear friends, I have a nasty problem. I am running a webserver on OSX. The images for the webserver are produced on a Windows machine. The Windows machine has a network connection with the OSX Server. Once the images are ready we drag and drop them from the PC into the image directory on the Mac. If I look in the info of the transferred files I see the owner is the same as the server but everyone is "no access". The image files fail to render in the webserver. I figured to make a nice script that chmods the transferred files and copy them in the right directory. Chmodding however does not work at all.
I used to do this file preparing from one Mac to the other, the Server without this problem. Anyone with bright idears?
Thanks in advance!
No special code, just : chmod 755, $file_name or die "Can't chmod $old because: $!\n";
Please see this link to illustrate the problem: https://apple.stackexchange.com/questions/316205/no-write-permissions-after-copy-files-from-windows
Ton
Back to
Seekers of Perl Wisdom
|
|