<?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 in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo/m-p/3465355#M849459</link>
    <description>Hi&lt;BR /&gt;Indira&lt;BR /&gt;I try as per your modification, it did not work.  Tell me do I uninstall and install sudo again, or is there is any file has to be modified other than sudoers.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;</description>
    <pubDate>Sat, 22 Jan 2005 23:34:17 GMT</pubDate>
    <dc:creator>Mehmood Ansari</dc:creator>
    <dc:date>2005-01-22T23:34:17Z</dc:date>
    <item>
      <title>sudo</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo/m-p/3465346#M849450</link>
      <description>Hi&lt;BR /&gt;I need help to use sudo.  HP 11.11 I am login as [oper] within the menu I want to run fbackup and reboot system.  sudoers file I defined oper, but I could not run the backup and reboot system.  Please guide me where is there is something missing in sudoers file. File is attached.&lt;BR /&gt;&lt;BR /&gt;Thanks and regards</description>
      <pubDate>Tue, 18 Jan 2005 08:07:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo/m-p/3465346#M849450</guid>
      <dc:creator>Mehmood Ansari</dc:creator>
      <dc:date>2005-01-18T08:07:20Z</dc:date>
    </item>
    <item>
      <title>Re: sudo</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo/m-p/3465347#M849451</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;your syntax for user oper is correct &lt;BR /&gt;(in my opinion there are to much priviliges for user oper)&lt;BR /&gt;&lt;BR /&gt;and if you want to shutdown system by sudo&lt;BR /&gt;you need to change directory to /&lt;BR /&gt;&lt;BR /&gt;ex:&lt;BR /&gt;cd /; /opt/sudo/bin/sudo /sbin/shutdown -r 0&lt;BR /&gt;&lt;BR /&gt;change your path to sudo&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 18 Jan 2005 08:19:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo/m-p/3465347#M849451</guid>
      <dc:creator>Slawomir Gora</dc:creator>
      <dc:date>2005-01-18T08:19:07Z</dc:date>
    </item>
    <item>
      <title>Re: sudo</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo/m-p/3465348#M849452</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I'm not sure if this will make a difference but it could.  &lt;BR /&gt;Instead of&lt;BR /&gt;&lt;BR /&gt;oper  ALL=(ALL)  NOPASSWD:ALL&lt;BR /&gt;&lt;BR /&gt;try&lt;BR /&gt;&lt;BR /&gt;oper  ALL=(ALL)  NOPASSWD: ALL&lt;BR /&gt;&lt;BR /&gt;which has a space before the last ALL.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Peter</description>
      <pubDate>Tue, 18 Jan 2005 08:22:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo/m-p/3465348#M849452</guid>
      <dc:creator>Peter Leddy_1</dc:creator>
      <dc:date>2005-01-18T08:22:43Z</dc:date>
    </item>
    <item>
      <title>Re: sudo</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo/m-p/3465349#M849453</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;#visudo&lt;BR /&gt;this will open sudoers file, at the end add the lines&lt;BR /&gt;%users  ALL=fbackup reboot&lt;BR /&gt;save and close the file.&lt;BR /&gt;&lt;BR /&gt;login as the user, now you can use fbackup and reboot command&lt;BR /&gt;</description>
      <pubDate>Tue, 18 Jan 2005 08:23:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo/m-p/3465349#M849453</guid>
      <dc:creator>Ravi_8</dc:creator>
      <dc:date>2005-01-18T08:23:01Z</dc:date>
    </item>
    <item>
      <title>Re: sudo</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo/m-p/3465350#M849454</link>
      <description>Hi&lt;BR /&gt;No it is not working, file attached.&lt;BR /&gt;operAll=(ALL)NOPASSWD: ALL giving error &amp;amp;&lt;BR /&gt;%user ALL=fbackup reboot is also giving error both parameter cannot be add in visudo.</description>
      <pubDate>Tue, 18 Jan 2005 08:49:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo/m-p/3465350#M849454</guid>
      <dc:creator>Mehmood Ansari</dc:creator>
      <dc:date>2005-01-18T08:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: sudo</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo/m-p/3465351#M849455</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;oper ALL=(ALL) NOPASSWD: ALL&lt;BR /&gt;&lt;BR /&gt;In your sudoers file there is no space between oper and ALL.&lt;BR /&gt;&lt;BR /&gt;for fbackup &amp;amp; reboot commands give the path. IT may prompt you to give your password while running this command.&lt;BR /&gt;&lt;BR /&gt;%user ALL=/usr/sbin/fbackup,some_path/reboot&lt;BR /&gt;&lt;BR /&gt;this will allow everyone in the user group to have the ability to run this command as root using sudo.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Regds&lt;BR /&gt;</description>
      <pubDate>Tue, 18 Jan 2005 09:54:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo/m-p/3465351#M849455</guid>
      <dc:creator>Sanjay_6</dc:creator>
      <dc:date>2005-01-18T09:54:46Z</dc:date>
    </item>
    <item>
      <title>Re: sudo</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo/m-p/3465352#M849456</link>
      <description>Hi Mehmood,&lt;BR /&gt;&lt;BR /&gt;You need to run fbackup and reboot as user oper.&lt;BR /&gt;&lt;BR /&gt;Use visudo to open the sudoers file in vi mode and add the following lines.&lt;BR /&gt;&lt;BR /&gt;# Host alias specification  &lt;BR /&gt; (This is where you sepcify the alias name to the server hostname&lt;BR /&gt;   eg:-  if your hostname of the server is  devtest&lt;BR /&gt;Host_Alias      TEST = devtest&lt;BR /&gt;&lt;BR /&gt;# User alias specification&lt;BR /&gt; (This is where you specify the user alias who will execute the commnad / script)&lt;BR /&gt;User_Alias BACKUP_USER=oper&lt;BR /&gt;&lt;BR /&gt;#Runas alias specification&lt;BR /&gt; (This is where you specify the original user &lt;BR /&gt;Runas_Alias     BACKUP = root&lt;BR /&gt;&lt;BR /&gt;# Cmnd alias specification&lt;BR /&gt; (This is where you specify the command or script with the command)&lt;BR /&gt;Cmnd_Alias      SYSTEM_BACKUP = /path_name/script_name&lt;BR /&gt;&lt;BR /&gt;# User privilege specification&lt;BR /&gt; (This is where you specify the user and the command alias)&lt;BR /&gt;BACKUP_USER TEST = (BACKUP) NOPASSWD: SYSTEM_BACKUP&lt;BR /&gt;&lt;BR /&gt;Attached is the sudoers file that I entered some examples.&lt;BR /&gt;&lt;BR /&gt;I hope this helps&lt;BR /&gt;&lt;BR /&gt;Indira A&lt;BR /&gt;</description>
      <pubDate>Tue, 18 Jan 2005 20:50:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo/m-p/3465352#M849456</guid>
      <dc:creator>Indira Aramandla</dc:creator>
      <dc:date>2005-01-18T20:50:04Z</dc:date>
    </item>
    <item>
      <title>Re: sudo</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo/m-p/3465353#M849457</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;I am trying it, still it is not working.  I did some changes, file is attached.  Is there is any thing has to be modified on some other file system.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;</description>
      <pubDate>Wed, 19 Jan 2005 08:55:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo/m-p/3465353#M849457</guid>
      <dc:creator>Mehmood Ansari</dc:creator>
      <dc:date>2005-01-19T08:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: sudo</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo/m-p/3465354#M849458</link>
      <description>Hi Mehmood,&lt;BR /&gt;&lt;BR /&gt;There are two modifications. The modifications are under the sections&lt;BR /&gt;# User alias specification and # User privilege specification&lt;BR /&gt;&lt;BR /&gt; I modified your file and attached.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Indira A</description>
      <pubDate>Wed, 19 Jan 2005 19:27:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo/m-p/3465354#M849458</guid>
      <dc:creator>Indira Aramandla</dc:creator>
      <dc:date>2005-01-19T19:27:08Z</dc:date>
    </item>
    <item>
      <title>Re: sudo</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo/m-p/3465355#M849459</link>
      <description>Hi&lt;BR /&gt;Indira&lt;BR /&gt;I try as per your modification, it did not work.  Tell me do I uninstall and install sudo again, or is there is any file has to be modified other than sudoers.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;</description>
      <pubDate>Sat, 22 Jan 2005 23:34:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo/m-p/3465355#M849459</guid>
      <dc:creator>Mehmood Ansari</dc:creator>
      <dc:date>2005-01-22T23:34:17Z</dc:date>
    </item>
    <item>
      <title>Re: sudo</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo/m-p/3465356#M849460</link>
      <description>How are you running the commands?  What errors are you getting?  If you could post the command  you are trying and the output it would be a great help.</description>
      <pubDate>Sat, 22 Jan 2005 23:38:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo/m-p/3465356#M849460</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2005-01-22T23:38:21Z</dc:date>
    </item>
    <item>
      <title>Re: sudo</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo/m-p/3465357#M849461</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;There is user OPER and within the menu I need to take fbackup/reboot the system. I defined sudo as per Support forumm members. I am getting fbackup not found, if I run fbackup from root it is working.  I want sudo to work perfectly.&lt;BR /&gt;&lt;BR /&gt;Regards</description>
      <pubDate>Sun, 23 Jan 2005 07:23:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo/m-p/3465357#M849461</guid>
      <dc:creator>Mehmood Ansari</dc:creator>
      <dc:date>2005-01-23T07:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: sudo</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo/m-p/3465358#M849462</link>
      <description>You may need to modify your menu so that it does a 'sudo /usr/sbin/fbackup'.  fbackup is not normally in a non-root users path.  Using full path names is always a good idea in scripts / menus.&lt;BR /&gt;&lt;BR /&gt;You could also just add /usr/sbin to the oper users PATH either in /etc/PATH, /etc/profile or opers .profile file.</description>
      <pubDate>Sun, 23 Jan 2005 08:54:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo/m-p/3465358#M849462</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2005-01-23T08:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: sudo</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo/m-p/3465359#M849463</link>
      <description>Hey Mehmood,&lt;BR /&gt;Does any command work with sudo?&lt;BR /&gt;I would think you need to set the stikky bit on /usr/local/bin/sudo file!&lt;BR /&gt;It needs to look like this:&lt;BR /&gt;# ls -al /usr/local/bin/sudo&lt;BR /&gt;---s--x--x   1 root       sys         114688 Oct 15  2003 /usr/local/bin/sudo&lt;BR /&gt;&lt;BR /&gt;some depot versions of sudo for HPUX does not set it :-).&lt;BR /&gt;chmod 4111 /usr/local/bin/sudo&lt;BR /&gt;&lt;BR /&gt;Best regards!</description>
      <pubDate>Sun, 23 Jan 2005 11:32:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo/m-p/3465359#M849463</guid>
      <dc:creator>Jannik</dc:creator>
      <dc:date>2005-01-23T11:32:16Z</dc:date>
    </item>
    <item>
      <title>Re: sudo</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo/m-p/3465360#M849464</link>
      <description>Hi&lt;BR /&gt;Jannik&lt;BR /&gt; Thanks for your help I set the file permission as chmod 4111 /usr/local/bin/sudo its work.&lt;BR /&gt;&lt;BR /&gt;Thanks again.&lt;BR /&gt;&lt;BR /&gt;Mehmood</description>
      <pubDate>Wed, 26 Jan 2005 00:25:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo/m-p/3465360#M849464</guid>
      <dc:creator>Mehmood Ansari</dc:creator>
      <dc:date>2005-01-26T00:25:12Z</dc:date>
    </item>
  </channel>
</rss>

