<?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: setting group id from windows client in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-group-id-from-windows-client/m-p/2968889#M119941</link>
    <description>Hi Dave,&lt;BR /&gt;&lt;BR /&gt;To add to Roland's reply; there is some useful information in the O'Reilly Using Samba book (available in paper format or supplied in html format with CIFS/9000.)  The section on File permissions and attributes on MS-DOS and Unix in Chapter 5 discusses the various parameters for mapping MS permissions to UX permissions and masking.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;There's also a parameter called security mask (this may be specific to newer versions as it isn't in the book, see man smb.conf instead) that is used to limit permission changes from the MS side.&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;&lt;BR /&gt;Darren</description>
    <pubDate>Fri, 09 May 2003 14:06:19 GMT</pubDate>
    <dc:creator>Darren Prior</dc:creator>
    <dc:date>2003-05-09T14:06:19Z</dc:date>
    <item>
      <title>setting group id from windows client</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-group-id-from-windows-client/m-p/2968885#M119937</link>
      <description>I have a unix script that I run to create Project directory structures on a unix server (HP-UX 11i) and running Samba for Windows clients to map to the directories.&lt;BR /&gt;&lt;BR /&gt;Part of the script runs like this:-&lt;BR /&gt;(I hope the formatting comes out OK)&lt;BR /&gt;&lt;BR /&gt;mkdir $pname&lt;BR /&gt;&lt;BR /&gt;cd /eng/mech/projects/$pname&lt;BR /&gt;&lt;BR /&gt;chgrp engadmin /eng/mech/projects/$pname&lt;BR /&gt;&lt;BR /&gt;###########################&lt;BR /&gt;# make the subdirectories #&lt;BR /&gt;###########################&lt;BR /&gt;mkdir group1 group2 group3 documents images customer_data&lt;BR /&gt;&lt;BR /&gt;cd group1&lt;BR /&gt;&lt;BR /&gt;mkdir drawings&lt;BR /&gt;# change the group to group1 for this dir and sub dirs&lt;BR /&gt;chgrp -R group1 /eng/mech/projects/$pname/group1&lt;BR /&gt;&lt;BR /&gt;# Set group to group1 for all files created in this dir&lt;BR /&gt;chmod -R g+s /eng/mech/projects/$pname/group1&lt;BR /&gt;&lt;BR /&gt;# same for other sections/groups&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;cd /eng/mech/projects&lt;BR /&gt;&lt;BR /&gt;#############################&lt;BR /&gt;# set up shared directories #&lt;BR /&gt;#############################&lt;BR /&gt;chgrp -R shared /eng/mech/projects/$pname/documents &lt;BR /&gt;chgrp -R shared /eng/mech/projects/$pname/images &lt;BR /&gt;chgrp -R shared /eng/mech/projects/$pname/customer_data &lt;BR /&gt;chmod -R 775 /eng/mech/projects/$pname/documents &lt;BR /&gt;chmod -R 775 /eng/mech/projects/$pname/images &lt;BR /&gt;chmod -R 775 /eng/mech/projects/$pname/customer_data &lt;BR /&gt;&lt;BR /&gt;# now add the set-group-ID flag to make sure all files &lt;BR /&gt;# created have the shared group&lt;BR /&gt;chmod -R g+s /eng/mech/projects/$pname/documents &lt;BR /&gt;chmod -R g+s /eng/mech/projects/$pname/images &lt;BR /&gt;chmod -R g+s /eng/mech/projects/$pname/customer_data &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Now this works fine when I create these directory structures from Unix as a User with a /home and a password,&lt;BR /&gt;&lt;BR /&gt;But, I want selected users (in engadmin group) to be able to create these structures from a Windows (2K) client. These users cannot log on to the Unix server, but are /homeless nopassword users on the Unix side.&lt;BR /&gt;&lt;BR /&gt;I can create a Master Project Directory structure and have this copied and renamed, but, and here lies my problem, I cannot get the set-group-id part to work from windows.&lt;BR /&gt;&lt;BR /&gt;Does anyone know how to this from a windows client? ie. Anything created in the directories (especially the shared directories) need to have the group changed to that of the directory.&lt;BR /&gt;&lt;BR /&gt;Any ideas?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Dave&lt;BR /&gt;</description>
      <pubDate>Thu, 08 May 2003 22:19:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-group-id-from-windows-client/m-p/2968885#M119937</guid>
      <dc:creator>David Lane_3</dc:creator>
      <dc:date>2003-05-08T22:19:44Z</dc:date>
    </item>
    <item>
      <title>Re: setting group id from windows client</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-group-id-from-windows-client/m-p/2968886#M119938</link>
      <description>A few approaches.&lt;BR /&gt;&lt;BR /&gt;1.) You could have root crank a cron job, looking for new files/structure, run it every 15 minutes.  It would be effective, but I know its not what you want.&lt;BR /&gt;&lt;BR /&gt;2.) The better solution is to set up some level of integration between the Windows environment and the Unix environment.  I would suggest samba changes and a minor change in your Windows infractructure to make it work.&lt;BR /&gt;&lt;BR /&gt;Essentially, option two would enable samba to validate users based on information from a Windows PDC(Primary Domain Controller).&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://search.hp.com/redirect.html?url=http%3A//forums.itrc.hp.com/cm/QuestionAnswer/1,,0x601736e69499d611abdb0090277a778c,00.html&amp;amp;qt=CIFS+%2BWindows+%2BPDC+%2Bintegration&amp;amp;hit=1" target="_blank"&gt;http://search.hp.com/redirect.html?url=http%3A//forums.itrc.hp.com/cm/QuestionAnswer/1,,0x601736e69499d611abdb0090277a778c,00.html&amp;amp;qt=CIFS+%2BWindows+%2BPDC+%2Bintegration&amp;amp;hit=1&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Active directory(just in case)&lt;A href="http://search.hp.com/redirect.html?url=http%3A//forums.itrc.hp.com/cm/QuestionAnswer/1,,0x8cf656bd90a9d611abdb0090277a778c,00.html&amp;amp;qt=CIFS+%2BWindows+%2BPDC+%2Bintegration&amp;amp;hit=2" target="_blank"&gt;http://search.hp.com/redirect.html?url=http%3A//forums.itrc.hp.com/cm/QuestionAnswer/1,,0x8cf656bd90a9d611abdb0090277a778c,00.html&amp;amp;qt=CIFS+%2BWindows+%2BPDC+%2Bintegration&amp;amp;hit=2&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;LDAP(This might be useful in this integration.)&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://search.hp.com/redirect.html?url=http%3A//forums.itrc.hp.com/cm/QuestionAnswer/1,,0xd77a19434a69d711abdc0090277a778c,00.html&amp;amp;qt=CIFS+%2BWindows+%2BPDC+%2Bintegration&amp;amp;hit=3" target="_blank"&gt;http://search.hp.com/redirect.html?url=http%3A//forums.itrc.hp.com/cm/QuestionAnswer/1,,0xd77a19434a69d711abdc0090277a778c,00.html&amp;amp;qt=CIFS+%2BWindows+%2BPDC+%2Bintegration&amp;amp;hit=3&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Good Luck,&lt;BR /&gt;&lt;BR /&gt;SEP&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;  &lt;BR /&gt;&lt;BR /&gt;Here are some links that contain solutions to the issue:&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 08 May 2003 23:15:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-group-id-from-windows-client/m-p/2968886#M119938</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2003-05-08T23:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: setting group id from windows client</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-group-id-from-windows-client/m-p/2968887#M119939</link>
      <description>Thanks Steven,&lt;BR /&gt;after reading all the info on the links I realise that the solution to my problem lies with a better understanding of the Windows system.&lt;BR /&gt;We haven't got Active Directory set up properly yet so I need to approach this differently.&lt;BR /&gt;I need to ignore the fact that all our files are on a Unix server and treat them like they are in a Windows storage somewhere. I nee to write a batch file that will create the directory structure, including all the permission settings and the inheritances needed to mirror what is happening on the Unix side now.&lt;BR /&gt;Another aspect of all this is we also need to change permissions as certain files progress through the various stages of development ie. from being worked on to being issued as an authorised version of a configuration item (drawing or CAD model).&lt;BR /&gt;I am looking at using CACLS.exe to change the permissions but I still don't know how to set the inheritance in a batch file.&lt;BR /&gt;The batch file/s would nee to be executed by selected users with group permissions (not me as root).&lt;BR /&gt;&lt;BR /&gt;Any clues? (sorry if this getting to be more a windows issue than HP-UX)&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Dave</description>
      <pubDate>Fri, 09 May 2003 04:25:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-group-id-from-windows-client/m-p/2968887#M119939</guid>
      <dc:creator>David Lane_3</dc:creator>
      <dc:date>2003-05-09T04:25:43Z</dc:date>
    </item>
    <item>
      <title>Re: setting group id from windows client</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-group-id-from-windows-client/m-p/2968888#M119940</link>
      <description>Add to your share definition in smb.conf for your group somthing like this:&lt;BR /&gt;&lt;BR /&gt;[test]&lt;BR /&gt;        comment = HP-UX home directory for group esgsx9&lt;BR /&gt;        path = /h/e5/users/home/WindowsNT/test&lt;BR /&gt;        browseable = yes&lt;BR /&gt;        read only = no&lt;BR /&gt;        writeable = yes&lt;BR /&gt;        create mask = 0770&lt;BR /&gt;        directory mode = 2770&lt;BR /&gt;        valid users = @your_group&lt;BR /&gt;        write list = @your_group&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;the @ means that only this group   is permitted to access this share and write on it. Have an attention on the "directory mode" parameter in the share definition.&lt;BR /&gt;&lt;BR /&gt;Restart your samba !!&lt;BR /&gt;&lt;BR /&gt;Hope it helps&lt;BR /&gt;Do some test with different values.&lt;BR /&gt;&lt;BR /&gt;Roland</description>
      <pubDate>Fri, 09 May 2003 07:40:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-group-id-from-windows-client/m-p/2968888#M119940</guid>
      <dc:creator>RolandH</dc:creator>
      <dc:date>2003-05-09T07:40:43Z</dc:date>
    </item>
    <item>
      <title>Re: setting group id from windows client</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-group-id-from-windows-client/m-p/2968889#M119941</link>
      <description>Hi Dave,&lt;BR /&gt;&lt;BR /&gt;To add to Roland's reply; there is some useful information in the O'Reilly Using Samba book (available in paper format or supplied in html format with CIFS/9000.)  The section on File permissions and attributes on MS-DOS and Unix in Chapter 5 discusses the various parameters for mapping MS permissions to UX permissions and masking.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;There's also a parameter called security mask (this may be specific to newer versions as it isn't in the book, see man smb.conf instead) that is used to limit permission changes from the MS side.&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;&lt;BR /&gt;Darren</description>
      <pubDate>Fri, 09 May 2003 14:06:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-group-id-from-windows-client/m-p/2968889#M119941</guid>
      <dc:creator>Darren Prior</dc:creator>
      <dc:date>2003-05-09T14:06:19Z</dc:date>
    </item>
  </channel>
</rss>

