<?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: Directory permissions in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/directory-permissions/m-p/3430793#M205696</link>
    <description>chown -R seems to be a reasonable way to go, it does subdirectories.&lt;BR /&gt;&lt;BR /&gt;You could compile a list of subdirectories.&lt;BR /&gt;&lt;BR /&gt;dir *.  will get a list of direcectories in a the current directory.&lt;BR /&gt;&lt;BR /&gt;ls -alr | grep dr&lt;BR /&gt;&lt;BR /&gt;Will get a list of directories including what you want to change.&lt;BR /&gt;&lt;BR /&gt;You can process the list with awk.&lt;BR /&gt;&lt;BR /&gt;ls -alr | grep dr &amp;gt; /tmp/filelist&lt;BR /&gt;&lt;BR /&gt;cat /tmp/filelist | `{print $8}` &amp;gt; /tmp/file2&lt;BR /&gt;&lt;BR /&gt;while read -r filename&lt;BR /&gt;do&lt;BR /&gt;    chmod ### $filename&lt;BR /&gt;done &amp;lt; /tmp/file2&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;replace ### with the permissions you want.&lt;BR /&gt;&lt;BR /&gt;Saves time.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
    <pubDate>Fri, 26 Nov 2004 14:15:55 GMT</pubDate>
    <dc:creator>Steven E. Protter</dc:creator>
    <dc:date>2004-11-26T14:15:55Z</dc:date>
    <item>
      <title>Directory permissions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/directory-permissions/m-p/3430787#M205690</link>
      <description>Hello,&lt;BR /&gt;I am tryng to grant rwx permissions specifically to one user.&lt;BR /&gt;I found ACL could do the work, but when doing so (setcl) it gives the permissions to the directory but only on new files and directories. The prmissions for the older ones stay the same.&lt;BR /&gt;The idea is that this user can rwx on all subdirectories and files (old and new ones)&lt;BR /&gt;&lt;BR /&gt;What should I do?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance&lt;BR /&gt;&lt;BR /&gt;Nilton Medina Ygreda&lt;BR /&gt;IT Systems&lt;BR /&gt;SENATI&lt;BR /&gt;Lima, Per</description>
      <pubDate>Thu, 25 Nov 2004 21:31:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/directory-permissions/m-p/3430787#M205690</guid>
      <dc:creator>Nilton Eliot Medina Ygr</dc:creator>
      <dc:date>2004-11-25T21:31:04Z</dc:date>
    </item>
    <item>
      <title>Re: Directory permissions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/directory-permissions/m-p/3430788#M205691</link>
      <description>Some kind of action will be required on pre-existing files to make this user able to use them rwx&lt;BR /&gt;&lt;BR /&gt;I'd kind of have to know what the users groups were to recommend an exact course of action.&lt;BR /&gt;&lt;BR /&gt;It might be as simple as a chmod -R command -R for recursive on subdirectories.&lt;BR /&gt;&lt;BR /&gt;It might be more complex. More details needed to provide better help.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Thu, 25 Nov 2004 21:50:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/directory-permissions/m-p/3430788#M205691</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-11-25T21:50:20Z</dc:date>
    </item>
    <item>
      <title>Re: Directory permissions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/directory-permissions/m-p/3430789#M205692</link>
      <description>Hi Nilton,&lt;BR /&gt;&lt;BR /&gt;Look at the man page of 'acl'.&lt;BR /&gt;//An ACL entry prefixed with d: or default:, can only occur in a directory's ACL, and it indicates that the remainder of the entry is not to be used in determining the access rights to the directory, but is instead to be applied to any files or subdirectories created in the directory//&lt;BR /&gt;&lt;BR /&gt;You will need to manually set the permissions to the existing files. Use 'find /directory |xargs setacl ...' to set the permissions for the existing files/directories.&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Thu, 25 Nov 2004 21:59:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/directory-permissions/m-p/3430789#M205692</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2004-11-25T21:59:35Z</dc:date>
    </item>
    <item>
      <title>Re: Directory permissions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/directory-permissions/m-p/3430790#M205693</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Well I guess giving permissions manually would be really a great job since there are 15 sub directories to include. Beisdes, The idea is to give permissions only to one user, not all the "others" so maybe chmod is not a good choice (or yes?).&lt;BR /&gt;&lt;BR /&gt;The scenario goes like this&lt;BR /&gt;Directory structure:&lt;BR /&gt;/d1/s1/ABC&lt;BR /&gt;/d1/s1/ABC/ss1 ... /d1/s1/ABC/ss1/dsd1 ...&lt;BR /&gt;/d1/s1/ABC/ss2 ... /d1/s1/ABC/ss1/dsd2 ...&lt;BR /&gt;/d1/s1/ABC/ss3 ... /d1/s1/ABC/ss1/dsd3 ...&lt;BR /&gt;&lt;BR /&gt;The instruction I used was:&lt;BR /&gt;# setacl -m u:userx:rwx d1/s1/ABC&lt;BR /&gt;&lt;BR /&gt;The user "userx" belongs to the "users" group&lt;BR /&gt;&lt;BR /&gt;After the instruction above, userx is able to rwx at "/d1/s1/ABC" but only can create new files/directories (or delete them), but cannot write or delete on the other subdirectories or files already existing.&lt;BR /&gt;&lt;BR /&gt;Again, thanks in advance an thanks for your time.&lt;BR /&gt;&lt;BR /&gt;Nilton Medina Ygreda&lt;BR /&gt;IT Systems&lt;BR /&gt;SENATI&lt;BR /&gt;Lima, PerÃ</description>
      <pubDate>Fri, 26 Nov 2004 13:46:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/directory-permissions/m-p/3430790#M205693</guid>
      <dc:creator>Nilton Eliot Medina Ygr</dc:creator>
      <dc:date>2004-11-26T13:46:44Z</dc:date>
    </item>
    <item>
      <title>Re: Directory permissions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/directory-permissions/m-p/3430791#M205694</link>
      <description>Hi Nilton,&lt;BR /&gt;&lt;BR /&gt;Setting permissions manually is not a difficult job. Just use 'find' command as I mentioned before.&lt;BR /&gt;&lt;BR /&gt;find /your_directory|xargs setacl -m u:userx:rwx&lt;BR /&gt;&lt;BR /&gt;Check to see if the permissions have been set correctly. &lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Fri, 26 Nov 2004 13:51:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/directory-permissions/m-p/3430791#M205694</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2004-11-26T13:51:20Z</dc:date>
    </item>
    <item>
      <title>Re: Directory permissions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/directory-permissions/m-p/3430792#M205695</link>
      <description>ok, Sri, I will try it later an I will let you know.&lt;BR /&gt;Please ... wish me good luck&lt;BR /&gt;&lt;BR /&gt;thanks, &lt;BR /&gt;&lt;BR /&gt;Nilton</description>
      <pubDate>Fri, 26 Nov 2004 13:56:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/directory-permissions/m-p/3430792#M205695</guid>
      <dc:creator>Nilton Eliot Medina Ygr</dc:creator>
      <dc:date>2004-11-26T13:56:06Z</dc:date>
    </item>
    <item>
      <title>Re: Directory permissions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/directory-permissions/m-p/3430793#M205696</link>
      <description>chown -R seems to be a reasonable way to go, it does subdirectories.&lt;BR /&gt;&lt;BR /&gt;You could compile a list of subdirectories.&lt;BR /&gt;&lt;BR /&gt;dir *.  will get a list of direcectories in a the current directory.&lt;BR /&gt;&lt;BR /&gt;ls -alr | grep dr&lt;BR /&gt;&lt;BR /&gt;Will get a list of directories including what you want to change.&lt;BR /&gt;&lt;BR /&gt;You can process the list with awk.&lt;BR /&gt;&lt;BR /&gt;ls -alr | grep dr &amp;gt; /tmp/filelist&lt;BR /&gt;&lt;BR /&gt;cat /tmp/filelist | `{print $8}` &amp;gt; /tmp/file2&lt;BR /&gt;&lt;BR /&gt;while read -r filename&lt;BR /&gt;do&lt;BR /&gt;    chmod ### $filename&lt;BR /&gt;done &amp;lt; /tmp/file2&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;replace ### with the permissions you want.&lt;BR /&gt;&lt;BR /&gt;Saves time.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Fri, 26 Nov 2004 14:15:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/directory-permissions/m-p/3430793#M205696</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-11-26T14:15:55Z</dc:date>
    </item>
    <item>
      <title>Re: Directory permissions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/directory-permissions/m-p/3430794#M205697</link>
      <description>And remember that write-ownership for a directory has to do with the existence (or removal) of files, while write-ownership for a file has to do with the content. If you just want the single user to own the directories and files, then use chown -R followed by chmod 700 for directries and 600 for files. Since the permissions are different, use find -type to select files or directories. &lt;BR /&gt; &lt;BR /&gt;Be VERY careful with find and chown -R!!! An accidental symbolic link might connect a current directory into another. Do this task as root and it's possible ruin the entire system. Verify exactly what files will be affected by using find without the -exec option to get a list first.</description>
      <pubDate>Fri, 26 Nov 2004 15:57:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/directory-permissions/m-p/3430794#M205697</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2004-11-26T15:57:35Z</dc:date>
    </item>
  </channel>
</rss>

