<?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: Complicated Permission Problem in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/complicated-permission-problem/m-p/3609575#M234239</link>
    <description>Hello,&lt;BR /&gt;&lt;BR /&gt;If you change link owner to root:sys, jdexe won't be able to modify link but will be able to create new directories inside spec directory and access to /spec.master/file.real under file.real configured permissions (-rw-rw-r-- jdexe jdexe).&lt;BR /&gt;&lt;BR /&gt;I hope this is you need.&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Carles&lt;BR /&gt;</description>
    <pubDate>Tue, 23 Aug 2005 08:09:26 GMT</pubDate>
    <dc:creator>Carles Viaplana</dc:creator>
    <dc:date>2005-08-23T08:09:26Z</dc:date>
    <item>
      <title>Complicated Permission Problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/complicated-permission-problem/m-p/3609574#M234238</link>
      <description>I am trying to figure out a way to stop a use from being able to remove or overwrite a soft link with a regular file while all the while being able to read and write to the file that the link references.  I have figured that part out fine and it is shown in the example below..&lt;BR /&gt;&lt;BR /&gt;drwxr-xr-x   2 root       sys             96 Aug 23 08:41 ./spec&lt;BR /&gt;lrwxrwxr-x   1 jdexe      jdexe           24 Aug 23 08:41 ./spec/file.link -&amp;gt; ../spec.master/file.real&lt;BR /&gt;drwxr-xr-x   2 jdexe      jdexe           96 Aug 23 08:36 ./spec.master&lt;BR /&gt;-rw-rw-r--   1 jdexe      jdexe           12 Aug 23 08:38 ./spec.master/file.real&lt;BR /&gt;&lt;BR /&gt;The part that makes this complicated is that I would like to allow the JDEXE user to be able to create new directories inside of the "spec" directory but just nothing besides a read / write to the links.&lt;BR /&gt;&lt;BR /&gt;Is there a way to do this with ACLs or some other type of alternative permission mechanism that I don't know about? Or, as I suspect, are we out of luck??&lt;BR /&gt;&lt;BR /&gt;Thanks for all your help,&lt;BR /&gt;Ty</description>
      <pubDate>Tue, 23 Aug 2005 07:47:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/complicated-permission-problem/m-p/3609574#M234238</guid>
      <dc:creator>Ty Roberts</dc:creator>
      <dc:date>2005-08-23T07:47:29Z</dc:date>
    </item>
    <item>
      <title>Re: Complicated Permission Problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/complicated-permission-problem/m-p/3609575#M234239</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;If you change link owner to root:sys, jdexe won't be able to modify link but will be able to create new directories inside spec directory and access to /spec.master/file.real under file.real configured permissions (-rw-rw-r-- jdexe jdexe).&lt;BR /&gt;&lt;BR /&gt;I hope this is you need.&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Carles&lt;BR /&gt;</description>
      <pubDate>Tue, 23 Aug 2005 08:09:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/complicated-permission-problem/m-p/3609575#M234239</guid>
      <dc:creator>Carles Viaplana</dc:creator>
      <dc:date>2005-08-23T08:09:26Z</dc:date>
    </item>
    <item>
      <title>Re: Complicated Permission Problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/complicated-permission-problem/m-p/3609576#M234240</link>
      <description>Thanks for the response but that does not work.  If the owner of the link is root:sys it will still allow the jdexe user to remove the link.  I thought that links inherit the permissions of the file that they are linking to...  see below&lt;BR /&gt;&lt;BR /&gt;wcores04(/tmp/link_test/spec)$ ll&lt;BR /&gt;total 0&lt;BR /&gt;lrwxr-xr-x   1 root       sys             24 Aug 23 09:12 file.link -&amp;gt; ../spec.master/file.real&lt;BR /&gt;wcores04(/tmp/link_test/spec)$ rm file.link &lt;BR /&gt;wcores04(/tmp/link_test/spec)$ ll&lt;BR /&gt;total 0&lt;BR /&gt;wcores04(/tmp/link_test/spec)$ whoami&lt;BR /&gt;jdexe&lt;BR /&gt;</description>
      <pubDate>Tue, 23 Aug 2005 08:14:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/complicated-permission-problem/m-p/3609576#M234240</guid>
      <dc:creator>Ty Roberts</dc:creator>
      <dc:date>2005-08-23T08:14:06Z</dc:date>
    </item>
    <item>
      <title>Re: Complicated Permission Problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/complicated-permission-problem/m-p/3609577#M234241</link>
      <description>An ability os user to delete a files is controlled by perms on directory under which a file resides. So if the dir has perms for user, but not for a file, he can stil dete a file. &lt;BR /&gt;What are the perms on directory where link and file resides. Also, is this file needs to be executable, if not you just keep read perms for group and others.</description>
      <pubDate>Tue, 23 Aug 2005 08:18:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/complicated-permission-problem/m-p/3609577#M234241</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2005-08-23T08:18:08Z</dc:date>
    </item>
    <item>
      <title>Re: Complicated Permission Problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/complicated-permission-problem/m-p/3609578#M234242</link>
      <description>RAC,&lt;BR /&gt;The permissions for the directories are listed in my initial post.  The links don't need to be executable they jsut need to be RW for jdexe but I don't want them to be able to remove the file..</description>
      <pubDate>Tue, 23 Aug 2005 08:23:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/complicated-permission-problem/m-p/3609578#M234242</guid>
      <dc:creator>Ty Roberts</dc:creator>
      <dc:date>2005-08-23T08:23:16Z</dc:date>
    </item>
    <item>
      <title>Re: Complicated Permission Problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/complicated-permission-problem/m-p/3609579#M234243</link>
      <description>Ty,&lt;BR /&gt;Not sure why you're seeing what you're seeing...  See below&lt;BR /&gt;&lt;BR /&gt;$ find . | xargs ll -d&lt;BR /&gt;drwxr-xr-x   3 root       sys             96 Aug 23 09:57 .&lt;BR /&gt;lrwxr-xr-x   1 root       sys              9 Aug 23 09:57 ./link -&amp;gt; real/file&lt;BR /&gt;drwxr-xr-x   2 testusr    sys             96 Aug 23 09:56 ./real&lt;BR /&gt;-rwxr-xr-x   1 testusr    sys             39 Aug 23 09:59 ./real/file&lt;BR /&gt;$ id&lt;BR /&gt;uid=851(testusr) gid=20(users)&lt;BR /&gt;$ rm link&lt;BR /&gt;rm: link not removed.  Permission denied&lt;BR /&gt;$ cat link&lt;BR /&gt;this is the content of the file "file"&lt;BR /&gt;$ date &amp;gt;&amp;gt; link&lt;BR /&gt;$ cat link&lt;BR /&gt;this is the content of the file "file"&lt;BR /&gt;Tue Aug 23 10:04:13 EDT 2005</description>
      <pubDate>Tue, 23 Aug 2005 09:04:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/complicated-permission-problem/m-p/3609579#M234243</guid>
      <dc:creator>Greg Vaidman</dc:creator>
      <dc:date>2005-08-23T09:04:59Z</dc:date>
    </item>
    <item>
      <title>Re: Complicated Permission Problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/complicated-permission-problem/m-p/3609580#M234244</link>
      <description>Greg, can you give me the ownership and permissions of the folder that houses "link"?  That was we can see if we are comparing apples to apples.</description>
      <pubDate>Tue, 23 Aug 2005 09:10:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/complicated-permission-problem/m-p/3609580#M234244</guid>
      <dc:creator>Ty Roberts</dc:creator>
      <dc:date>2005-08-23T09:10:45Z</dc:date>
    </item>
    <item>
      <title>Re: Complicated Permission Problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/complicated-permission-problem/m-p/3609581#M234245</link>
      <description>Greg, sorry I didn't see what I was looking for till I posted the last post.&lt;BR /&gt;&lt;BR /&gt;drwxr-xr-x 3 root sys 96 Aug 23 09:57 .&lt;BR /&gt;&lt;BR /&gt;I got the same results as you did when "root" owned the parent dir of link.  Try to change the ownership of the parent dir to your test user and then try to remove the link.</description>
      <pubDate>Tue, 23 Aug 2005 09:12:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/complicated-permission-problem/m-p/3609581#M234245</guid>
      <dc:creator>Ty Roberts</dc:creator>
      <dc:date>2005-08-23T09:12:30Z</dc:date>
    </item>
    <item>
      <title>Re: Complicated Permission Problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/complicated-permission-problem/m-p/3609582#M234246</link>
      <description>Could you use the "sticky" bit on the permissions to the folder?&lt;BR /&gt; &lt;BR /&gt;You can create a folder and give "other" read/write/exec permission, but with the sticky bit, a user can only create new files or do operations on files "owned" by the themselves. This should protect other objects under your "spec" directory&lt;BR /&gt; &lt;BR /&gt;To assign sticky bit-&lt;BR /&gt;chmod 1777 spec&lt;BR /&gt; &lt;BR /&gt;HTH&lt;BR /&gt; &lt;BR /&gt;-- Rod Hills</description>
      <pubDate>Tue, 23 Aug 2005 09:19:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/complicated-permission-problem/m-p/3609582#M234246</guid>
      <dc:creator>Rodney Hills</dc:creator>
      <dc:date>2005-08-23T09:19:42Z</dc:date>
    </item>
    <item>
      <title>Re: Complicated Permission Problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/complicated-permission-problem/m-p/3609583#M234247</link>
      <description>Rodney, I thought that you were onto something here.. but check out the following output.  I think I had everything setup right but it still allowed the jdexe user to remove a file (in this case a link) that was owned by root.&lt;BR /&gt;&lt;BR /&gt;wcores04(/tmp/link_test)$ find . | xargs ll -d&lt;BR /&gt;drwxr-xr-x   4 root       sys             96 Aug 23 08:36 .&lt;BR /&gt;drwx-----T   2 jdexe      jdexe           96 Aug 23 10:26 ./spec&lt;BR /&gt;drwxr-xr-x   2 jdexe      jdexe           96 Aug 23 08:36 ./spec.master&lt;BR /&gt;-rw-rw-r--   1 jdexe      jdexe           22 Aug 23 10:25 ./spec.master/file.real&lt;BR /&gt;lrwxr-xr-x   1 root       sys             24 Aug 23 10:25 ./spec/file.link -&amp;gt; ../spec.master/file.real&lt;BR /&gt;wcores04(/tmp/link_test)$ cd spec&lt;BR /&gt;wcores04(/tmp/link_test/spec)$ id&lt;BR /&gt;uid=145(jdexe) gid=116(jdexe) groups=103(icon),107(jdepod),108(wtech),109(jdecomm),110(jdeconv),111(edi),123(mqm)&lt;BR /&gt;wcores04(/tmp/link_test/spec)$ touch test.file&lt;BR /&gt;wcores04(/tmp/link_test/spec)$ ll&lt;BR /&gt;total 0&lt;BR /&gt;lrwxr-xr-x   1 root       sys             24 Aug 23 10:25 file.link -&amp;gt; ../spec.master/file.real&lt;BR /&gt;-rw-rw-r--   1 jdexe      jdexe            0 Aug 23 10:27 test.file&lt;BR /&gt;wcores04(/tmp/link_test/spec)$ rm file.link&lt;BR /&gt;wcores04(/tmp/link_test/spec)$ ll&lt;BR /&gt;total 0&lt;BR /&gt;-rw-rw-r--   1 jdexe      jdexe            0 Aug 23 10:27 test.file&lt;BR /&gt;</description>
      <pubDate>Tue, 23 Aug 2005 09:28:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/complicated-permission-problem/m-p/3609583#M234247</guid>
      <dc:creator>Ty Roberts</dc:creator>
      <dc:date>2005-08-23T09:28:02Z</dc:date>
    </item>
    <item>
      <title>Re: Complicated Permission Problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/complicated-permission-problem/m-p/3609584#M234248</link>
      <description>I just tried the same test with the permissions of spec being the following..&lt;BR /&gt;&lt;BR /&gt;drwxrwxrwt   2 jdexe      jdexe           96 Aug 23 10:34 spec</description>
      <pubDate>Tue, 23 Aug 2005 09:35:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/complicated-permission-problem/m-p/3609584#M234248</guid>
      <dc:creator>Ty Roberts</dc:creator>
      <dc:date>2005-08-23T09:35:36Z</dc:date>
    </item>
    <item>
      <title>Re: Complicated Permission Problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/complicated-permission-problem/m-p/3609585#M234249</link>
      <description>Ty,&lt;BR /&gt;That's because your spec directory is owner by jdexe.  If you make it owned by root:sys and permissions 1777, that should prevent jdexe from removing root's files.  jdexe will still be able to remove his/her own files, though...&lt;BR /&gt;&lt;BR /&gt;--Greg</description>
      <pubDate>Tue, 23 Aug 2005 09:38:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/complicated-permission-problem/m-p/3609585#M234249</guid>
      <dc:creator>Greg Vaidman</dc:creator>
      <dc:date>2005-08-23T09:38:13Z</dc:date>
    </item>
    <item>
      <title>Re: Complicated Permission Problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/complicated-permission-problem/m-p/3609586#M234250</link>
      <description>Greg, that was the ticket.  Now to throw another kink in the chain we just need to test this out when the spec dir is shared with NFS...  &lt;BR /&gt;&lt;BR /&gt;Thanks for all the help everyone..&lt;BR /&gt;&lt;BR /&gt;Ty</description>
      <pubDate>Tue, 23 Aug 2005 09:47:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/complicated-permission-problem/m-p/3609586#M234250</guid>
      <dc:creator>Ty Roberts</dc:creator>
      <dc:date>2005-08-23T09:47:44Z</dc:date>
    </item>
    <item>
      <title>Re: Complicated Permission Problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/complicated-permission-problem/m-p/3609587#M234251</link>
      <description>Mabbe you should set the t-flag on a the spec dir. Then only owners are allowed to delete their own files. Note, that symlinks don't have their own effective ownership/mode!&lt;BR /&gt;&lt;BR /&gt;My idea ist to use only the jdexe group to grant write permission. If the owner of the real file is e.g. root, then deletion is prevented by the t-flag.  &lt;BR /&gt;&lt;BR /&gt;Using your example above:&lt;BR /&gt;&lt;BR /&gt;chown root:jdexe ./spec&lt;BR /&gt;chmod 775 ./spec&lt;BR /&gt;chmod u+t ./spec&lt;BR /&gt;chown root:jdexe ./spec.master/file.real&lt;BR /&gt;&lt;BR /&gt;Result would be:&lt;BR /&gt;&lt;BR /&gt;drwxrwxr-t 2 root jdexe 96 Aug 23 08:41 ./spec&lt;BR /&gt;lrwxrwxr-x 1 jdexe jdexe 24 Aug 23 08:41 ./spec/file.link -&amp;gt; ../spec.master/file.real&lt;BR /&gt;drwxr-xr-x 2 jdexe jdexe 96 Aug 23 08:36 ./spec.master&lt;BR /&gt;-rw-rw-r-- 1 root jdexe 12 Aug 23 08:38 ./spec.master/file.real&lt;BR /&gt;&lt;BR /&gt;Give it a try!&lt;BR /&gt;&lt;BR /&gt;Dietmar.&lt;BR /&gt;</description>
      <pubDate>Tue, 23 Aug 2005 09:49:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/complicated-permission-problem/m-p/3609587#M234251</guid>
      <dc:creator>Dietmar Konermann</dc:creator>
      <dc:date>2005-08-23T09:49:50Z</dc:date>
    </item>
    <item>
      <title>Re: Complicated Permission Problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/complicated-permission-problem/m-p/3609588#M234252</link>
      <description>Oops... too late. Should have done refresh before. :)</description>
      <pubDate>Tue, 23 Aug 2005 09:50:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/complicated-permission-problem/m-p/3609588#M234252</guid>
      <dc:creator>Dietmar Konermann</dc:creator>
      <dc:date>2005-08-23T09:50:32Z</dc:date>
    </item>
  </channel>
</rss>

