<?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: chmod for SGID in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/chmod-for-sgid/m-p/2761832#M892738</link>
    <description>#find . -type f -exec chmod 0755{}\;&lt;BR /&gt;&lt;BR /&gt;else&lt;BR /&gt;#find . -type f -perm -2000 -exec chmod 0755 {] \;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Make sure that you are in the proper directory.&lt;BR /&gt;&lt;BR /&gt;find . will show only the current directory.&lt;BR /&gt;find ./ will traverse directories beneath.&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
    <pubDate>Thu, 11 Jul 2002 12:41:30 GMT</pubDate>
    <dc:creator>T G Manikandan</dc:creator>
    <dc:date>2002-07-11T12:41:30Z</dc:date>
    <item>
      <title>chmod for SGID</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/chmod-for-sgid/m-p/2761824#M892730</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I have a filesystem which traverses deep down the hierarchy i.e as follows:&lt;BR /&gt;/cpu/processor/doc/proj1/tmp/layout/design&lt;BR /&gt;&lt;BR /&gt;I would like to remove the SGID for all files only, and not directories in this filesystem.&lt;BR /&gt;&lt;BR /&gt;I would like the files to have the following permission settings:&lt;BR /&gt;rwxr-xr-x &lt;BR /&gt;and not rwxr-sr-x&lt;BR /&gt;&lt;BR /&gt;I did the following:&lt;BR /&gt;&lt;BR /&gt;find . -type -f -exec chmod g-s {} \;&lt;BR /&gt;&lt;BR /&gt;However, the files still have the SGID bit set i.e :&lt;BR /&gt;  rwxr-sr-x &lt;BR /&gt;and some files which were having:&lt;BR /&gt;  rwxr-xr-x &lt;BR /&gt;have now been changed to rwxr--r--  &lt;BR /&gt;&lt;BR /&gt;Could somone help me out?&lt;BR /&gt;Thanks.</description>
      <pubDate>Thu, 11 Jul 2002 11:08:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/chmod-for-sgid/m-p/2761824#M892730</guid>
      <dc:creator>Chern Jian Leaw</dc:creator>
      <dc:date>2002-07-11T11:08:49Z</dc:date>
    </item>
    <item>
      <title>Re: chmod for SGID</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/chmod-for-sgid/m-p/2761825#M892731</link>
      <description>where you got chmod g-s try chmod 755</description>
      <pubDate>Thu, 11 Jul 2002 11:20:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/chmod-for-sgid/m-p/2761825#M892731</guid>
      <dc:creator>Devbinder Singh Marway</dc:creator>
      <dc:date>2002-07-11T11:20:22Z</dc:date>
    </item>
    <item>
      <title>Re: chmod for SGID</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/chmod-for-sgid/m-p/2761826#M892732</link>
      <description>In the command above you placed a -f after type.  It is not supposed to have a - in front of the f.  Sorry if it was a typo.&lt;BR /&gt;&lt;BR /&gt;Also you may want to limit the search to only SGID files.  This will limit any messups.  Use the perm option with the 2000 permission.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.</description>
      <pubDate>Thu, 11 Jul 2002 11:23:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/chmod-for-sgid/m-p/2761826#M892732</guid>
      <dc:creator>Daimian Woznick</dc:creator>
      <dc:date>2002-07-11T11:23:56Z</dc:date>
    </item>
    <item>
      <title>Re: chmod for SGID</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/chmod-for-sgid/m-p/2761827#M892733</link>
      <description>Daimian,&lt;BR /&gt;&lt;BR /&gt;Could you tell me how I should use the use the perm opt with 2000 permission? &lt;BR /&gt;&lt;BR /&gt;Could you show me how I could limit the search to just the SGID files? &lt;BR /&gt;&lt;BR /&gt;I'm really in a hurry to get this task done.&lt;BR /&gt;&lt;BR /&gt;Appreciate it if you could help me out.&lt;BR /&gt;</description>
      <pubDate>Thu, 11 Jul 2002 11:27:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/chmod-for-sgid/m-p/2761827#M892733</guid>
      <dc:creator>Chern Jian Leaw</dc:creator>
      <dc:date>2002-07-11T11:27:50Z</dc:date>
    </item>
    <item>
      <title>Re: chmod for SGID</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/chmod-for-sgid/m-p/2761828#M892734</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;to find SGID files do:&lt;BR /&gt;&lt;BR /&gt;find . -type f -perm -2000&lt;BR /&gt;&lt;BR /&gt;Regards</description>
      <pubDate>Thu, 11 Jul 2002 11:41:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/chmod-for-sgid/m-p/2761828#M892734</guid>
      <dc:creator>Andreas Voss</dc:creator>
      <dc:date>2002-07-11T11:41:06Z</dc:date>
    </item>
    <item>
      <title>Re: chmod for SGID</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/chmod-for-sgid/m-p/2761829#M892735</link>
      <description>&lt;BR /&gt;for the next time, type :&lt;BR /&gt;&lt;BR /&gt;find . -type f -perm 2755 -exec chmod g-s {} \;&lt;BR /&gt;&lt;BR /&gt;2755 = rwxr-sr-x&lt;BR /&gt;&lt;BR /&gt;for fix your problem type :&lt;BR /&gt;&lt;BR /&gt;find . -type f -perm 745 -exec chmod g+x {} \;&lt;BR /&gt;find . -type f -perm 744 -exec chmod g+x {} \;&lt;BR /&gt;&lt;BR /&gt;745 = rwxr--r-x&lt;BR /&gt;744 = rwxr--r--&lt;BR /&gt;&lt;BR /&gt;for a file with rigth rwxr-xr-x, the command&lt;BR /&gt;chmod g-s give the result rwxr--r-x&lt;BR /&gt;&lt;BR /&gt;for test before execute chmod, type :&lt;BR /&gt;&lt;BR /&gt;find . -type f -perm 745 -exec ls -l {} \;&lt;BR /&gt;&lt;BR /&gt;Good luck&lt;BR /&gt;&lt;BR /&gt;Jean-Yves&lt;BR /&gt;</description>
      <pubDate>Thu, 11 Jul 2002 11:42:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/chmod-for-sgid/m-p/2761829#M892735</guid>
      <dc:creator>jean-yves poch</dc:creator>
      <dc:date>2002-07-11T11:42:45Z</dc:date>
    </item>
    <item>
      <title>Re: chmod for SGID</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/chmod-for-sgid/m-p/2761830#M892736</link>
      <description>Andreas,&lt;BR /&gt;&lt;BR /&gt;I did :&lt;BR /&gt;find . -type f -perm -2000 -exec chmod 755 {} \;&lt;BR /&gt;&lt;BR /&gt;But it did not work. I need to have the permission mode set to 755 i.e rwxr-xr-x&lt;BR /&gt;&lt;BR /&gt;Could you help me out?&lt;BR /&gt;Thanks.</description>
      <pubDate>Thu, 11 Jul 2002 11:48:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/chmod-for-sgid/m-p/2761830#M892736</guid>
      <dc:creator>Chern Jian Leaw</dc:creator>
      <dc:date>2002-07-11T11:48:09Z</dc:date>
    </item>
    <item>
      <title>Re: chmod for SGID</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/chmod-for-sgid/m-p/2761831#M892737</link>
      <description>The command:&lt;BR /&gt;&lt;BR /&gt;find . -type f -perm -2000 -exec chmod 755 {} \; &lt;BR /&gt;&lt;BR /&gt;will take all the files with the SGID permission set and change the permissions to 755.  You may want to use the find with the permission setting 0744 and chmod to 755.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.</description>
      <pubDate>Thu, 11 Jul 2002 12:32:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/chmod-for-sgid/m-p/2761831#M892737</guid>
      <dc:creator>Daimian Woznick</dc:creator>
      <dc:date>2002-07-11T12:32:48Z</dc:date>
    </item>
    <item>
      <title>Re: chmod for SGID</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/chmod-for-sgid/m-p/2761832#M892738</link>
      <description>#find . -type f -exec chmod 0755{}\;&lt;BR /&gt;&lt;BR /&gt;else&lt;BR /&gt;#find . -type f -perm -2000 -exec chmod 0755 {] \;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Make sure that you are in the proper directory.&lt;BR /&gt;&lt;BR /&gt;find . will show only the current directory.&lt;BR /&gt;find ./ will traverse directories beneath.&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Thu, 11 Jul 2002 12:41:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/chmod-for-sgid/m-p/2761832#M892738</guid>
      <dc:creator>T G Manikandan</dc:creator>
      <dc:date>2002-07-11T12:41:30Z</dc:date>
    </item>
    <item>
      <title>Re: chmod for SGID</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/chmod-for-sgid/m-p/2761833#M892739</link>
      <description>sorry&lt;BR /&gt;&lt;BR /&gt;find .&lt;BR /&gt;also changes the directories beneath.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 11 Jul 2002 12:43:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/chmod-for-sgid/m-p/2761833#M892739</guid>
      <dc:creator>T G Manikandan</dc:creator>
      <dc:date>2002-07-11T12:43:35Z</dc:date>
    </item>
    <item>
      <title>Re: chmod for SGID</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/chmod-for-sgid/m-p/2761834#M892740</link>
      <description>HI,&lt;BR /&gt;&lt;BR /&gt;I've tried all the options provided, however, SOME files in SOME directories still have the permissions set to :&lt;BR /&gt;  rwxr-Sr-x&lt;BR /&gt;&lt;BR /&gt;I really do not understand why aren't all files have the SGID removed.&lt;BR /&gt;&lt;BR /&gt;Unless I do it manually as &lt;BR /&gt;#chmod g-s filename&lt;BR /&gt;only then it works for some files.&lt;BR /&gt;&lt;BR /&gt;I really do not understand the problem in my script which is causing this problem for some files.  &lt;BR /&gt;&lt;BR /&gt;Could someone help me out?&lt;BR /&gt;Thanks.&lt;BR /&gt;</description>
      <pubDate>Fri, 12 Jul 2002 01:15:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/chmod-for-sgid/m-p/2761834#M892740</guid>
      <dc:creator>Chern Jian Leaw</dc:creator>
      <dc:date>2002-07-12T01:15:23Z</dc:date>
    </item>
  </channel>
</rss>

