<?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: sudo password in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-password/m-p/4962042#M415893</link>
    <description>I have user nopassword option.</description>
    <pubDate>Thu, 23 Feb 2006 00:51:08 GMT</pubDate>
    <dc:creator>Khashru</dc:creator>
    <dc:date>2006-02-23T00:51:08Z</dc:date>
    <item>
      <title>sudo password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-password/m-p/4962036#M415887</link>
      <description>i have installed sudo in a hpux 11i trusted system.i configured so that my helpdesk user can change password. while they go for changing password most of the time it is asking for the password, not all time. how i can disable it. what is the policy for askinf password.</description>
      <pubDate>Wed, 22 Feb 2006 23:07:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-password/m-p/4962036#M415887</guid>
      <dc:creator>Khashru</dc:creator>
      <dc:date>2006-02-22T23:07:30Z</dc:date>
    </item>
    <item>
      <title>Re: sudo password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-password/m-p/4962037#M415888</link>
      <description>hi khashru,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;can you post the sudoers file?&lt;BR /&gt;&lt;BR /&gt;sudo can be configured to behave in just this fashion. There are options to require passwords sometimes and to not require passwords at other times.&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;yogeeraj</description>
      <pubDate>Wed, 22 Feb 2006 23:31:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-password/m-p/4962037#M415888</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2006-02-22T23:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: sudo password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-password/m-p/4962038#M415889</link>
      <description>Hi Khashru , &lt;BR /&gt;&lt;BR /&gt;      try using the key word "NOPASSWD" in you /etc/sudoers file. If you paste ur sudoers file in this thread, we could be of more help ,as to where we need to tag that Keyword.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Senthil</description>
      <pubDate>Wed, 22 Feb 2006 23:40:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-password/m-p/4962038#M415889</guid>
      <dc:creator>Senthil Kumar .A_1</dc:creator>
      <dc:date>2006-02-22T23:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: sudo password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-password/m-p/4962039#M415890</link>
      <description>Hi Khashru, &lt;BR /&gt;&lt;BR /&gt;This link should help you..&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.afp548.com/article.php?story=20051025103428232" target="_blank"&gt;http://www.afp548.com/article.php?story=20051025103428232&lt;/A&gt;&lt;BR /&gt;[Essential Sudoers]&lt;BR /&gt;&lt;BR /&gt;-Arun</description>
      <pubDate>Wed, 22 Feb 2006 23:48:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-password/m-p/4962039#M415890</guid>
      <dc:creator>Arunvijai_4</dc:creator>
      <dc:date>2006-02-22T23:48:31Z</dc:date>
    </item>
    <item>
      <title>Re: sudo password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-password/m-p/4962040#M415891</link>
      <description>Hi Khashru,&lt;BR /&gt;&lt;BR /&gt;When a user runs sudo, sudo creates a timestamp file for that user with an expiry of 5 minutes.  If the user's timestamp file is younger than 5 minutes (default value), sudo will allow that user to run the command without a password.  If the timesatmp is older than 5 minutes, the user has to supply their password.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If you want the helpdesk user to only ever run "sudo passwd" without being prompted for their password, you will need to edit the "sudoers" file.  &lt;BR /&gt;&lt;BR /&gt;You will need something like the following entries:&lt;BR /&gt;&lt;BR /&gt;# Define a user group&lt;BR /&gt;User_Alias HELPDESK = username1,username2&lt;BR /&gt;# Define a command group&lt;BR /&gt;Cmnd_Alias PASSWD = /usr/bin/passwd &lt;BR /&gt;# Define a host group&lt;BR /&gt;Host_Alias PROD = hpbox1, hpbox2&lt;BR /&gt;# Define what command group(s) a user group may run, on which hosts and how&lt;BR /&gt;# Note that passwd root is denied.&lt;BR /&gt;HELPDESK   PROD = NOPASSWD: PASSWD !/usr/bin/passwd root&lt;BR /&gt;&lt;BR /&gt;In this example, username1 and username2 may run the passwd command for any user except root on hosts hpbox1, and hpbox2.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;You can also reset the value of the timestamp timeoout in the sudoers file.  Setting it to 0 will force sudo to ALWAYS prompt for a passwd.&lt;BR /&gt;&lt;BR /&gt;eg:&lt;BR /&gt;timestamp_timeout = 0&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Ensure that you only ever edit the sudoers file via the visudo utility, as it performs a syntax check on the sudoers file after you save your changes, but before writing the file to its location in the filesystem.&lt;BR /&gt;&lt;BR /&gt;DISCLAIMER &lt;BR /&gt;==========&lt;BR /&gt;Because sudo is one of those utilities that can bypass standard security measures, it is not wise to go making changes to the default behaviour unless you really understand what you are doing.  I would strongly advise you to read the sudo(1m), sudoers(4) and visudo(1m) manpage carefully before turning off password prompting for your helpdesk staff.</description>
      <pubDate>Thu, 23 Feb 2006 00:06:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-password/m-p/4962040#M415891</guid>
      <dc:creator>blubrick</dc:creator>
      <dc:date>2006-02-23T00:06:47Z</dc:date>
    </item>
    <item>
      <title>Re: sudo password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-password/m-p/4962041#M415892</link>
      <description>hi again,&lt;BR /&gt;&lt;BR /&gt;I would also suggest that you run the configure with this option: --disable-root-sudo &lt;BR /&gt;&lt;BR /&gt;By doing this, you won't get in a situtation where someone can do a sudo sudo /bin/sh and become root... The INSTALL file packaged with sudo has many other options that you can also review...&lt;BR /&gt;&lt;BR /&gt;You must be careful about the permissions you giving people with sudo. For instance, if you give someone ALL:/usr/bin/chmod or ALL:/usr/bin/chown, they will be able to take over any file on the system, including /etc/sudoers. &lt;BR /&gt;&lt;BR /&gt;Hence as a general rule, before you give a user sudo premissions, ask yourself: "Does this person REALLY need to run this command as root in order to do their job." &lt;BR /&gt;&lt;BR /&gt;You can also set sudo to track the messages by altering /etc/syslog.conf. (You may as well send the messages to a totally different machine to make it very difficult for a user to cover their 'sudo tracks'.)&lt;BR /&gt;&lt;BR /&gt;One preventive measure will be to also copy the sudo executible to /usr/local/bin/ and redirect the users there via /etc/PATH. Then if whatever directory sudo is found in gets corrupted either accidently or on purpose, sudo still works.&lt;BR /&gt;&lt;BR /&gt;hope this helps too!&lt;BR /&gt;&lt;BR /&gt;kind regards&lt;BR /&gt;yogeeraj</description>
      <pubDate>Thu, 23 Feb 2006 00:49:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-password/m-p/4962041#M415892</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2006-02-23T00:49:59Z</dc:date>
    </item>
    <item>
      <title>Re: sudo password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-password/m-p/4962042#M415893</link>
      <description>I have user nopassword option.</description>
      <pubDate>Thu, 23 Feb 2006 00:51:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-password/m-p/4962042#M415893</guid>
      <dc:creator>Khashru</dc:creator>
      <dc:date>2006-02-23T00:51:08Z</dc:date>
    </item>
  </channel>
</rss>

