<?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 file in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/sudoers-file/m-p/4742207#M387372</link>
    <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;When I type this:&lt;BR /&gt;sudo -u wasdevadmin -i&lt;BR /&gt;it works without prompting me for password but it is a long command. I want to be able to type&lt;BR /&gt;su - wasdevadmin and for it to call up &lt;BR /&gt;sudo -u wasdevadmin -i&lt;BR /&gt;&lt;BR /&gt;Presently, I have this configuration:&lt;BR /&gt;&lt;BR /&gt;#cd /bin&lt;BR /&gt;# ls -l su*&lt;BR /&gt;root root    45 Feb 16 17:17 su&lt;BR /&gt;root root 28336 Oct 30  2008 su.original&lt;BR /&gt;&lt;BR /&gt;# cat su&lt;BR /&gt;sudo su.original $@&lt;BR /&gt;&lt;BR /&gt;So presently when I type su -, it call up sudo su.original, which works fine for my switching to root access.&lt;BR /&gt;How can I also have:&lt;BR /&gt;"sudo -u wasdevadmin -i" equal to "su - wasdevadmin"&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 17 Feb 2011 10:37:51 GMT</pubDate>
    <dc:creator>ofure</dc:creator>
    <dc:date>2011-02-17T10:37:51Z</dc:date>
    <item>
      <title>Sudoers file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudoers-file/m-p/4742195#M387360</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Please just a quick one. Does any one know how I can restrict users from being able to switch to root in sudoers file?? &lt;BR /&gt;Presently the users are defined in the sudoers file and could switch to another user without password but I do not want them to be able to switch to root.</description>
      <pubDate>Fri, 21 Jan 2011 15:20:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudoers-file/m-p/4742195#M387360</guid>
      <dc:creator>ozas</dc:creator>
      <dc:date>2011-01-21T15:20:02Z</dc:date>
    </item>
    <item>
      <title>Re: Sudoers file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudoers-file/m-p/4742196#M387361</link>
      <description>Use a command alias like this:&lt;BR /&gt;&lt;BR /&gt;Cmnd_Alias      SU=!/usr/bin/su â  , !/usr/bin/su *root*&lt;BR /&gt;&lt;BR /&gt;Add this to each user and they should not be able to su to root.</description>
      <pubDate>Fri, 21 Jan 2011 15:35:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudoers-file/m-p/4742196#M387361</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2011-01-21T15:35:32Z</dc:date>
    </item>
    <item>
      <title>Re: Sudoers file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudoers-file/m-p/4742197#M387362</link>
      <description>I have tried that before it did not work.&lt;BR /&gt;See below my sudoers file, maybe I need to change anything.&lt;BR /&gt;&lt;BR /&gt;This is the sudoers file:&lt;BR /&gt;&lt;BR /&gt;# User_Alias &lt;BR /&gt;&lt;BR /&gt;User_Alias      WAS = g343ahe,m017ahe,y073ahe,y072ahe,h234ahe,r019ahe,r032ahe&lt;BR /&gt;&lt;BR /&gt;User_Alias      SUPPORT = d060ahe,h070ahe,s029ahe&lt;BR /&gt;&lt;BR /&gt;#User privilege specification&lt;BR /&gt;root    ALL=(ALL) ALL&lt;BR /&gt;SUPPORT ALL=(ALL) ALL&lt;BR /&gt;SUPPORT ALL=(ALL)       NOPASSWD: ALL&lt;BR /&gt;WAS   ALL=(ALL)       NOPASSWD:  ALL&lt;BR /&gt;WAS     ALL=/usr/bin/su - wasdevadmin,/bin/su - wasdevadmin&lt;BR /&gt;&lt;BR /&gt;What I want is that the users in WAS should not be ble to switch to root,&lt;BR /&gt;but they should be able to switch to user "wasdevadmin". &lt;BR /&gt;Only users in SUPPORT should be able to switch to root.</description>
      <pubDate>Fri, 21 Jan 2011 16:01:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudoers-file/m-p/4742197#M387362</guid>
      <dc:creator>ozas</dc:creator>
      <dc:date>2011-01-21T16:01:41Z</dc:date>
    </item>
    <item>
      <title>Re: Sudoers file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudoers-file/m-p/4742198#M387363</link>
      <description>&amp;gt; WAS ALL=(ALL) NOPASSWD: ALL&lt;BR /&gt;&amp;gt; WAS ALL=/usr/bin/su - wasdevadmin,/bin/su - wasdevadmin&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The first line is saying to allow the WAS users to run any command on any host as any user. The second line is redundantly saying to allow WAS users to run the su commands specified on all hosts as root. You don't have anything restricting them from running su to root as a previous post stated to do.</description>
      <pubDate>Fri, 21 Jan 2011 16:14:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudoers-file/m-p/4742198#M387363</guid>
      <dc:creator>Jeff_Traigle</dc:creator>
      <dc:date>2011-01-21T16:14:48Z</dc:date>
    </item>
    <item>
      <title>Re: Sudoers file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudoers-file/m-p/4742199#M387364</link>
      <description>What about the following:&lt;BR /&gt;&lt;BR /&gt;WAS ALL=!/usr/bin/su -, !/usr/bin/su *root*, /usr/bin/su - wasdevadmin,/bin/su - wasdevadmin&lt;BR /&gt;&lt;BR /&gt;You also have 2 lines for WAS.  I don't remember which will take priority, but the 2 may be conflicting.&lt;BR /&gt;&lt;BR /&gt;What happens if you comment out the first WAS line?</description>
      <pubDate>Fri, 21 Jan 2011 16:15:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudoers-file/m-p/4742199#M387364</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2011-01-21T16:15:34Z</dc:date>
    </item>
    <item>
      <title>Re: Sudoers file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudoers-file/m-p/4742200#M387365</link>
      <description>Thanks for your prompt reply. This has partly resolved the issue. At least users in WAS cannot su to root again but now the WAS cannot switch to wasdevadmin user.&lt;BR /&gt;I want a situation where they can switch to wasdevadmin without been prompted for a password.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 21 Jan 2011 17:18:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudoers-file/m-p/4742200#M387365</guid>
      <dc:creator>ofure</dc:creator>
      <dc:date>2011-01-21T17:18:22Z</dc:date>
    </item>
    <item>
      <title>Re: Sudoers file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudoers-file/m-p/4742201#M387366</link>
      <description>What does your sudoers file look like now?</description>
      <pubDate>Fri, 21 Jan 2011 17:52:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudoers-file/m-p/4742201#M387366</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2011-01-21T17:52:13Z</dc:date>
    </item>
    <item>
      <title>Re: Sudoers file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudoers-file/m-p/4742202#M387367</link>
      <description>&amp;gt; I want a situation where they [= the users in sudo group WAS] can switch to wasdevadmin without been prompted for a password.&lt;BR /&gt;&lt;BR /&gt;You need this line in your sudoers file:&lt;BR /&gt;&lt;BR /&gt;WAS ALL=(wasdevadmin) NOPASSWD: ALL&lt;BR /&gt;&lt;BR /&gt;Then tell your users to use the sudo command like this:&lt;BR /&gt;&lt;BR /&gt;sudo -H -u wasdevadmin -i&lt;BR /&gt;(to run a shell as wasdevadmin; equivalent to "sudo su - wasdevadmin")&lt;BR /&gt;&lt;BR /&gt;...or like this: &lt;BR /&gt;&lt;BR /&gt;sudo -H -u wasdevadmin &lt;COMMAND&gt;&lt;BR /&gt;(to run &lt;COMMAND&gt; as wasdevadmin and then continue the session as themselves)&lt;BR /&gt;&lt;BR /&gt;MK&lt;/COMMAND&gt;&lt;/COMMAND&gt;</description>
      <pubDate>Fri, 21 Jan 2011 21:06:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudoers-file/m-p/4742202#M387367</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2011-01-21T21:06:34Z</dc:date>
    </item>
    <item>
      <title>Re: Sudoers file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudoers-file/m-p/4742203#M387368</link>
      <description>Below is how my sudoers file now look:&lt;BR /&gt;&lt;BR /&gt;User_Alias      WAS = g343ahe,m017ahe,y073ahe,y072ahe,h234ahe,r019ahe&lt;BR /&gt;&lt;BR /&gt;User_Alias      SUPPORT = d060ahe,h070ahe,s029ahe&lt;BR /&gt;#User privilege specification&lt;BR /&gt;root    ALL=(ALL) ALL&lt;BR /&gt;SUPPORT ALL=(ALL) ALL&lt;BR /&gt;SUPPORT ALL=(ALL)       NOPASSWD: ALL&lt;BR /&gt;WAS ALL=!/usr/bin/su -, !/usr/bin/su *root*, /usr/bin/su - wasdevadmin,/bin/su - wasdevadmin&lt;BR /&gt;WAS     ALL=(wasdevadmin)       NOPASSWD: ALL&lt;BR /&gt;&lt;BR /&gt;But the users in WAS still cannot switch to wasdevadmin account. I want the users in WAS to be able to do this without prompting for password. Thanks.&lt;BR /&gt;Regards.</description>
      <pubDate>Sat, 22 Jan 2011 11:41:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudoers-file/m-p/4742203#M387368</guid>
      <dc:creator>ofure</dc:creator>
      <dc:date>2011-01-22T11:41:47Z</dc:date>
    </item>
    <item>
      <title>Re: Sudoers file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudoers-file/m-p/4742204#M387369</link>
      <description>Remove the user name you dont wantthem to do sudo to root in sudoers file&lt;BR /&gt;&lt;BR /&gt;if you have to grant specfic access you can grant in sudoers file for required users. by defining user alis, command alias and host alias for those users&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;INH</description>
      <pubDate>Sun, 23 Jan 2011 04:54:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudoers-file/m-p/4742204#M387369</guid>
      <dc:creator>INH</dc:creator>
      <dc:date>2011-01-23T04:54:27Z</dc:date>
    </item>
    <item>
      <title>Re: Sudoers file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudoers-file/m-p/4742205#M387370</link>
      <description>The challenge I have now is that I want the users in WAS to be able to switch to the account wasdevadmin without prompting for password.&lt;BR /&gt;I have tried this below but did not work.&lt;BR /&gt;&lt;BR /&gt;WAS ALL=(wasdevadmin) NOPASSWD: ALL&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;</description>
      <pubDate>Mon, 24 Jan 2011 11:13:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudoers-file/m-p/4742205#M387370</guid>
      <dc:creator>ofure</dc:creator>
      <dc:date>2011-01-24T11:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: Sudoers file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudoers-file/m-p/4742206#M387371</link>
      <description>&amp;gt; WAS ALL=(wasdevadmin) NOPASSWD: ALL&lt;BR /&gt;&lt;BR /&gt;When you use this sudoers line, your user *must* use "sudo -u wasdevadmin -i" or similar sudo command to become wasdevadmin. The "-H" option is optional, but probably in line with the user's expectations.&lt;BR /&gt;&lt;BR /&gt;With this sudoers line, a command like "sudo su wasdevadmin" or "sudo su - wasdevadmin" will *not* work. This is because these commands first use sudo to become root, then use su to become the target user. Sudo can do it in one step - but it requires that the user uses the correct syntax.&lt;BR /&gt;&lt;BR /&gt;MK</description>
      <pubDate>Mon, 24 Jan 2011 15:49:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudoers-file/m-p/4742206#M387371</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2011-01-24T15:49:55Z</dc:date>
    </item>
    <item>
      <title>Re: Sudoers file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudoers-file/m-p/4742207#M387372</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;When I type this:&lt;BR /&gt;sudo -u wasdevadmin -i&lt;BR /&gt;it works without prompting me for password but it is a long command. I want to be able to type&lt;BR /&gt;su - wasdevadmin and for it to call up &lt;BR /&gt;sudo -u wasdevadmin -i&lt;BR /&gt;&lt;BR /&gt;Presently, I have this configuration:&lt;BR /&gt;&lt;BR /&gt;#cd /bin&lt;BR /&gt;# ls -l su*&lt;BR /&gt;root root    45 Feb 16 17:17 su&lt;BR /&gt;root root 28336 Oct 30  2008 su.original&lt;BR /&gt;&lt;BR /&gt;# cat su&lt;BR /&gt;sudo su.original $@&lt;BR /&gt;&lt;BR /&gt;So presently when I type su -, it call up sudo su.original, which works fine for my switching to root access.&lt;BR /&gt;How can I also have:&lt;BR /&gt;"sudo -u wasdevadmin -i" equal to "su - wasdevadmin"&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 17 Feb 2011 10:37:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudoers-file/m-p/4742207#M387372</guid>
      <dc:creator>ofure</dc:creator>
      <dc:date>2011-02-17T10:37:51Z</dc:date>
    </item>
    <item>
      <title>Re: Sudoers file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudoers-file/m-p/4742208#M387373</link>
      <description>I have resolved this by creating an alias for wasdevadmin.&lt;BR /&gt;&lt;BR /&gt;Thanks all.</description>
      <pubDate>Thu, 17 Feb 2011 12:24:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudoers-file/m-p/4742208#M387373</guid>
      <dc:creator>ofure</dc:creator>
      <dc:date>2011-02-17T12:24:30Z</dc:date>
    </item>
  </channel>
</rss>

