<?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 Help in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-help/m-p/3281064#M180441</link>
    <description>if all you are trying to do is not to let this user do anything but run this command or exit, clear the profile out of this menu/backup structure and move the commands into a shell script. make the script with 700 permissions and set this script as the username's shell (also include it in the /etc/shells) &lt;BR /&gt;&lt;BR /&gt;As soon as the user logs in, it will hit this script. Provided your trap statements are properly placed, there won't be any way to escape out of the script and fall onto the command line.&lt;BR /&gt;&lt;BR /&gt;trying to run something out of a profile is not a good practice to start with in my opinion.</description>
    <pubDate>Wed, 19 May 2004 14:02:11 GMT</pubDate>
    <dc:creator>Mel Burslan</dc:creator>
    <dc:date>2004-05-19T14:02:11Z</dc:date>
    <item>
      <title>Sudo Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-help/m-p/3281053#M180430</link>
      <description>Hello All,&lt;BR /&gt;   I am running HP11.00 UX. I have intially set one user to run our backup using SUDO and it was working fine. Last week , We had to apply patches on this box and this stopped working. When executed manually it will work with out any problems. What is the problem and Where can I get Latest sudo software and how can I check the version I am running. Thanks for all the help.</description>
      <pubDate>Wed, 19 May 2004 10:42:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-help/m-p/3281053#M180430</guid>
      <dc:creator>Anand Sreenivasan</dc:creator>
      <dc:date>2004-05-19T10:42:28Z</dc:date>
    </item>
    <item>
      <title>Re: Sudo Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-help/m-p/3281054#M180431</link>
      <description>to get the version of sudo you are running :&lt;BR /&gt;&lt;BR /&gt;# sudo -V&lt;BR /&gt;Sudo version 1.6.3p5&lt;BR /&gt;&lt;BR /&gt;latest wersion can be obtained from :&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/sudo-1.6.7p5/" target="_blank"&gt;http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/sudo-1.6.7p5/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;HTH</description>
      <pubDate>Wed, 19 May 2004 10:51:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-help/m-p/3281054#M180431</guid>
      <dc:creator>Mel Burslan</dc:creator>
      <dc:date>2004-05-19T10:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: Sudo Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-help/m-p/3281055#M180432</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Please check whether the latest patches changed paths of backup commands and now they differ from the ones in /etc/sudoers file.&lt;BR /&gt;&lt;BR /&gt;Good luck</description>
      <pubDate>Wed, 19 May 2004 10:56:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-help/m-p/3281055#M180432</guid>
      <dc:creator>Victor Fridyev</dc:creator>
      <dc:date>2004-05-19T10:56:48Z</dc:date>
    </item>
    <item>
      <title>Re: Sudo Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-help/m-p/3281056#M180433</link>
      <description>Yes it is definitely related with the PATH variable. If you can recollect the earlier PATH settings try setting it for this UPDATE as well.&lt;BR /&gt;&lt;BR /&gt;It is not in proper PATH.&lt;BR /&gt;&lt;BR /&gt;Hope that helps.&lt;BR /&gt;Regards,</description>
      <pubDate>Wed, 19 May 2004 11:00:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-help/m-p/3281056#M180433</guid>
      <dc:creator>Bharat Katkar</dc:creator>
      <dc:date>2004-05-19T11:00:10Z</dc:date>
    </item>
    <item>
      <title>Re: Sudo Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-help/m-p/3281057#M180434</link>
      <description>This is the error message I am getting and It is not finding the default device. What could have changed and how can I fix it. Also , I dont want to include the device in the make_tape_recovery command. Thanks.&lt;BR /&gt;&lt;BR /&gt;Wed May 19 12:22:08 EDT 2004&lt;BR /&gt; Make Tape recovery is in Progress...&lt;BR /&gt;&lt;BR /&gt;        ** 0 - The Volume Group or Filesystem is Not included in the&lt;BR /&gt;               System Recovery Archive&lt;BR /&gt;        ** 1 - The Volume Group or Filesystem is Partially included in the&lt;BR /&gt;               System Recovery Archive&lt;BR /&gt;        ** 2 - The Volume Group or Filesystem is Fully included in the&lt;BR /&gt;               System Recovery Archive&lt;BR /&gt;&lt;BR /&gt;ERROR:   Tape destination  is not found on the system.No such file or &lt;BR /&gt;         directory (errno = 2)&lt;BR /&gt;ERROR:   Check tape device failed.&lt;BR /&gt;       * Creating local directories for configuration files and archive.&lt;BR /&gt;</description>
      <pubDate>Wed, 19 May 2004 11:06:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-help/m-p/3281057#M180434</guid>
      <dc:creator>Anand Sreenivasan</dc:creator>
      <dc:date>2004-05-19T11:06:35Z</dc:date>
    </item>
    <item>
      <title>Re: Sudo Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-help/m-p/3281058#M180435</link>
      <description>what is the exact command that you use (with all the command line switches and everything) to run this make_recovery command ? What type of box is this one and what patch or set of patches did you apply to this box ? &lt;BR /&gt;This info may help figuring out your problem. Looks like it is not able to find your tape drive.</description>
      <pubDate>Wed, 19 May 2004 11:09:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-help/m-p/3281058#M180435</guid>
      <dc:creator>Mel Burslan</dc:creator>
      <dc:date>2004-05-19T11:09:52Z</dc:date>
    </item>
    <item>
      <title>Re: Sudo Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-help/m-p/3281059#M180436</link>
      <description>This is the exact command which I run&lt;BR /&gt;   sudo /opt/ignite/bin/make_tape_recovery -vI -x inc_entire=vg00 |tee -a $logfile&lt;BR /&gt;  &lt;BR /&gt;And this is the script which is being executed by the user&lt;BR /&gt;    logfile=/usr/local/logs/maketape.log&lt;BR /&gt;date |tee $logfile&lt;BR /&gt;echo " Make Tape recovery is in Progress..."&lt;BR /&gt;sudo /opt/ignite/bin/make_tape_recovery -vI -x inc_entire=vg00 |tee -a $logfile&lt;BR /&gt;echo " Session Complete !! Please remove the tape. "&lt;BR /&gt;mailx -s "Tape Recovery log"  unix_adm &amp;lt; $logfile&lt;BR /&gt;&lt;BR /&gt;And this is my /etc/sudoers file&lt;BR /&gt;   # Uncomment to allow people in group wheel to run all commands&lt;BR /&gt;# %wheel        ALL=(ALL)       ALL&lt;BR /&gt;&lt;BR /&gt;# Same thing without a password&lt;BR /&gt;# %wheel        ALL=(ALL)       NOPASSWD: ALL&lt;BR /&gt;&lt;BR /&gt;# Samples&lt;BR /&gt;# %users  ALL=/sbin/mount /cdrom,/sbin/umount /cdrom&lt;BR /&gt;# %users  localhost=/sbin/shutdown -h now&lt;BR /&gt;oper ALL=/usr/local/bin/ingxdev.maketape.sh,/opt/ignite/bin/make_tape_recovery&lt;BR /&gt;&lt;BR /&gt;I am running HP UX11.00 on a N class and I applied these patches for Oracle 9i prerequesites.&lt;BR /&gt;</description>
      <pubDate>Wed, 19 May 2004 12:27:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-help/m-p/3281059#M180436</guid>
      <dc:creator>Anand Sreenivasan</dc:creator>
      <dc:date>2004-05-19T12:27:19Z</dc:date>
    </item>
    <item>
      <title>Re: Sudo Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-help/m-p/3281060#M180437</link>
      <description>please run this command :&lt;BR /&gt;&lt;BR /&gt;ioscan -fnC tape &lt;BR /&gt;&lt;BR /&gt;if there is a tape device which has been flagged as NO_HW, it may be your problem and you may need to get it fixed. I am sure at the time of patches, you reboot this machine and it is unwanted but expected possible outcome of the reboot that some hardware devices may not initialize at the boot time due to some h/w failure.&lt;BR /&gt;&lt;BR /&gt;if everything is showing up as CLAIMED make sure that you have at least 1 tape drive with the driver file /dev/rmt/0m as this is the device your recovery image will be written onto. If you have this one as well, make sure that you have a writable (i.e. not write protected) tape in it.&lt;BR /&gt;&lt;BR /&gt;if everything is cheking out fine, please post your "ioscan -fnC tape" command output here so that we can understand what else might be wrong</description>
      <pubDate>Wed, 19 May 2004 12:50:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-help/m-p/3281060#M180437</guid>
      <dc:creator>Mel Burslan</dc:creator>
      <dc:date>2004-05-19T12:50:23Z</dc:date>
    </item>
    <item>
      <title>Re: Sudo Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-help/m-p/3281061#M180438</link>
      <description>Here is the output of ioscan -fnC tape&lt;BR /&gt;  ioscan -fnC tape&lt;BR /&gt;Class     I  H/W Path     Driver S/W State   H/W Type     Description&lt;BR /&gt;=====================================================================&lt;BR /&gt;tape      0  0/6/0/1.3.0  stape CLAIMED     DEVICE       QUANTUM DLT8000&lt;BR /&gt;                         /dev/rmt/0m            /dev/rmt/0mnb          /dev/rmt/c7t3d0BESTn &lt;BR /&gt;                         /dev/rmt/0mb           /dev/rmt/c7t3d0BEST    /dev/rmt/c7t3d0BESTnb&lt;BR /&gt;                         /dev/rmt/0mn           /dev/rmt/c7t3d0BESTb &lt;BR /&gt;&lt;BR /&gt;Also, When this command is run as root , It works perfectly without any issues. Thanks.</description>
      <pubDate>Wed, 19 May 2004 12:54:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-help/m-p/3281061#M180438</guid>
      <dc:creator>Anand Sreenivasan</dc:creator>
      <dc:date>2004-05-19T12:54:13Z</dc:date>
    </item>
    <item>
      <title>Re: Sudo Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-help/m-p/3281062#M180439</link>
      <description>Just wondering what the permissions on /usr/local/logs/maketape.log is? The tee command is after a pipe, I would have to do some testing, but it could be that the tee command isn't being run as part of the sudo command. The normal user may not have permissions to write to the log file. If it is being executed with sudo privileges, then you may need to specify the full path to tee and include it in the sudoers file.</description>
      <pubDate>Wed, 19 May 2004 13:40:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-help/m-p/3281062#M180439</guid>
      <dc:creator>Scott J. Showalter</dc:creator>
      <dc:date>2004-05-19T13:40:43Z</dc:date>
    </item>
    <item>
      <title>Re: Sudo Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-help/m-p/3281063#M180440</link>
      <description>Actually the user do find tee in his path and it does not error out there. It always errors out at tape device not found. This is the profile for the user,&lt;BR /&gt;   trap "" 2 3 15&lt;BR /&gt;PATH=/usr/bin:/etc:/usr/sbin:/usr/local/bin:/usr/ucb:$HOME/bin:/usr/bin/X11:/sbin:.&lt;BR /&gt;export PATH&lt;BR /&gt;#&lt;BR /&gt;if [ -s "$MAIL" ]           # This is at Shell startup.  In normal&lt;BR /&gt;then echo "$MAILMSG"        # operation, the Shell checks&lt;BR /&gt;fi                          # periodically.&lt;BR /&gt;#&lt;BR /&gt;#Production Control Menu&lt;BR /&gt;PS3="SELECT FROM THE FOLLOWING OPTIONS: "&lt;BR /&gt;select choice in SYSBACK EXIT&lt;BR /&gt;        do&lt;BR /&gt;        case $choice in&lt;BR /&gt;                SYSBACK)&lt;BR /&gt;                sudo /usr/local/bin/ingxdev.maketape.sh&lt;BR /&gt;                echo "Select from the following options:\n"&lt;BR /&gt;                echo "\t\t[1] - Sysback\t[2] - Exit"&lt;BR /&gt;                ;;&lt;BR /&gt;                EXIT)&lt;BR /&gt;                        exit&lt;BR /&gt;                ;;&lt;BR /&gt;        esac&lt;BR /&gt;         done&lt;BR /&gt;&lt;BR /&gt;I tried commenting al this from the profile and then run this command &lt;BR /&gt;    sudo /opt/ignite/bin/make_tape_recovery -vI -x inc_entire=vg00&lt;BR /&gt;  &lt;BR /&gt;This worked as it should. So I think something is messed up in the .profile and I do not know what it is.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 19 May 2004 13:48:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-help/m-p/3281063#M180440</guid>
      <dc:creator>Anand Sreenivasan</dc:creator>
      <dc:date>2004-05-19T13:48:56Z</dc:date>
    </item>
    <item>
      <title>Re: Sudo Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-help/m-p/3281064#M180441</link>
      <description>if all you are trying to do is not to let this user do anything but run this command or exit, clear the profile out of this menu/backup structure and move the commands into a shell script. make the script with 700 permissions and set this script as the username's shell (also include it in the /etc/shells) &lt;BR /&gt;&lt;BR /&gt;As soon as the user logs in, it will hit this script. Provided your trap statements are properly placed, there won't be any way to escape out of the script and fall onto the command line.&lt;BR /&gt;&lt;BR /&gt;trying to run something out of a profile is not a good practice to start with in my opinion.</description>
      <pubDate>Wed, 19 May 2004 14:02:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-help/m-p/3281064#M180441</guid>
      <dc:creator>Mel Burslan</dc:creator>
      <dc:date>2004-05-19T14:02:11Z</dc:date>
    </item>
    <item>
      <title>Re: Sudo Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-help/m-p/3281065#M180442</link>
      <description>&lt;BR /&gt;Why not use the restricted sam builder.&lt;BR /&gt;&lt;BR /&gt;You can add the command to sam as a application to be run as root.  Then use the restricted sam builder to give that user access to this and other system admin functionality to be launched and logged in sam.  THis is a great supported function that not many people take advantage of.&lt;BR /&gt;&lt;BR /&gt;Good luck</description>
      <pubDate>Wed, 19 May 2004 22:22:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-help/m-p/3281065#M180442</guid>
      <dc:creator>Emil Velez</dc:creator>
      <dc:date>2004-05-19T22:22:31Z</dc:date>
    </item>
    <item>
      <title>Re: Sudo Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-help/m-p/3281066#M180443</link>
      <description>HOw do I use SAM builder ?? . Can you give me some links on this .</description>
      <pubDate>Thu, 20 May 2004 07:46:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-help/m-p/3281066#M180443</guid>
      <dc:creator>Anand Sreenivasan</dc:creator>
      <dc:date>2004-05-20T07:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: Sudo Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-help/m-p/3281067#M180444</link>
      <description>run "sam -r"</description>
      <pubDate>Tue, 22 Jun 2004 08:31:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-help/m-p/3281067#M180444</guid>
      <dc:creator>Camel_1</dc:creator>
      <dc:date>2004-06-22T08:31:39Z</dc:date>
    </item>
    <item>
      <title>Re: Sudo Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-help/m-p/3281068#M180445</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Can you post the script&lt;BR /&gt;&lt;BR /&gt;/usr/local/bin/ingxdev.maketape.sh&lt;BR /&gt;&lt;BR /&gt;You can use the following to actually find the tape device on the system instead of using the default 0mn device. It will use the first tape device otherwise uncomment the #TAPE and add the tape device you want to add.&lt;BR /&gt;&lt;BR /&gt;TAPE=$(/usr/sbin/ioscan -funC tape |grep "[0-9]mn " |awk '{print $1}'|head -1)&lt;BR /&gt;#Uncomment out the following line and add your tape drive here manually&lt;BR /&gt;#TAPE=/dev/rmt/0mn&lt;BR /&gt;&lt;BR /&gt;Use $TAPE in your make_tape_recovery script.&lt;BR /&gt;&lt;BR /&gt;-Sri &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 22 Jun 2004 10:15:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-help/m-p/3281068#M180445</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2004-06-22T10:15:42Z</dc:date>
    </item>
  </channel>
</rss>

