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

In reply to chmod fails by Umdurman

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.