<?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 Special directory permissions in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/special-directory-permissions/m-p/3113744#M149379</link>
    <description>Goal:  To create a folder that will allow a specific group of users to list the folder's contents and create new files. They should only be able to read/write files they own. &lt;BR /&gt;&lt;BR /&gt;I have explored options using the sticky bit and umask but I can't seem to get them to work and i'm running out of time.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Fri, 07 Nov 2003 14:21:06 GMT</pubDate>
    <dc:creator>Ron Markarian</dc:creator>
    <dc:date>2003-11-07T14:21:06Z</dc:date>
    <item>
      <title>Special directory permissions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/special-directory-permissions/m-p/3113744#M149379</link>
      <description>Goal:  To create a folder that will allow a specific group of users to list the folder's contents and create new files. They should only be able to read/write files they own. &lt;BR /&gt;&lt;BR /&gt;I have explored options using the sticky bit and umask but I can't seem to get them to work and i'm running out of time.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 07 Nov 2003 14:21:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/special-directory-permissions/m-p/3113744#M149379</guid>
      <dc:creator>Ron Markarian</dc:creator>
      <dc:date>2003-11-07T14:21:06Z</dc:date>
    </item>
    <item>
      <title>Re: Special directory permissions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/special-directory-permissions/m-p/3113745#M149380</link>
      <description>This is not so fast, but it can get the job done.&lt;BR /&gt;&lt;BR /&gt;Access Control Lists(ACL)&lt;BR /&gt;&lt;BR /&gt;Read this:&lt;BR /&gt;&lt;A href="http://docs.hp.com/hpux/onlinedocs/os/jfs_acl.pdf" target="_blank"&gt;http://docs.hp.com/hpux/onlinedocs/os/jfs_acl.pdf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Good Luck.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Fri, 07 Nov 2003 14:34:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/special-directory-permissions/m-p/3113745#M149380</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2003-11-07T14:34:48Z</dc:date>
    </item>
    <item>
      <title>Re: Special directory permissions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/special-directory-permissions/m-p/3113746#M149381</link>
      <description>If you create the directory with 1770 permissions with group ownership assigned to the right group, then no one other than members of that group can 'see' into the directory. The sticky bit (1000) prevents members of that group from removing or renaming the files that they do not own. umask should be set to 077 and now all files will be unreadable/unwritable by anyone except the owner.&lt;BR /&gt; &lt;BR /&gt;If the users must also create additional directories, they MUST manually change the permission on the new directory. umask has no effect on sticky or UID/GID bits.</description>
      <pubDate>Fri, 07 Nov 2003 14:51:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/special-directory-permissions/m-p/3113746#M149381</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2003-11-07T14:51:21Z</dc:date>
    </item>
    <item>
      <title>Re: Special directory permissions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/special-directory-permissions/m-p/3113747#M149382</link>
      <description>Setting the permissions on the directory to 1770 will get you close.  Making sure the users umask is set to 077, at least initially, will prevent them from reading/modifying others' files.  But, there is no way to enforce the umask setting.  The users could modify it themselves, thus opening up their files to others.</description>
      <pubDate>Fri, 07 Nov 2003 14:52:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/special-directory-permissions/m-p/3113747#M149382</guid>
      <dc:creator>James A. Donovan</dc:creator>
      <dc:date>2003-11-07T14:52:44Z</dc:date>
    </item>
    <item>
      <title>Re: Special directory permissions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/special-directory-permissions/m-p/3113748#M149383</link>
      <description>yep, set the sticky bit on the directory, but to avoid others read access to the files, you must change the user's umask to 066.</description>
      <pubDate>Fri, 07 Nov 2003 14:52:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/special-directory-permissions/m-p/3113748#M149383</guid>
      <dc:creator>Kevin Wright</dc:creator>
      <dc:date>2003-11-07T14:52:50Z</dc:date>
    </item>
    <item>
      <title>Re: Special directory permissions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/special-directory-permissions/m-p/3113749#M149384</link>
      <description>the easy way is just to give rwx to the group for the directory&lt;BR /&gt;d---rwx--- owner mygroup ...&lt;BR /&gt;&lt;BR /&gt;then whenever a file is created it is up to the owner to make sure they are the only ones with read/write permissions on the file&lt;BR /&gt;-rwx------ owner mygroup .....&lt;BR /&gt;this can be done via umask or chmod&lt;BR /&gt;&lt;BR /&gt;of course the owner will have to be a member of the group, mygroup.  And, there is no guarentee that the owners will maintain the proper permission.&lt;BR /&gt;&lt;BR /&gt;another caveat is being the the members of the group have write permission on the directory. they will be able to remove any file.  and being they can create files, they could recreate a file they removed, set the permissions, and then give the file the same owner/group as the file they removed.  So, while they can not vi a file, they will be able to modify the file via a remove and recreate it with the desired contents.&lt;BR /&gt;&lt;BR /&gt;the only right way is to use acl's.  but they are only supported on limited types of file systems.  And several utilities don't support them, nfs, tar, etc.  And, of course, there is a learning curve to getting used to using them.</description>
      <pubDate>Fri, 07 Nov 2003 15:13:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/special-directory-permissions/m-p/3113749#M149384</guid>
      <dc:creator>curt larson_1</dc:creator>
      <dc:date>2003-11-07T15:13:50Z</dc:date>
    </item>
    <item>
      <title>Re: Special directory permissions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/special-directory-permissions/m-p/3113750#M149385</link>
      <description>The umask is going to apply to every file the user creates. (this directory or not). Is there away to only apply the umask to this directory.  &lt;BR /&gt;&lt;BR /&gt;I also looked at ACL's , but how would that help me in this situation.  I don't need to differentiate between users.</description>
      <pubDate>Fri, 07 Nov 2003 15:21:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/special-directory-permissions/m-p/3113750#M149385</guid>
      <dc:creator>Ron Markarian</dc:creator>
      <dc:date>2003-11-07T15:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: Special directory permissions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/special-directory-permissions/m-p/3113751#M149386</link>
      <description>There is no way to set a special umask for just one directory.  But you may be able to sneak around the problem....&lt;BR /&gt;&lt;BR /&gt;Cron up a job run by root, that runs every minute (or whatever) that changes the permissions on any file in that directory to 600.  That way you can exercise at least a modicum of control.</description>
      <pubDate>Fri, 07 Nov 2003 15:31:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/special-directory-permissions/m-p/3113751#M149386</guid>
      <dc:creator>James A. Donovan</dc:creator>
      <dc:date>2003-11-07T15:31:35Z</dc:date>
    </item>
  </channel>
</rss>

