Sorry about the non-perl question, but thanks for the advice. Actually, this came up as the result of running a perl script that creates files owned by apache, and then my wanting to edit those files under Samba, if that counts ....

Anyway, I tried almost everything here. I made a smbusers file which sets apache = my samba user and added the line:

username map = /usr/local/etc/smbusers

to the global parameters of smb.conf.

I set the umask for apache and the samba user to 002. I changed the setgidbit on the document root directory for apache where the script is creating the directories that my samba user can't modify. I wasn't sure how to make sure that Samba was a member of the apache group except to make sure that the windows user accessing the box via Samba is. It is.

Finally, in the smb.conf file, I added the parameters force user = apache and force group = apache, since the user and group owners of the files created by the script are apache and apache respectively.

As root, I did a killall -HUP init and I waited the requisite minute for samba to reinitialize from the conf file just to be sure.

I can read the files created by the script via my windows share, but I still can't save modifications to them.

I do appreciate any additional suggestions anyone may have, especially given that this is only loosely related (for me) to Perl.


In reply to Re: Re: How do I make two users have the same privileges? by Reaped: Answer: Vroom testing some more
in thread How do I make two users have the same privileges? by Reaped: Answer: Vroom testing some more

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.