<?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 RBAC FOR USER in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/rbac-for-user/m-p/5229657#M468280</link>
    <description>Need to know the steps to create an user only for deleting archive log files from particular directory and monitoring cron Jobs.</description>
    <pubDate>Thu, 11 Mar 2010 15:57:01 GMT</pubDate>
    <dc:creator>vadivel</dc:creator>
    <dc:date>2010-03-11T15:57:01Z</dc:date>
    <item>
      <title>RBAC FOR USER</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rbac-for-user/m-p/5229657#M468280</link>
      <description>Need to know the steps to create an user only for deleting archive log files from particular directory and monitoring cron Jobs.</description>
      <pubDate>Thu, 11 Mar 2010 15:57:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rbac-for-user/m-p/5229657#M468280</guid>
      <dc:creator>vadivel</dc:creator>
      <dc:date>2010-03-11T15:57:01Z</dc:date>
    </item>
    <item>
      <title>Re: RBAC FOR USER</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rbac-for-user/m-p/5229658#M468281</link>
      <description>Provide path of log files&lt;BR /&gt;what is the interval (24 or 48 hrs old logfiles) you want to delet log files.&lt;BR /&gt;Monitoring cron job means what exactly you want to do??&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Chandra</description>
      <pubDate>Fri, 12 Mar 2010 06:45:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rbac-for-user/m-p/5229658#M468281</guid>
      <dc:creator>Chandrahasa s</dc:creator>
      <dc:date>2010-03-12T06:45:23Z</dc:date>
    </item>
    <item>
      <title>Re: RBAC FOR USER</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rbac-for-user/m-p/5229659#M468282</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;&amp;gt; to create an user only for deleting archive log files &lt;BR /&gt;&lt;BR /&gt;Usually, log files are owned by the user that actually start the daemon that generates the logs.  Most of them are started by root. You should make a cron job for user root that will do the job.&lt;BR /&gt;&lt;BR /&gt;Why do you want to create another user for this job? You would need to perform some additional steps like su-ing as the users that will have the right to modify that log files.&lt;BR /&gt;&lt;BR /&gt;Horia.</description>
      <pubDate>Fri, 12 Mar 2010 07:17:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rbac-for-user/m-p/5229659#M468282</guid>
      <dc:creator>Horia Chirculescu</dc:creator>
      <dc:date>2010-03-12T07:17:14Z</dc:date>
    </item>
    <item>
      <title>Re: RBAC FOR USER</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rbac-for-user/m-p/5229660#M468283</link>
      <description>&lt;DURATION to="" delete="" log="" files=""&gt;&lt;BR /&gt;we need to monitor oracle archive log directory &lt;BR /&gt;&lt;BR /&gt;ex: -&lt;BR /&gt;&lt;BR /&gt;root@IC2DBVR1:/ora_log2/HMIMESV2/arch  #ls -lrt&lt;BR /&gt;total 37734648&lt;BR /&gt;-rw-r-----   1 oracle     oinstall   491625472 Mar  9 17:17 HMIMESV2_1_10868_617656652.arc&lt;BR /&gt;-rw-r-----   1 oracle     oinstall   491633664 Mar  9 18:09 HMIMESV2_1_10869_617656652.arc&lt;BR /&gt;-rw-r-----   1 oracle     oinstall   491707392 Mar  9 19:57 HMIMESV2_1_10870_617656652.arc&lt;BR /&gt;-rw-r-----   1 oracle     oinstall   491625472 Mar  9 22:14 HMIMESV2_1_10871_617656652.arc&lt;BR /&gt;-rw-r-----   1 oracle     oinstall   491627520 Mar 10 00:09 HMIMESV2_1_10872_617656652.arc&lt;BR /&gt;-rw-r-----   1 oracle     oinstall   491630592 Mar 10 02:01 HMIMESV2_1_10873_617656652.arc&lt;BR /&gt;-rw-r-----   1 oracle     oinstall   491617280 Mar 10 04:16 HMIMESV2_1_10874_617656652.arc&lt;BR /&gt;-rw-r-----   1 oracle     oinstall   491635712 Mar 10 06:31 HMIMESV2_1_10875_617656652.arc&lt;BR /&gt;-rw-r-----   1 oracle     oinstall   491618304 Mar 10 08:34 HMIMESV2_1_10876_617656652.arc&lt;BR /&gt;-rw-r-----   1 oracle     oinstall   496939008 Mar 10 10:22 HMIMESV2_1_10877_617656652.arc&lt;BR /&gt;-rw-r-----   1 oracle     oinstall   491639808 Mar 10 11:32 HMIMESV2_1_10878_617656652.arc&lt;BR /&gt;-rw-r-----   1 oracle     oinstall   491617280 Mar 10 13:32 HMIMESV2_1_10879_617656652.arc&lt;BR /&gt;-rw-r-----   1 oracle     oinstall   498763776 Mar 10 15:00 HMIMESV2_1_10880_617656652.arc&lt;BR /&gt;-rw-r-----   1 oracle     oinstall   491716608 Mar 10 15:39 HMIMESV2_1_10881_617656652.arc&lt;BR /&gt;-rw-r-----   1 oracle     oinstall   491629568 Mar 10 17:29 HMIMESV2_1_10882_617656652.arc&lt;BR /&gt;-rw-r-----   1 oracle     oinstall   491626496 Mar 10 19:03 HMIMESV2_1_10883_617656652.arc&lt;BR /&gt;-rw-r-----   1 oracle     oinstall   491654144 Mar 10 21:30 HMIMESV2_1_10884_617656652.arc&lt;BR /&gt;-rw-r-----   1 oracle     oinstall   491621376 Mar 10 23:32 HMIMESV2_1_10885_617656652.arc&lt;BR /&gt;-rw-r-----   1 oracle     oinstall   491633664 Mar 11 01:10 HMIMESV2_1_10886_617656652.arc&lt;BR /&gt;-rw-r-----   1 oracle     oinstall   491626496 Mar 11 03:24 HMIMESV2_1_10887_617656652.arc&lt;BR /&gt;-rw-r-----   1 oracle     oinstall   491640832 Mar 11 05:35 HMIMESV2_1_10888_617656652.arc&lt;BR /&gt;-rw-r-----   1 oracle     oinstall   491660288 Mar 11 07:20 HMIMESV2_1_10889_617656652.arc&lt;BR /&gt;-rw-r-----   1 oracle     oinstall   491635712 Mar 11 09:14 HMIMESV2_1_10890_617656652.arc&lt;BR /&gt;-rw-r-----   1 oracle     oinstall   491619328 Mar 11 10:57 HMIMESV2_1_10891_617656652.arc&lt;BR /&gt;-rw-r-----   1 oracle     oinstall   491661312 Mar 11 13:16 HMIMESV2_1_10892_617656652.arc&lt;BR /&gt;-rw-r-----   1 oracle     oinstall   491625472 Mar 11 15:22 HMIMESV2_1_10893_617656652.arc&lt;BR /&gt;-rw-r-----   1 oracle     oinstall   495903744 Mar 11 17:04 HMIMESV2_1_10894_617656652.arc&lt;BR /&gt;-rw-r-----   1 oracle     oinstall   491626496 Mar 11 18:10 HMIMESV2_1_10895_617656652.arc&lt;BR /&gt;-rw-r-----   1 oracle     oinstall   491638784 Mar 11 20:14 HMIMESV2_1_10896_617656652.arc&lt;BR /&gt;-rw-r-----   1 oracle     oinstall   491684864 Mar 11 22:31 HMIMESV2_1_10897_617656652.arc&lt;BR /&gt;-rw-r-----   1 oracle     oinstall   492123136 Mar 12 00:16 HMIMESV2_1_10898_617656652.arc&lt;BR /&gt;&lt;BR /&gt;size when it reaches 70% , need to reduce to 40 -50% instead of deleting sinlge file i need group delete based on date...while using wild card mistakenly deleted all the files in that folder then restored from Tape to manage the situation...it was archive log folder so i managed little bit but to avoid these kind of behaviour  need to create specific user to delete the logs from particular dir on daily basis...&lt;BR /&gt;&lt;BR /&gt;&lt;TO check="" cron="" job=""&gt;&lt;BR /&gt;&lt;BR /&gt;IN solaris we can create role based access control like any specific user can access prmission to use particular command only ..like to know about the same in HP- UX...&lt;BR /&gt;&lt;BR /&gt;TX in advance.&lt;BR /&gt; Vadivel&lt;BR /&gt;&lt;BR /&gt;&lt;/TO&gt;&lt;/DURATION&gt;</description>
      <pubDate>Fri, 12 Mar 2010 12:46:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rbac-for-user/m-p/5229660#M468283</guid>
      <dc:creator>vadivel</dc:creator>
      <dc:date>2010-03-12T12:46:13Z</dc:date>
    </item>
    <item>
      <title>Re: RBAC FOR USER</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rbac-for-user/m-p/5229661#M468284</link>
      <description>Here is a script that would keep PASTRATE-1 files on some directory.  Deleting is performed in the order that the files were created- oldest files first.&lt;BR /&gt;&lt;BR /&gt;This should work as arc files always have the same size, so you can do the math to match your 40-50 percent.&lt;BR /&gt;&lt;BR /&gt;I would suggest to make a cron job for the user oracle and add some logging messages in /tmp&lt;BR /&gt;&lt;BR /&gt;----------------------------------------&lt;BR /&gt;PASTRATE=20&lt;BR /&gt;DIR=path_to_arc_files&lt;BR /&gt;&lt;BR /&gt;cd $DIR&lt;BR /&gt;&lt;BR /&gt;NR=`ls -t HMI*arc|wc -l`&lt;BR /&gt;ARCSET=($(ls -t HMI*arc))&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;while [ $NR -ge $PASTRATE ]; do&lt;BR /&gt;NR=$( expr $NR - 1 );&lt;BR /&gt;echo rm -rf `echo ${ARCSET[$NR]}`;&lt;BR /&gt;done&lt;BR /&gt;-----------------------------------------&lt;BR /&gt;&lt;BR /&gt;Horia.</description>
      <pubDate>Fri, 12 Mar 2010 13:03:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rbac-for-user/m-p/5229661#M468284</guid>
      <dc:creator>Horia Chirculescu</dc:creator>
      <dc:date>2010-03-12T13:03:00Z</dc:date>
    </item>
    <item>
      <title>Re: RBAC FOR USER</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rbac-for-user/m-p/5229662#M468285</link>
      <description>&amp;gt;echo rm -rf `echo ${ARCSET[$NR]}`;&lt;BR /&gt;&lt;BR /&gt;I have echoed the actual command for you to know what is happening (what will be the rm command). When happy with it, just remove the first echo (I suppose you know what I am talking about - I can not be pursued for loss of data. Use it at your risk.).&lt;BR /&gt;&lt;BR /&gt;Horia.</description>
      <pubDate>Fri, 12 Mar 2010 13:07:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rbac-for-user/m-p/5229662#M468285</guid>
      <dc:creator>Horia Chirculescu</dc:creator>
      <dc:date>2010-03-12T13:07:05Z</dc:date>
    </item>
    <item>
      <title>Re: RBAC FOR USER</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rbac-for-user/m-p/5229663#M468286</link>
      <description>&amp;gt; Horia ...Thanx a lot for your help &amp;amp; suggestion ..BYE.</description>
      <pubDate>Sat, 13 Mar 2010 12:11:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rbac-for-user/m-p/5229663#M468286</guid>
      <dc:creator>vadivel</dc:creator>
      <dc:date>2010-03-13T12:11:34Z</dc:date>
    </item>
  </channel>
</rss>

