<?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: Default permissions in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/default-permissions/m-p/2526327#M24402</link>
    <description>&lt;BR /&gt;All the default permissions for the key system directories and files are in;&lt;BR /&gt;&lt;BR /&gt;/var/adm/sw/products/OS-Core/UX-CORE/INFO&lt;BR /&gt;&lt;BR /&gt;Search this file (INFO) for path and mode commands;&lt;BR /&gt;&lt;BR /&gt;grep -e path -e mode INFO&lt;BR /&gt;&lt;BR /&gt;and it will list paths (files or dirs) and their permissions after each one. If several paths are together before a mode entry then all the files/dirs have the same permissions as the following mode entry. You should be able to write a script to read all this in and apply it.&lt;BR /&gt;</description>
    <pubDate>Wed, 09 May 2001 11:28:06 GMT</pubDate>
    <dc:creator>Stefan Farrelly</dc:creator>
    <dc:date>2001-05-09T11:28:06Z</dc:date>
    <item>
      <title>Default permissions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/default-permissions/m-p/2526325#M24400</link>
      <description>Hi have inherited a system that was not very well taken care of. It is running HPUX 10.20 If something seemed suspect, the first thing tried was chmod 777 on the whole directory, etc!  I would like to start by getting the permissions back to normal.  Is there somewhere I can get a list of what the default permissions of all the key system directories, e.g. /etc /dev, etc. should be.  &lt;BR /&gt;Thanks.&lt;BR /&gt;Dermot</description>
      <pubDate>Wed, 09 May 2001 10:48:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/default-permissions/m-p/2526325#M24400</guid>
      <dc:creator>Dermot Beirne</dc:creator>
      <dc:date>2001-05-09T10:48:03Z</dc:date>
    </item>
    <item>
      <title>Re: Default permissions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/default-permissions/m-p/2526326#M24401</link>
      <description>Hi Dermont,&lt;BR /&gt;&lt;BR /&gt;well I guess at first I think you need to have a reference system, to look up what you want to set.&lt;BR /&gt;&lt;BR /&gt;I would start there with&lt;BR /&gt;ls -l | cut -c2- | awk '{ print "chmod " $1 " " $9 }' &amp;gt;file_to_be_edited.sh&lt;BR /&gt;&lt;BR /&gt;In this file_to_be_edited.sh globaly exchange&lt;BR /&gt;--x -&amp;gt; 1&lt;BR /&gt;-w- -&amp;gt; 2&lt;BR /&gt;-wx -&amp;gt; 3&lt;BR /&gt;r-- -&amp;gt; 4&lt;BR /&gt;r-x -&amp;gt; 5&lt;BR /&gt;rw- -&amp;gt; 6&lt;BR /&gt;rwx -&amp;gt; 7&lt;BR /&gt;&lt;BR /&gt;and so on ...&lt;BR /&gt;&lt;BR /&gt;Check (!) and execute it, and I guess 85% is done.&lt;BR /&gt;Do corresponding if user and group has been changed in addition.&lt;BR /&gt;&lt;BR /&gt;Base your listing on&lt;BR /&gt;ls -l `find /etc -print`&lt;BR /&gt;if you need to recurse the subdirs (this will take time).&lt;BR /&gt;&lt;BR /&gt;Compare the above output of both systems to find diffrences.&lt;BR /&gt;&lt;BR /&gt;Hope this helps&lt;BR /&gt;Volker</description>
      <pubDate>Wed, 09 May 2001 11:11:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/default-permissions/m-p/2526326#M24401</guid>
      <dc:creator>Volker Borowski</dc:creator>
      <dc:date>2001-05-09T11:11:41Z</dc:date>
    </item>
    <item>
      <title>Re: Default permissions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/default-permissions/m-p/2526327#M24402</link>
      <description>&lt;BR /&gt;All the default permissions for the key system directories and files are in;&lt;BR /&gt;&lt;BR /&gt;/var/adm/sw/products/OS-Core/UX-CORE/INFO&lt;BR /&gt;&lt;BR /&gt;Search this file (INFO) for path and mode commands;&lt;BR /&gt;&lt;BR /&gt;grep -e path -e mode INFO&lt;BR /&gt;&lt;BR /&gt;and it will list paths (files or dirs) and their permissions after each one. If several paths are together before a mode entry then all the files/dirs have the same permissions as the following mode entry. You should be able to write a script to read all this in and apply it.&lt;BR /&gt;</description>
      <pubDate>Wed, 09 May 2001 11:28:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/default-permissions/m-p/2526327#M24402</guid>
      <dc:creator>Stefan Farrelly</dc:creator>
      <dc:date>2001-05-09T11:28:06Z</dc:date>
    </item>
    <item>
      <title>Re: Default permissions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/default-permissions/m-p/2526328#M24403</link>
      <description>Hi Dermot:&lt;BR /&gt;&lt;BR /&gt;Andreas Voss wrote an elegant awk script to rectify this very problem.  See this thread for his script:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0xa7ef6c96588ad4118fef0090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0xa7ef6c96588ad4118fef0090279cd0f9,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 09 May 2001 11:55:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/default-permissions/m-p/2526328#M24403</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2001-05-09T11:55:02Z</dc:date>
    </item>
  </channel>
</rss>

