<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: wrong protections on new files in Samba Share in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/wrong-protections-on-new-files-in-samba-share/m-p/2942088#M930147</link>
    <description>Darren - thanks! taking out the inherit did the trick.&lt;BR /&gt;&lt;BR /&gt;I had read the smb.conf man page -- but as you say it's tricky.</description>
    <pubDate>Wed, 02 Apr 2003 17:32:19 GMT</pubDate>
    <dc:creator>Peter Heinemann</dc:creator>
    <dc:date>2003-04-02T17:32:19Z</dc:date>
    <item>
      <title>wrong protections on new files in Samba Share</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/wrong-protections-on-new-files-in-samba-share/m-p/2942086#M930145</link>
      <description>Files being written into a samba share aren't being granted the desired permissions.&lt;BR /&gt;&lt;BR /&gt;The share config is:&lt;BR /&gt;&lt;BR /&gt;[ui]&lt;BR /&gt;   path = /opt/axiom/workspace&lt;BR /&gt;   public = yes&lt;BR /&gt;   guest ok = yes&lt;BR /&gt;   writeable = yes&lt;BR /&gt;   write list = pcguest&lt;BR /&gt;   create mask = 774&lt;BR /&gt;   force create mode = 774&lt;BR /&gt;   inherit permissions = yes&lt;BR /&gt;&lt;BR /&gt;Yet the files are created with the incorrect group settings.  The settings for Other were corrected after adding the "create mask" directive, but for some reason group still won't go right.&lt;BR /&gt;&lt;BR /&gt;Here's the parent directory permission (for the effect of Inherit Permissions = yes)&lt;BR /&gt;# ll -d /opt/axiom/workspace&lt;BR /&gt;drwxrwxrwx   3 axadmin    axiom         1024 Apr  2 10:26 /opt/axiom/workspace/&lt;BR /&gt;&lt;BR /&gt;# ll /opt/axiom/workspace&lt;BR /&gt;total 14&lt;BR /&gt;drwxrwxrwx   3 axadmin    axiom         1024 Apr  2 10:26 ./&lt;BR /&gt;drwxrwxr-x  14 axadmin    axiom         1024 Apr  2 10:37 ../&lt;BR /&gt;drwxrwxr-x  14 axadmin    axiom         1024 Apr  1 16:34 axiom_source/&lt;BR /&gt;-rwxrw-r--   1 pcguest    axiom            8 Apr  2 09:59 testfile.txt*&lt;BR /&gt;-rwxrw-r--   1 pcguest    axiom            8 Apr  2 10:03 testfile1.txt*&lt;BR /&gt;-rwxrw-rw-   1 pcguest    axiom            8 Apr  2 10:05 testfile2.txt*&lt;BR /&gt;-rwxrw-rw-   1 pcguest    axiom            8 Apr  2 10:26 testfile3.txt*&lt;BR /&gt;&lt;BR /&gt;Thanks for any help/information</description>
      <pubDate>Wed, 02 Apr 2003 15:51:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/wrong-protections-on-new-files-in-samba-share/m-p/2942086#M930145</guid>
      <dc:creator>Peter Heinemann</dc:creator>
      <dc:date>2003-04-02T15:51:46Z</dc:date>
    </item>
    <item>
      <title>Re: wrong protections on new files in Samba Share</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/wrong-protections-on-new-files-in-samba-share/m-p/2942087#M930146</link>
      <description>Hi Peter,&lt;BR /&gt;&lt;BR /&gt;File permissions are a confusing beast where Samba is concerned!&lt;BR /&gt;&lt;BR /&gt;You may have confused yourself (&amp;amp; Samba) a bit by your config.&lt;BR /&gt;&lt;BR /&gt;The inherit permissions parm will override the create mask and force create mode parms.  On top of that the HPUX execute bits are manipulated according to the various map archive, map system, map hidden parms - this allows various functionality from the Win/DOS side.&lt;BR /&gt;&lt;BR /&gt;If you want the file perms to be 774, then just set inherit permissions = no, the rest of your settings are fine.  I've just done a quick test on a CIFS/9000 A.01.09.02 server and saved some files from Notepad; their perms are 774 using your settings.&lt;BR /&gt;&lt;BR /&gt;It's worth remembering that the various map settings mentioned above mean that the various permission bits mean something different to the HPUX/DOS machines.  Running the command testparm will dump all your current parms from smb.conf, also displaying the default values that you haven't entered into smb.conf.&lt;BR /&gt;&lt;BR /&gt;There's some good reading on permission related parms in the O'Reilly Using Samba book - p140 onwards or within Chapter 5 if you're accessing the book via SWAT.  The various parms are also documented in the smb.conf man page, also available via SWAT.&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;&lt;BR /&gt;Darren.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 02 Apr 2003 16:38:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/wrong-protections-on-new-files-in-samba-share/m-p/2942087#M930146</guid>
      <dc:creator>Darren Prior</dc:creator>
      <dc:date>2003-04-02T16:38:46Z</dc:date>
    </item>
    <item>
      <title>Re: wrong protections on new files in Samba Share</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/wrong-protections-on-new-files-in-samba-share/m-p/2942088#M930147</link>
      <description>Darren - thanks! taking out the inherit did the trick.&lt;BR /&gt;&lt;BR /&gt;I had read the smb.conf man page -- but as you say it's tricky.</description>
      <pubDate>Wed, 02 Apr 2003 17:32:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/wrong-protections-on-new-files-in-samba-share/m-p/2942088#M930147</guid>
      <dc:creator>Peter Heinemann</dc:creator>
      <dc:date>2003-04-02T17:32:19Z</dc:date>
    </item>
  </channel>
</rss>

