<?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: Restricing sudo users from 'su -' in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/restricing-sudo-users-from-su/m-p/2708137#M59808</link>
    <description>Thanks guys!</description>
    <pubDate>Mon, 22 Apr 2002 14:20:42 GMT</pubDate>
    <dc:creator>TD Clark</dc:creator>
    <dc:date>2002-04-22T14:20:42Z</dc:date>
    <item>
      <title>Restricing sudo users from 'su -'</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restricing-sudo-users-from-su/m-p/2708134#M59805</link>
      <description>Hi all...  I couldn't find any information on this in the man pages so I thought I'd try the forum.  We'd like to give certain users access to every command (i.e. ALL=NOPASSWD: ALL), but we want to restrict them from logging in as root from sudo (i.e. sudo su -).  Is this possible?&lt;BR /&gt;&lt;BR /&gt;Thanks a bunch!</description>
      <pubDate>Mon, 22 Apr 2002 13:46:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restricing-sudo-users-from-su/m-p/2708134#M59805</guid>
      <dc:creator>TD Clark</dc:creator>
      <dc:date>2002-04-22T13:46:14Z</dc:date>
    </item>
    <item>
      <title>Re: Restricing sudo users from 'su -'</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restricing-sudo-users-from-su/m-p/2708135#M59806</link>
      <description>Hi Todd&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;There is a simple way to do that ; here is a script we use for the user not to login as root , this can be expanded and used to restrict selective users too. These lineas are to be inserted in /etc/profile .&lt;BR /&gt;&lt;BR /&gt;loginid=`who am i | awk '{print $1}'`&lt;BR /&gt;&lt;BR /&gt;echo $loginid&lt;BR /&gt;if [ $loginid = root ]&lt;BR /&gt;then&lt;BR /&gt;exit&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;Manoj Srivastava&lt;BR /&gt;</description>
      <pubDate>Mon, 22 Apr 2002 13:56:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restricing-sudo-users-from-su/m-p/2708135#M59806</guid>
      <dc:creator>MANOJ SRIVASTAVA</dc:creator>
      <dc:date>2002-04-22T13:56:33Z</dc:date>
    </item>
    <item>
      <title>Re: Restricing sudo users from 'su -'</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restricing-sudo-users-from-su/m-p/2708136#M59807</link>
      <description>This has good examples on how to configure your sudoers file to achieve what you want ..&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.courtesan.com/sudo/man/sudoers.html#examples" target="_blank"&gt;http://www.courtesan.com/sudo/man/sudoers.html#examples&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;From the manual .. (some examples ..)&lt;BR /&gt;jen   ALL, !SERVERS = ALL&lt;BR /&gt;The user jen may run any command on any machine except for those in host SERVERS&lt;BR /&gt;&lt;BR /&gt;jill  SERVERS = /usr/bin/, !SU, !SHELLS&lt;BR /&gt;For any machine in the SERVERS Host_Alias, jill may run any commands in the directory /usr/bin/ except for those commands belonging to the SU and SHELLS Cmnd_Aliases.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;</description>
      <pubDate>Mon, 22 Apr 2002 13:59:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restricing-sudo-users-from-su/m-p/2708136#M59807</guid>
      <dc:creator>S.K. Chan</dc:creator>
      <dc:date>2002-04-22T13:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: Restricing sudo users from 'su -'</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restricing-sudo-users-from-su/m-p/2708137#M59808</link>
      <description>Thanks guys!</description>
      <pubDate>Mon, 22 Apr 2002 14:20:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restricing-sudo-users-from-su/m-p/2708137#M59808</guid>
      <dc:creator>TD Clark</dc:creator>
      <dc:date>2002-04-22T14:20:42Z</dc:date>
    </item>
  </channel>
</rss>

