<?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: Changing perms to owner then back to original. in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-perms-to-owner-then-back-to-original/m-p/5117925#M447265</link>
    <description>hi,&lt;BR /&gt;&lt;BR /&gt;one dirty way will be to use ssh and script commands that will set the desired permissions.&lt;BR /&gt;&lt;BR /&gt;hope this helps!&lt;BR /&gt;kind regards&lt;BR /&gt;yogeeraj</description>
    <pubDate>Mon, 07 Jul 2008 17:34:07 GMT</pubDate>
    <dc:creator>Yogeeraj_1</dc:creator>
    <dc:date>2008-07-07T17:34:07Z</dc:date>
    <item>
      <title>Changing perms to owner then back to original.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-perms-to-owner-then-back-to-original/m-p/5117921#M447261</link>
      <description>I am looking for some assistance in finding a solution to handle changing ownerships of directories to a owner prior to a cron job running, then back to the original owner once the other cron job is complete.  &lt;BR /&gt;&lt;BR /&gt;Example: If I start off with the following-&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;drwxr-xr-x cadadmin users  scripts&lt;BR /&gt;drwxr-xr-x twetendl users  twetendl&lt;BR /&gt;drwxr-xr-x valisys  users  valisys&lt;BR /&gt;drwxr-xr-x vanberbj users  vanberbj&lt;BR /&gt;drwxr-xr-x walliske catia  walliske&lt;BR /&gt;&lt;BR /&gt;I need to change it to prior to the cron job starting:&lt;BR /&gt;drwxr-xr-x cadadmin users  scripts&lt;BR /&gt;drwxr-xr-x cadadmin users  twetendl&lt;BR /&gt;drwxr-xr-x cadadmin  users  valisys&lt;BR /&gt;drwxr-xr-x cadadmin users  vanberbj&lt;BR /&gt;drwxr-xr-x cadadmin catia  walliske&lt;BR /&gt;&lt;BR /&gt;The change it back after the cron job runs.&lt;BR /&gt;drwxr-xr-x cadadmin users  scripts&lt;BR /&gt;drwxr-xr-x twetendl users  twetendl&lt;BR /&gt;drwxr-xr-x valisys  users  valisys&lt;BR /&gt;drwxr-xr-x vanberbj users  vanberbj&lt;BR /&gt;drwxr-xr-x walliske catia  walliske&lt;BR /&gt;&lt;BR /&gt;We have looked at ACL’s but this will not work due to restriction of the how the cron job is running.&lt;BR /&gt;I know I can use the 'find' command to find the directories and change the ownership.  I am unsure how to retain the orginal ownership and use it to change the ownership back.&lt;BR /&gt;</description>
      <pubDate>Mon, 07 Jul 2008 17:04:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-perms-to-owner-then-back-to-original/m-p/5117921#M447261</guid>
      <dc:creator>Michael Allmer</dc:creator>
      <dc:date>2008-07-07T17:04:23Z</dc:date>
    </item>
    <item>
      <title>Re: Changing perms to owner then back to original.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-perms-to-owner-then-back-to-original/m-p/5117922#M447262</link>
      <description>Is there an alterior motive to this ? e.g. something does not work as you expect and are attempting to resolve in this fashion ?&lt;BR /&gt;&lt;BR /&gt;If so supply some big picture and maybe we can come up with a bigger solution ?&lt;BR /&gt;&lt;BR /&gt;Other than finding the dirs and current perms then saving in a file, you will then need to parse out the rxwrw-r-x into either binary ( 765 or chars u+rwx,g+rw,o+rx ). not very eloquent.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 07 Jul 2008 17:16:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-perms-to-owner-then-back-to-original/m-p/5117922#M447262</guid>
      <dc:creator>Tim Nelson</dc:creator>
      <dc:date>2008-07-07T17:16:17Z</dc:date>
    </item>
    <item>
      <title>Re: Changing perms to owner then back to original.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-perms-to-owner-then-back-to-original/m-p/5117923#M447263</link>
      <description>Who is the cron job running as? If it is not running as root you may not be able to change the permissions/ownership forth and back. The problem with changing ownership is that once the owner of a file changes ownership from himself to someone else, they have lost ownership of the file and they can not change it back. The new owner has to chnage the ownership back.&lt;BR /&gt;&lt;BR /&gt;It the cron job is running as root you could build a listing in a tempfile with each file/directory path and the original permissions/ownership and use that file later on to restore the original settings.</description>
      <pubDate>Mon, 07 Jul 2008 17:18:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-perms-to-owner-then-back-to-original/m-p/5117923#M447263</guid>
      <dc:creator>TTr</dc:creator>
      <dc:date>2008-07-07T17:18:32Z</dc:date>
    </item>
    <item>
      <title>Re: Changing perms to owner then back to original.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-perms-to-owner-then-back-to-original/m-p/5117924#M447264</link>
      <description>The cron job that is running is a job that runs rsync to update files across servers. It does additional checks on files prior having rsync update the files. The cron job runs as 'cadadmin'  Since 'cadadmin' does not own all the directories, then files cannot be updated within directories 'cadadmin' does not own.</description>
      <pubDate>Mon, 07 Jul 2008 17:28:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-perms-to-owner-then-back-to-original/m-p/5117924#M447264</guid>
      <dc:creator>Michael Allmer</dc:creator>
      <dc:date>2008-07-07T17:28:41Z</dc:date>
    </item>
    <item>
      <title>Re: Changing perms to owner then back to original.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-perms-to-owner-then-back-to-original/m-p/5117925#M447265</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;one dirty way will be to use ssh and script commands that will set the desired permissions.&lt;BR /&gt;&lt;BR /&gt;hope this helps!&lt;BR /&gt;kind regards&lt;BR /&gt;yogeeraj</description>
      <pubDate>Mon, 07 Jul 2008 17:34:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-perms-to-owner-then-back-to-original/m-p/5117925#M447265</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2008-07-07T17:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: Changing perms to owner then back to original.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-perms-to-owner-then-back-to-original/m-p/5117926#M447266</link>
      <description>I'd look at changing owner/group+permissions&lt;BR /&gt;or using ACLs.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; We have looked at ACLâ  s but this will not&lt;BR /&gt;&amp;gt; work due to restriction of the how the cron&lt;BR /&gt;&amp;gt; job is running.&lt;BR /&gt;&lt;BR /&gt;Are you offering an impossibility proof for&lt;BR /&gt;this, or should we believe that you've tried&lt;BR /&gt;everything?&lt;BR /&gt;&lt;BR /&gt;What, exactly, is this "restriction", and&lt;BR /&gt;why can't it be changed?</description>
      <pubDate>Mon, 07 Jul 2008 20:48:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-perms-to-owner-then-back-to-original/m-p/5117926#M447266</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2008-07-07T20:48:39Z</dc:date>
    </item>
    <item>
      <title>Re: Changing perms to owner then back to original.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-perms-to-owner-then-back-to-original/m-p/5117927#M447267</link>
      <description>&amp;gt;Tim: you will then need to parse out the rxwrw-r-x into chars u+rwx,g+rw,o+rx. not very eloquent.&lt;BR /&gt;&lt;BR /&gt;I have two scripts posted that will save and restore owners and permissions.</description>
      <pubDate>Tue, 08 Jul 2008 10:41:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-perms-to-owner-then-back-to-original/m-p/5117927#M447267</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-07-08T10:41:20Z</dc:date>
    </item>
    <item>
      <title>Re: Changing perms to owner then back to original.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-perms-to-owner-then-back-to-original/m-p/5117928#M447268</link>
      <description>You can do it using setacl - the only restriction is the file system should be JFS. In that case, you can use chacl/lsacl.&lt;BR /&gt;&lt;BR /&gt;If you want some examples, please see the below link:&lt;BR /&gt;&lt;A href="http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1190418" target="_blank"&gt;http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1190418&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;If you can explain exactly where you stuck, then someone will be able to assist you.</description>
      <pubDate>Tue, 08 Jul 2008 12:07:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-perms-to-owner-then-back-to-original/m-p/5117928#M447268</guid>
      <dc:creator>Rasheed Tamton</dc:creator>
      <dc:date>2008-07-08T12:07:42Z</dc:date>
    </item>
    <item>
      <title>Re: Changing perms to owner then back to original.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-perms-to-owner-then-back-to-original/m-p/5117929#M447269</link>
      <description>I appoligize for not stating my requirements clearly.  I thank you all for you attempts in assisting me.</description>
      <pubDate>Tue, 08 Jul 2008 13:46:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-perms-to-owner-then-back-to-original/m-p/5117929#M447269</guid>
      <dc:creator>Michael Allmer</dc:creator>
      <dc:date>2008-07-08T13:46:46Z</dc:date>
    </item>
  </channel>
</rss>

