<?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: User privileges in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/user-privileges/m-p/4291652#M336919</link>
    <description>Haimi,&lt;BR /&gt;   SUDO is your best (and safest) bet here. I use sudo for pretty much all of my users who need to do SPECIFIC tasks. If you need something more general SUDO may not be the way to go, but for specific commands and access, it is hard to beat SUDO.</description>
    <pubDate>Wed, 22 Oct 2008 11:50:01 GMT</pubDate>
    <dc:creator>Adam W.</dc:creator>
    <dc:date>2008-10-22T11:50:01Z</dc:date>
    <item>
      <title>User privileges</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-privileges/m-p/4291646#M336913</link>
      <description>Hello Geeks,&lt;BR /&gt;&lt;BR /&gt;How can I allow normal user to execute System Admin commands like 'swlist' or 'diskinfo'?&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Tue, 21 Oct 2008 23:26:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-privileges/m-p/4291646#M336913</guid>
      <dc:creator>haimi</dc:creator>
      <dc:date>2008-10-21T23:26:08Z</dc:date>
    </item>
    <item>
      <title>Re: User privileges</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-privileges/m-p/4291647#M336914</link>
      <description>you can use SUID bit to swlist or diskinfo command&lt;BR /&gt;&lt;BR /&gt;or you can use SUDO.</description>
      <pubDate>Wed, 22 Oct 2008 02:08:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-privileges/m-p/4291647#M336914</guid>
      <dc:creator>Jeeshan</dc:creator>
      <dc:date>2008-10-22T02:08:16Z</dc:date>
    </item>
    <item>
      <title>Re: User privileges</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-privileges/m-p/4291648#M336915</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;To configure sudo you need to take this steps.&lt;BR /&gt;/usr/sbin/visudo it will open the file /etc/sudoers&lt;BR /&gt;put these entry into it&lt;BR /&gt;%groupname servername=/usr/sbin/diskinfo,/usr/sbin/swlist&lt;BR /&gt;or&lt;BR /&gt;username servername=/usr/sbin/diskinfo,/usr/sbin/swlist&lt;BR /&gt;&lt;BR /&gt;Save the file&lt;BR /&gt;&lt;BR /&gt;switch to user username&lt;BR /&gt;run&lt;BR /&gt;sudo /usr/sbin/diskinfo&lt;BR /&gt;it will ask passwd of the user&lt;BR /&gt;&lt;BR /&gt;Suraj</description>
      <pubDate>Wed, 22 Oct 2008 03:28:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-privileges/m-p/4291648#M336915</guid>
      <dc:creator>Suraj K Sankari</dc:creator>
      <dc:date>2008-10-22T03:28:15Z</dc:date>
    </item>
    <item>
      <title>Re: User privileges</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-privileges/m-p/4291649#M336916</link>
      <description>&amp;gt;System Admin commands like 'swlist'&lt;BR /&gt;&lt;BR /&gt;Normally swlist doesn't need root.  You can use  swacl to restrict it.</description>
      <pubDate>Wed, 22 Oct 2008 07:06:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-privileges/m-p/4291649#M336916</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-10-22T07:06:07Z</dc:date>
    </item>
    <item>
      <title>Re: User privileges</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-privileges/m-p/4291650#M336917</link>
      <description>Compile this small progam:&lt;BR /&gt;#include &lt;STDIO.H&gt;&lt;BR /&gt;#include &lt;UNISTD.H&gt;&lt;BR /&gt;&lt;BR /&gt;int main (argc, argv)&lt;BR /&gt;int argc;&lt;BR /&gt;char **argv;&lt;BR /&gt;{&lt;BR /&gt; if (setuid (0) == 0)&lt;BR /&gt; {&lt;BR /&gt;  return (system ("yourprogram"));&lt;BR /&gt; }&lt;BR /&gt; else&lt;BR /&gt; {&lt;BR /&gt;  perror ("setuid");&lt;BR /&gt;  return (1);&lt;BR /&gt; }&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;Make changes yourprogram to say diskinfo or swlist or some other. After the compile&lt;BR /&gt;&lt;BR /&gt;# cc program.c&lt;BR /&gt;&lt;BR /&gt;Change the permissions:&lt;BR /&gt;&lt;BR /&gt;# chmod 4755 a.out&lt;BR /&gt;&lt;BR /&gt;This program is a security risk as anything else that will compromise the execution of privileged programs.&lt;BR /&gt;But then so is sudo :-)&lt;/UNISTD.H&gt;&lt;/STDIO.H&gt;</description>
      <pubDate>Wed, 22 Oct 2008 07:31:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-privileges/m-p/4291650#M336917</guid>
      <dc:creator>Jannik</dc:creator>
      <dc:date>2008-10-22T07:31:53Z</dc:date>
    </item>
    <item>
      <title>Re: User privileges</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-privileges/m-p/4291651#M336918</link>
      <description>Some of my below discussions should be of great help to you&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums12.itrc.hp.com/service/forums/questionanswer.do?threadId=1272931" target="_blank"&gt;http://forums12.itrc.hp.com/service/forums/questionanswer.do?threadId=1272931&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums12.itrc.hp.com/service/forums/questionanswer.do?threadId=1275696" target="_blank"&gt;http://forums12.itrc.hp.com/service/forums/questionanswer.do?threadId=1275696&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums12.itrc.hp.com/service/forums/questionanswer.do?threadId=1272698" target="_blank"&gt;http://forums12.itrc.hp.com/service/forums/questionanswer.do?threadId=1272698&lt;/A&gt;</description>
      <pubDate>Wed, 22 Oct 2008 11:43:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-privileges/m-p/4291651#M336918</guid>
      <dc:creator>Grayh</dc:creator>
      <dc:date>2008-10-22T11:43:16Z</dc:date>
    </item>
    <item>
      <title>Re: User privileges</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-privileges/m-p/4291652#M336919</link>
      <description>Haimi,&lt;BR /&gt;   SUDO is your best (and safest) bet here. I use sudo for pretty much all of my users who need to do SPECIFIC tasks. If you need something more general SUDO may not be the way to go, but for specific commands and access, it is hard to beat SUDO.</description>
      <pubDate>Wed, 22 Oct 2008 11:50:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-privileges/m-p/4291652#M336919</guid>
      <dc:creator>Adam W.</dc:creator>
      <dc:date>2008-10-22T11:50:01Z</dc:date>
    </item>
  </channel>
</rss>

