I fear this is more a Windows question than a perl question, but maybe someone can still help me...

My app runs on Windows and creates files on a netdrive, which is actually a Samba share on a Unix system. To make working with Samba easy, the Windows user name and the Unix user name are identical; no password authentification is needed.

When I log into the Unix account to look at the files created in that way, they have permission 0600. If my app explicitly does a chmod 0666, the permissions as seen from the Unix side are still 0600 (but chmod returns "1", signalling that the permissions have been changed in the correct way). Not being very proficient on Windows, my wild guess is that the Perl on Windows doesn't know anything about Unix permissions.

Is there any chance that I can set the permissions on that file, or do I simply have to accept that this can't be done?

-- 
Ronald Fischer <ynnor@mm.st>

In reply to chmod in Windows on Samba Drive: Can this be done at all? by rovf

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.