<?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: diskinfo without root? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/diskinfo-without-root/m-p/2744449#M642771</link>
    <description>Good point.  I've got sudo, but I'm trying to dig into HP-UX specifically.  I may end up doing exactly as you suggest.  However, I'm running diskinfo in a script, with loops, many disks, and I've seen loops (calling sudo) create *huge* log files.  Maybe this is the only way (or just running it as root).</description>
    <pubDate>Thu, 13 Jun 2002 21:56:04 GMT</pubDate>
    <dc:creator>A. Daniel King_1</dc:creator>
    <dc:date>2002-06-13T21:56:04Z</dc:date>
    <item>
      <title>diskinfo without root?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/diskinfo-without-root/m-p/2744447#M642769</link>
      <description>Is there a good way to get at diskinfo-type data without being root?&lt;BR /&gt;&lt;BR /&gt;I can write a SUID wrapper, but I'd like to know if there are any utilities inherent to HP-UX 11.0 - without opening potential security holes.&lt;BR /&gt;&lt;BR /&gt;Thanks!</description>
      <pubDate>Thu, 13 Jun 2002 21:13:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/diskinfo-without-root/m-p/2744447#M642769</guid>
      <dc:creator>A. Daniel King_1</dc:creator>
      <dc:date>2002-06-13T21:13:09Z</dc:date>
    </item>
    <item>
      <title>Re: diskinfo without root?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/diskinfo-without-root/m-p/2744448#M642770</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Why not setup 'sudo'? It is really easy and everything can be logged for a user that has only access to specific tasks.&lt;BR /&gt;&lt;BR /&gt;You can get it here:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://hpux.connect.org.uk/hppd/hpux/Sysadmin/sudo-1.6.2b1/" target="_blank"&gt;http://hpux.connect.org.uk/hppd/hpux/Sysadmin/sudo-1.6.2b1/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;As an example for 'diskinfo' in the /etc/sudoers file could be:&lt;BR /&gt;&lt;BR /&gt;# Host alias specification&lt;BR /&gt;&lt;BR /&gt;# User alias specification&lt;BR /&gt;User_Alias      OPS = joe&lt;BR /&gt;&lt;BR /&gt;# Cmnd alias specification&lt;BR /&gt;Cmnd_Alias      OPS = /usr/sbin/diskinfo&lt;BR /&gt;&lt;BR /&gt;# User privilege specification&lt;BR /&gt;OPS    ALL=(ALL) ALL&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;~Michael~</description>
      <pubDate>Thu, 13 Jun 2002 21:51:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/diskinfo-without-root/m-p/2744448#M642770</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2002-06-13T21:51:32Z</dc:date>
    </item>
    <item>
      <title>Re: diskinfo without root?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/diskinfo-without-root/m-p/2744449#M642771</link>
      <description>Good point.  I've got sudo, but I'm trying to dig into HP-UX specifically.  I may end up doing exactly as you suggest.  However, I'm running diskinfo in a script, with loops, many disks, and I've seen loops (calling sudo) create *huge* log files.  Maybe this is the only way (or just running it as root).</description>
      <pubDate>Thu, 13 Jun 2002 21:56:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/diskinfo-without-root/m-p/2744449#M642771</guid>
      <dc:creator>A. Daniel King_1</dc:creator>
      <dc:date>2002-06-13T21:56:04Z</dc:date>
    </item>
    <item>
      <title>Re: diskinfo without root?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/diskinfo-without-root/m-p/2744450#M642772</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;Here's a viewpoint only.  If you''re dealing with 'diskinfo' and the LVM configuration at large, you probably need/want to be root in the first place.  After all, as an administrator do you really want to "sub-out" these kinds of critical tasks?&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 13 Jun 2002 22:01:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/diskinfo-without-root/m-p/2744450#M642772</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2002-06-13T22:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: diskinfo without root?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/diskinfo-without-root/m-p/2744451#M642773</link>
      <description>There is a "roundabout" way to get the "diskinfo type" output as ordinary user by using cstm. I've tried it and it works. Here goes (you may/may-not want to use this way)..&lt;BR /&gt;Assuming c2t6d0 ..&lt;BR /&gt;$ /etc/lssf /dev/rdsk/c2t6d0|awk '{print $15}'&lt;BR /&gt;10/0/15/0.6.0&lt;BR /&gt;Take this path and pass it to cstm..&lt;BR /&gt;$ echo "sel path 10/0/15/0.6.0;info;wait;infolog&lt;BR /&gt;&amp;gt; view&lt;BR /&gt;&amp;gt; done&lt;BR /&gt;&amp;gt; " | /usr/sbin/cstm &amp;gt; disk-info&lt;BR /&gt;Now if you look a the file it has the info you that "kindda" similar to diskinfo output. You just need to extract what you need from the file.&lt;BR /&gt;</description>
      <pubDate>Fri, 14 Jun 2002 01:25:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/diskinfo-without-root/m-p/2744451#M642773</guid>
      <dc:creator>S.K. Chan</dc:creator>
      <dc:date>2002-06-14T01:25:29Z</dc:date>
    </item>
    <item>
      <title>Re: diskinfo without root?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/diskinfo-without-root/m-p/2744452#M642774</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;If you want it to be specifically HP-UX, try restricted sam&lt;BR /&gt;&lt;BR /&gt;# /usr/sbin/sam -r&lt;BR /&gt;&lt;BR /&gt;You can put diskinfo in a script with $1 parameter as the disk. Then add the script to sam and subsequently assign user privileges and allowable access to the script in sam.&lt;BR /&gt;&lt;BR /&gt;Your user just needs to run (if /usr/sbin already in PATH):&lt;BR /&gt;&lt;BR /&gt;# sam&lt;BR /&gt;&lt;BR /&gt;Otherwise:&lt;BR /&gt;&lt;BR /&gt;# /usr/sbin/sam &lt;BR /&gt;&lt;BR /&gt;man 1m sam for more information.&lt;BR /&gt;&lt;BR /&gt;Hope this helps. Regards.&lt;BR /&gt;&lt;BR /&gt;Steven Sim Kok Leong</description>
      <pubDate>Fri, 14 Jun 2002 01:41:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/diskinfo-without-root/m-p/2744452#M642774</guid>
      <dc:creator>Steven Sim Kok Leong</dc:creator>
      <dc:date>2002-06-14T01:41:31Z</dc:date>
    </item>
    <item>
      <title>Re: diskinfo without root?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/diskinfo-without-root/m-p/2744453#M642775</link>
      <description>I have the basic philosophy of 'if it can be done without root, do it without root.'&lt;BR /&gt;&lt;BR /&gt;Especially when it comes to my own fat fingers.&lt;BR /&gt;&lt;BR /&gt;Thanks for the replies.  cstm looks like something I need to learn.</description>
      <pubDate>Fri, 14 Jun 2002 14:21:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/diskinfo-without-root/m-p/2744453#M642775</guid>
      <dc:creator>A. Daniel King_1</dc:creator>
      <dc:date>2002-06-14T14:21:01Z</dc:date>
    </item>
  </channel>
</rss>

