<?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: Different owners - Delete in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/different-owners-delete/m-p/3813653#M780396</link>
    <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;suggesetion:&lt;BR /&gt;&lt;BR /&gt;1) Create a common group for these two users and make sure nobody else ever gets into that group.&lt;BR /&gt;&lt;BR /&gt;2) Grant g+w permissions on the file. use chmod  on both systems.&lt;BR /&gt;&lt;BR /&gt;The script should now permit both users to delete if that was the issue.&lt;BR /&gt;&lt;BR /&gt;3) Have the process that creates the file have a umask that permits group write and sets the ownership appropriately based on item 2.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
    <pubDate>Tue, 27 Jun 2006 17:34:55 GMT</pubDate>
    <dc:creator>Steven E. Protter</dc:creator>
    <dc:date>2006-06-27T17:34:55Z</dc:date>
    <item>
      <title>Different owners - Delete</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/different-owners-delete/m-p/3813652#M780395</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;following is the content of my shell script.&lt;BR /&gt;&lt;BR /&gt;&lt;MOVE.SH&gt;&lt;BR /&gt;mv location1/file1  location2/file1&lt;BR /&gt;rm location1/file3&lt;BR /&gt;&lt;BR /&gt;Background: &lt;BR /&gt;1)I have couple of ids to login to same server.&lt;BR /&gt;2) I have an id ftpuser (which has write access only in location1). ftpuser id is used by&lt;BR /&gt;several other groups to ftp files to location1. ftpuser will be the owner , group and others will&lt;BR /&gt;have only read access.&lt;BR /&gt;3) I login in as opuser (which has write access only in location2).&lt;BR /&gt;4) For above shell script (move.sh ) , opuser is the owner , group and other have read and execute permissions.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Now the problem,&lt;BR /&gt;&lt;BR /&gt;1) I login as opuser and execute the script, it fails because opuser doesnt have delete (as it is trying to move)&lt;BR /&gt; access in location1. but has write permission in location2.&lt;BR /&gt; &lt;BR /&gt;2) I login as ftpuser and execute the script, it fails because ftpuser doesnt have write access in location2 but has &lt;BR /&gt;delete access in location1.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I cant get delete access for opuser for location1 or write access for ftpuser in location2. &lt;BR /&gt;Thats a business constraint.How to solve this problem. ?  After logging in can we SU &lt;OTHER user=""&gt; and try ? &lt;BR /&gt;or any other better way ? &lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;/OTHER&gt;&lt;/MOVE.SH&gt;</description>
      <pubDate>Tue, 27 Jun 2006 15:29:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/different-owners-delete/m-p/3813652#M780395</guid>
      <dc:creator>intp</dc:creator>
      <dc:date>2006-06-27T15:29:37Z</dc:date>
    </item>
    <item>
      <title>Re: Different owners - Delete</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/different-owners-delete/m-p/3813653#M780396</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;suggesetion:&lt;BR /&gt;&lt;BR /&gt;1) Create a common group for these two users and make sure nobody else ever gets into that group.&lt;BR /&gt;&lt;BR /&gt;2) Grant g+w permissions on the file. use chmod  on both systems.&lt;BR /&gt;&lt;BR /&gt;The script should now permit both users to delete if that was the issue.&lt;BR /&gt;&lt;BR /&gt;3) Have the process that creates the file have a umask that permits group write and sets the ownership appropriately based on item 2.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Tue, 27 Jun 2006 17:34:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/different-owners-delete/m-p/3813653#M780396</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2006-06-27T17:34:55Z</dc:date>
    </item>
    <item>
      <title>Re: Different owners - Delete</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/different-owners-delete/m-p/3813654#M780397</link>
      <description>If you cannot grant delete access to opuser to location1 there is no way that you can do this from a script. Even if you use sudo, you must grant delete access to opuser in location1. If you use su -c "command" to change the user for deletion, you must know the password for that user.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;You have the option of making the opuser and ftpuser members of the same group. This could be the scheme:&lt;BR /&gt;&lt;BR /&gt;UID: ftpuser GID: ftpusers&lt;BR /&gt;UID: opuser GID: ftpusers,opuser[,group2,group3...]&lt;BR /&gt;&lt;BR /&gt;location1: owner ftpuser.ftpusers, permissions 770&lt;BR /&gt;location2: owner root.opuser, permissions 770&lt;BR /&gt;&lt;BR /&gt;In this way, by using opuser, you will be able to move the file from location1 to location2 and remove the files in location1.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 27 Jun 2006 17:39:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/different-owners-delete/m-p/3813654#M780397</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2006-06-27T17:39:33Z</dc:date>
    </item>
    <item>
      <title>Re: Different owners - Delete</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/different-owners-delete/m-p/3813655#M780398</link>
      <description>ivan ...i know passwords for both ids.&lt;BR /&gt;&lt;BR /&gt;what i'm trying to know is...&lt;BR /&gt;&lt;BR /&gt;1) I login as opuser , copy location1/file1 to location2/file1. Since opuser has write access in location2...this step will work.&lt;BR /&gt;then....&lt;BR /&gt;&lt;BR /&gt;2) within same script i need to do SU ftpuser (i know the pwd)...and rm location1/file1 and rm location1/file3&lt;BR /&gt;since ftpuser has delete access in location1..this step shud work.&lt;BR /&gt;&lt;BR /&gt;this meets my goal. but is this acheivable in one script? &lt;BR /&gt;</description>
      <pubDate>Tue, 27 Jun 2006 18:11:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/different-owners-delete/m-p/3813655#M780398</guid>
      <dc:creator>intp</dc:creator>
      <dc:date>2006-06-27T18:11:01Z</dc:date>
    </item>
    <item>
      <title>Re: Different owners - Delete</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/different-owners-delete/m-p/3813656#M780399</link>
      <description>Intp,&lt;BR /&gt;&lt;BR /&gt;You could set a cron job in root to do the transfers for you, as often as you want them moved etc. This would mean that the files would be transferred etc, without too much messing with permissions. Also, the cronned script could set the permissions on all the files to exactly what you want.&lt;BR /&gt;&lt;BR /&gt;Just a thought.&lt;BR /&gt;&lt;BR /&gt;JASH</description>
      <pubDate>Wed, 28 Jun 2006 03:38:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/different-owners-delete/m-p/3813656#M780399</guid>
      <dc:creator>JASH_2</dc:creator>
      <dc:date>2006-06-28T03:38:37Z</dc:date>
    </item>
  </channel>
</rss>

