<?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: sudoers and using #uid in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/sudoers-and-using-uid/m-p/2763235#M72913</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Have you considered using Restricted SAM instead of sudo to provide escalated privileges but secure access? It also allows you to a menu-like system for ease of use.&lt;BR /&gt;&lt;BR /&gt;#!/usr/sbin/sam&lt;BR /&gt;&lt;BR /&gt;Hope this helps. Regards.&lt;BR /&gt;&lt;BR /&gt;Steven Sim Kok Leong</description>
    <pubDate>Sun, 14 Jul 2002 22:37:17 GMT</pubDate>
    <dc:creator>Steven Sim Kok Leong</dc:creator>
    <dc:date>2002-07-14T22:37:17Z</dc:date>
    <item>
      <title>sudoers and using #uid</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudoers-and-using-uid/m-p/2763232#M72910</link>
      <description>I have tried to get sudo to use uids instead of usernames.&lt;BR /&gt;&lt;BR /&gt;I cant use the login names as they in uppercase.&lt;BR /&gt;&lt;BR /&gt;However when I try to use the syntax&lt;BR /&gt;&lt;BR /&gt;User_Alias MYTEST = #5000&lt;BR /&gt;it will not work.&lt;BR /&gt;&lt;BR /&gt;However User_Alias MYTEST = abcd &lt;BR /&gt;does work.&lt;BR /&gt;&lt;BR /&gt;It gives me syntax errors when I try #5000&lt;BR /&gt;&lt;BR /&gt;Any Suggestions?</description>
      <pubDate>Sat, 13 Jul 2002 16:40:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudoers-and-using-uid/m-p/2763232#M72910</guid>
      <dc:creator>Unix Administrator_5</dc:creator>
      <dc:date>2002-07-13T16:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: sudoers and using #uid</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudoers-and-using-uid/m-p/2763233#M72911</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;According to the sudoers man page at &lt;A href="http://www.courtesan.com/sudo/man/sudoers.html#aliases," target="_blank"&gt;http://www.courtesan.com/sudo/man/sudoers.html#aliases,&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;"A User_List is made up of one or more usernames, uids (prefixed with '#'), System groups (prefixed with '%'), netgroups (prefixed with '+') and other aliases." &lt;BR /&gt;&lt;BR /&gt;However, also on the same man page,&lt;BR /&gt;&lt;BR /&gt;User_List&lt;BR /&gt; User ::= '!'* username |&lt;BR /&gt;          '!'* '%'group |&lt;BR /&gt;          '!'* '+'netgroup |&lt;BR /&gt;          '!'* User_Alias&lt;BR /&gt;&lt;BR /&gt;'#'uid is not found in the expression. This is contradictory to the definition of a User_List above.&lt;BR /&gt;&lt;BR /&gt;Following that, it is stated for the definition of the Runas_Alias that &lt;BR /&gt;&lt;BR /&gt;"A Runas_List is similar to a User_List except that it can also contain uids (prefixed with '#') and instead of User_Aliases it can contain Runas_Aliases."&lt;BR /&gt;&lt;BR /&gt;This would imply that the User_List in fact does not support '#'uid. Thus, I believe there is a typo on the man page with regards to the User_List definition, but that the User_List expression given is correct.&lt;BR /&gt;&lt;BR /&gt;As such, try using Runas_Alias instead i.e.&lt;BR /&gt;&lt;BR /&gt;Run_Alias MYTEST = #5000&lt;BR /&gt;&lt;BR /&gt;Hope this helps. Regards.&lt;BR /&gt;&lt;BR /&gt;Steven Sim Kok Leong</description>
      <pubDate>Sat, 13 Jul 2002 17:53:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudoers-and-using-uid/m-p/2763233#M72911</guid>
      <dc:creator>Steven Sim Kok Leong</dc:creator>
      <dc:date>2002-07-13T17:53:03Z</dc:date>
    </item>
    <item>
      <title>Re: sudoers and using #uid</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudoers-and-using-uid/m-p/2763234#M72912</link>
      <description>The problem is that the user that runs the command has a username that is all caps which is causing the problem.&lt;BR /&gt;&lt;BR /&gt;I dont have a way to specify the user invoking the command.</description>
      <pubDate>Sun, 14 Jul 2002 21:44:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudoers-and-using-uid/m-p/2763234#M72912</guid>
      <dc:creator>Unix Administrator_5</dc:creator>
      <dc:date>2002-07-14T21:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: sudoers and using #uid</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudoers-and-using-uid/m-p/2763235#M72913</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Have you considered using Restricted SAM instead of sudo to provide escalated privileges but secure access? It also allows you to a menu-like system for ease of use.&lt;BR /&gt;&lt;BR /&gt;#!/usr/sbin/sam&lt;BR /&gt;&lt;BR /&gt;Hope this helps. Regards.&lt;BR /&gt;&lt;BR /&gt;Steven Sim Kok Leong</description>
      <pubDate>Sun, 14 Jul 2002 22:37:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudoers-and-using-uid/m-p/2763235#M72913</guid>
      <dc:creator>Steven Sim Kok Leong</dc:creator>
      <dc:date>2002-07-14T22:37:17Z</dc:date>
    </item>
  </channel>
</rss>

