<?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: Bizarre sudo problem in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/bizarre-sudo-problem/m-p/3374948#M196261</link>
    <description>Yep.. also there is a problem in the script. You will have to be in the COBDIR (COBDIR=`pwd`) in order to get it working..&lt;BR /&gt;I suggest you change the script to&lt;BR /&gt;&lt;BR /&gt;COBDIR="/wherever/it/is"&lt;BR /&gt;..&lt;BR /&gt;..&lt;BR /&gt;$COBDIR/mflm_manager $*&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
    <pubDate>Fri, 10 Sep 2004 10:02:05 GMT</pubDate>
    <dc:creator>Sridhar Bhaskarla</dc:creator>
    <dc:date>2004-09-10T10:02:05Z</dc:date>
    <item>
      <title>Bizarre sudo problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bizarre-sudo-problem/m-p/3374934#M196247</link>
      <description>I've installed sudo1.6.7 onto an NClass running HP-UX 11.0.&lt;BR /&gt;I have a user who needs to be able to do 'kill' and mflmman.&lt;BR /&gt;Here are my sudoers entries:&lt;BR /&gt;# User alias specification&lt;BR /&gt;User_Alias      OPERATOR = operator&lt;BR /&gt;&lt;BR /&gt;# Cmnd alias specification&lt;BR /&gt;Cmnd_Alias      KILL = /usr/bin/kill&lt;BR /&gt;Cmnd_Alias      MFLMMAN = /opt/cobol/mflmf/mflmman&lt;BR /&gt;&lt;BR /&gt;# Defaults specification&lt;BR /&gt;&lt;BR /&gt;# User privilege specification&lt;BR /&gt;root    ALL=(ALL) ALL&lt;BR /&gt;OPERATOR        ALL = NOPASSWD: KILL,MFLMMAN&lt;BR /&gt;&lt;BR /&gt;Kill works fine, and does not prompt for a password.&lt;BR /&gt;mflmman asks for a password, and after I enter it, I see the following:&lt;BR /&gt;HP Operator&amp;gt; sudo mflmman&lt;BR /&gt;Password:&lt;BR /&gt;sudo: mflmman: command not found&lt;BR /&gt;Sep  8 14:41:35 hpnclass sudo: operator : command not allowed ; TTY=pts/ts ; PWD&lt;BR /&gt;=/home/mis/operator ; USER=root ; COMMAND=mflmman&lt;BR /&gt;&lt;BR /&gt;The mflmman command actually calls mflm_manager. Please see below:&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;COBDIR=`pwd`&lt;BR /&gt;export COBDIR&lt;BR /&gt;LIBPATH=$COBDIR/lib:/lib:$LIBPATH&lt;BR /&gt;export LIBPATH&lt;BR /&gt;LD_LIBRARY_PATH=$COBDIR/lib:/lib:$LD_LIBRARY_PATH&lt;BR /&gt;export LD_LIBRARY_PATH&lt;BR /&gt;SHLIB_PATH=$COBDIR/lib:/lib:$SHLIB_PATH&lt;BR /&gt;export SHLIB_PATH&lt;BR /&gt;&lt;BR /&gt;./mflm_manager $*&lt;BR /&gt;&lt;BR /&gt;No matter what I try, I cannot get this to work. Any ideas/hints would be most sincerely appreciated.&lt;BR /&gt;&lt;BR /&gt;Thanks-&lt;BR /&gt;Stacey</description>
      <pubDate>Wed, 08 Sep 2004 13:47:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bizarre-sudo-problem/m-p/3374934#M196247</guid>
      <dc:creator>Bob Bean</dc:creator>
      <dc:date>2004-09-08T13:47:23Z</dc:date>
    </item>
    <item>
      <title>Re: Bizarre sudo problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bizarre-sudo-problem/m-p/3374935#M196248</link>
      <description>The command the operator uses should exactly match that of in the /etc/sudoers file&lt;BR /&gt;&lt;BR /&gt;Try this&lt;BR /&gt;&lt;BR /&gt;Operator&amp;gt; sudo /opt/cobol/mflmf/mflmman&lt;BR /&gt;Password: &lt;ENTER password=""&gt;&lt;BR /&gt;&lt;BR /&gt;This should work&lt;/ENTER&gt;</description>
      <pubDate>Wed, 08 Sep 2004 13:52:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bizarre-sudo-problem/m-p/3374935#M196248</guid>
      <dc:creator>Sundar_7</dc:creator>
      <dc:date>2004-09-08T13:52:19Z</dc:date>
    </item>
    <item>
      <title>Re: Bizarre sudo problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bizarre-sudo-problem/m-p/3374936#M196249</link>
      <description>Yes, I agree with Sundar&lt;BR /&gt;&lt;BR /&gt;GL,&lt;BR /&gt;C</description>
      <pubDate>Wed, 08 Sep 2004 15:01:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bizarre-sudo-problem/m-p/3374936#M196249</guid>
      <dc:creator>Craig Rants</dc:creator>
      <dc:date>2004-09-08T15:01:14Z</dc:date>
    </item>
    <item>
      <title>Re: Bizarre sudo problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bizarre-sudo-problem/m-p/3374937#M196250</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Try&lt;BR /&gt;&lt;BR /&gt;# User alias specification&lt;BR /&gt;&lt;BR /&gt;# Cmnd alias specification&lt;BR /&gt;/usr/bin/kill, /opt/cobol/mflmf/mflmman&lt;BR /&gt;&lt;BR /&gt;# Defaults specification&lt;BR /&gt;&lt;BR /&gt;# User privilege specification&lt;BR /&gt;root ALL=(ALL) ALL&lt;BR /&gt;operator ALL = (ALL) NOPASSWD :/usr/bin/kill, /opt/cobol/mflmf/mflmman&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Regds&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 08 Sep 2004 15:21:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bizarre-sudo-problem/m-p/3374937#M196250</guid>
      <dc:creator>Sanjay_6</dc:creator>
      <dc:date>2004-09-08T15:21:45Z</dc:date>
    </item>
    <item>
      <title>Re: Bizarre sudo problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bizarre-sudo-problem/m-p/3374938#M196251</link>
      <description>When I add the following as suggested, I get a syntax error:&lt;BR /&gt;# Cmnd alias specification&lt;BR /&gt;#Cmnd_Alias     KILL = /usr/bin/kill&lt;BR /&gt;#Cmnd_Alias     MFLMMAN = /opt/cobol/mflmf/mflmman&lt;BR /&gt;Cmnd_Alias      /usr/bin/kill, /opt/cobol/mflmf/mflmman&lt;BR /&gt;&lt;BR /&gt;# Defaults specification&lt;BR /&gt;&lt;BR /&gt;# User privilege specification&lt;BR /&gt;root    ALL=(ALL) ALL&lt;BR /&gt;#OPERATOR       ALL = NOPASSWD: KILL,MFLMMAN&lt;BR /&gt;OPERATOR ALL = (ALL) NOPASSWD :/usr/bin/kill, /opt/cobol/mflmf/mflmman&lt;BR /&gt;&lt;BR /&gt;Thanks-&lt;BR /&gt;Stacey</description>
      <pubDate>Thu, 09 Sep 2004 09:14:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bizarre-sudo-problem/m-p/3374938#M196251</guid>
      <dc:creator>Stacey Akerstrom</dc:creator>
      <dc:date>2004-09-09T09:14:17Z</dc:date>
    </item>
    <item>
      <title>Re: Bizarre sudo problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bizarre-sudo-problem/m-p/3374939#M196252</link>
      <description>Any other suggestions on this one? &lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;BR /&gt;Stacey</description>
      <pubDate>Fri, 10 Sep 2004 07:42:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bizarre-sudo-problem/m-p/3374939#M196252</guid>
      <dc:creator>Bob Bean</dc:creator>
      <dc:date>2004-09-10T07:42:30Z</dc:date>
    </item>
    <item>
      <title>Re: Bizarre sudo problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bizarre-sudo-problem/m-p/3374940#M196253</link>
      <description>Hi,&lt;BR /&gt;Just thought..&lt;BR /&gt;You want him to have root permissions when it executes?&lt;BR /&gt;sudo -u root &lt;CMD&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;All the best&lt;BR /&gt;Victor&lt;/CMD&gt;</description>
      <pubDate>Fri, 10 Sep 2004 07:51:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bizarre-sudo-problem/m-p/3374940#M196253</guid>
      <dc:creator>Victor BERRIDGE</dc:creator>
      <dc:date>2004-09-10T07:51:05Z</dc:date>
    </item>
    <item>
      <title>Re: Bizarre sudo problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bizarre-sudo-problem/m-p/3374941#M196254</link>
      <description>HI Stacey,&lt;BR /&gt;&lt;BR /&gt;For it looks like&lt;BR /&gt;&lt;BR /&gt;sudo /opt/cobol/mflmf/mflmman $*&lt;BR /&gt;&lt;BR /&gt;should work.&lt;BR /&gt;&lt;BR /&gt;What error are you getting?.&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Fri, 10 Sep 2004 08:23:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bizarre-sudo-problem/m-p/3374941#M196254</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2004-09-10T08:23:43Z</dc:date>
    </item>
    <item>
      <title>Re: Bizarre sudo problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bizarre-sudo-problem/m-p/3374942#M196255</link>
      <description>Hi Stacey,&lt;BR /&gt;&lt;BR /&gt;I'm sorry, but my suggestion was,&lt;BR /&gt;&lt;BR /&gt;# User alias specification&lt;BR /&gt;&lt;BR /&gt;# Cmnd alias specification&lt;BR /&gt;# /usr/bin/kill, /opt/cobol/mflmf/mflmman&lt;BR /&gt;&lt;BR /&gt;# Defaults specification&lt;BR /&gt;&lt;BR /&gt;# User privilege specification&lt;BR /&gt;root ALL=(ALL) ALL&lt;BR /&gt;operator ALL = (ALL) NOPASSWD :/usr/bin/kill, /opt/cobol/mflmf/mflmman&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Regds</description>
      <pubDate>Fri, 10 Sep 2004 08:30:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bizarre-sudo-problem/m-p/3374942#M196255</guid>
      <dc:creator>Sanjay_6</dc:creator>
      <dc:date>2004-09-10T08:30:36Z</dc:date>
    </item>
    <item>
      <title>Re: Bizarre sudo problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bizarre-sudo-problem/m-p/3374943#M196256</link>
      <description>Hi Victor-&lt;BR /&gt;Thanks for replying.&lt;BR /&gt;I'm still getting the following:&lt;BR /&gt;HP Operator&amp;gt; sudo -l&lt;BR /&gt;User operator may run the following commands on this host:&lt;BR /&gt;    (root) NOPASSWD: /usr/bin/kill&lt;BR /&gt;    (root) NOPASSWD: /opt/cobol/mflmf/mflmman&lt;BR /&gt;HP Operator&amp;gt; sudo -u root mflmman&lt;BR /&gt;Password:&lt;BR /&gt;sudo: mflmman: command not found&lt;BR /&gt;Sep 10 10:08:28 hpnclass sudo: operator : command not allowed ; TTY=pts/tC ; PWD&lt;BR /&gt;=/home/mis/operator ; USER=root ; COMMAND=mflmman</description>
      <pubDate>Fri, 10 Sep 2004 09:12:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bizarre-sudo-problem/m-p/3374943#M196256</guid>
      <dc:creator>Bob Bean</dc:creator>
      <dc:date>2004-09-10T09:12:17Z</dc:date>
    </item>
    <item>
      <title>Re: Bizarre sudo problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bizarre-sudo-problem/m-p/3374944#M196257</link>
      <description>Bob/Stacey,&lt;BR /&gt;&lt;BR /&gt;The problem with not specifying the full patch to mflmman is that it will be searched under sudo's default search path which is a compiler option. Hence, it can't find it. &lt;BR /&gt;&lt;BR /&gt;So, no matter what you do, simply specifying mflmman will not work. However, copy it to /usr/bin and then it should work as normallly /usr/bin is one of the standard directories in SUDO's path.&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Fri, 10 Sep 2004 09:47:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bizarre-sudo-problem/m-p/3374944#M196257</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2004-09-10T09:47:40Z</dc:date>
    </item>
    <item>
      <title>Re: Bizarre sudo problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bizarre-sudo-problem/m-p/3374945#M196258</link>
      <description>Even with the following present in sudoers:&lt;BR /&gt;# User privilege specification&lt;BR /&gt;root ALL=(ALL) ALL&lt;BR /&gt;operator ALL = (ALL) NOPASSWD :/usr/bin/kill, /opt/cobol/mflmf/mflmman&lt;BR /&gt;&lt;BR /&gt;I get:&lt;BR /&gt;HP Operator&amp;gt; sudo /opt/cobol/mflmf/mflmman&lt;BR /&gt;/opt/cobol/mflmf/mflmman[11]: ./mflm_manager:  not found.&lt;BR /&gt;&lt;BR /&gt;So it's can't find mglm_manager?</description>
      <pubDate>Fri, 10 Sep 2004 09:53:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bizarre-sudo-problem/m-p/3374945#M196258</guid>
      <dc:creator>Bob Bean</dc:creator>
      <dc:date>2004-09-10T09:53:05Z</dc:date>
    </item>
    <item>
      <title>Re: Bizarre sudo problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bizarre-sudo-problem/m-p/3374946#M196259</link>
      <description>Sridhar-&lt;BR /&gt;Just so I understand this, are you saying I should cp mflmman over to /usr/sbin? &lt;BR /&gt;Thanks-&lt;BR /&gt;Stacey</description>
      <pubDate>Fri, 10 Sep 2004 09:55:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bizarre-sudo-problem/m-p/3374946#M196259</guid>
      <dc:creator>Bob Bean</dc:creator>
      <dc:date>2004-09-10T09:55:39Z</dc:date>
    </item>
    <item>
      <title>Re: Bizarre sudo problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bizarre-sudo-problem/m-p/3374947#M196260</link>
      <description>Oops, I meant /usr/bin, of course.&lt;BR /&gt;&lt;BR /&gt;Stacey</description>
      <pubDate>Fri, 10 Sep 2004 09:56:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bizarre-sudo-problem/m-p/3374947#M196260</guid>
      <dc:creator>Bob Bean</dc:creator>
      <dc:date>2004-09-10T09:56:29Z</dc:date>
    </item>
    <item>
      <title>Re: Bizarre sudo problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bizarre-sudo-problem/m-p/3374948#M196261</link>
      <description>Yep.. also there is a problem in the script. You will have to be in the COBDIR (COBDIR=`pwd`) in order to get it working..&lt;BR /&gt;I suggest you change the script to&lt;BR /&gt;&lt;BR /&gt;COBDIR="/wherever/it/is"&lt;BR /&gt;..&lt;BR /&gt;..&lt;BR /&gt;$COBDIR/mflm_manager $*&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Fri, 10 Sep 2004 10:02:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bizarre-sudo-problem/m-p/3374948#M196261</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2004-09-10T10:02:05Z</dc:date>
    </item>
    <item>
      <title>Re: Bizarre sudo problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bizarre-sudo-problem/m-p/3374949#M196262</link>
      <description>Hi Bob,&lt;BR /&gt;This is how I solved the problem here:&lt;BR /&gt;the account here that can use the command is exploit... In sudoers:&lt;BR /&gt;exploit    ALL=(OP) NOPASSWD : /sm/bin/mflm&lt;BR /&gt;Now the content of /sm/bin/mflm&lt;BR /&gt;#!/sbin/sh&lt;BR /&gt;#---------------------------------------------------------------------------#&lt;BR /&gt;# Start the MFLM License Manager  (VBE - 02.12.05)&lt;BR /&gt;# export COBDIR=/opt/cobol/mflmf&lt;BR /&gt;# export SHLIB_PATH=$COBDIR/coblib:$SHLIB_PATH:/lib&lt;BR /&gt;# cd /opt/cobol/mflmf&lt;BR /&gt;# ./mflm_manager&lt;BR /&gt;#---------------------------------------------------------------------------#&lt;BR /&gt;export PATH=/usr/sbin:/usr/bin:/sbin&lt;BR /&gt;rval=0&lt;BR /&gt;&lt;BR /&gt;case "$1" in&lt;BR /&gt;  start_msg)&lt;BR /&gt;        echo "Start MFLM License Manager"&lt;BR /&gt;        ;;&lt;BR /&gt;  stop_msg)&lt;BR /&gt;        echo "Stop MFLM License Manager"&lt;BR /&gt;        ;;&lt;BR /&gt;  start)&lt;BR /&gt;        /etc/mflmrcscript  2&amp;gt;&amp;amp;1 &lt;BR /&gt;        ;;&lt;BR /&gt;  stop)&lt;BR /&gt;        for i in $(ps -ef|grep -i mflm_manager|grep -v grep|awk '{print $2}')&lt;BR /&gt;        do&lt;BR /&gt;           kill -9 $i&lt;BR /&gt;        done&lt;BR /&gt;        ;;&lt;BR /&gt;  *)&lt;BR /&gt;        echo "usage: $0 {start|stop}"&lt;BR /&gt;        rval=1&lt;BR /&gt;        ;;&lt;BR /&gt;esac&lt;BR /&gt;# &lt;BR /&gt;&lt;BR /&gt;And the /etc/mflm_manager script&lt;BR /&gt;# more mflmrcscript &lt;BR /&gt;echo Starting MFLM License Manager&lt;BR /&gt;COBDIR=/opt/cobol/mflmf&lt;BR /&gt;export COBDIR&lt;BR /&gt;SHLIB_PATH=$COBDIR/coblib:$SHLIB_PATH:/lib&lt;BR /&gt;export SHLIB_PATH&lt;BR /&gt;cd /opt/cobol/mflmf&lt;BR /&gt;./mflm_manager&lt;BR /&gt;&lt;BR /&gt;Hope this helps a little&lt;BR /&gt;&lt;BR /&gt;All the best&lt;BR /&gt;Victor&lt;BR /&gt;</description>
      <pubDate>Mon, 16 Sep 2024 09:08:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bizarre-sudo-problem/m-p/3374949#M196262</guid>
      <dc:creator>Victor BERRIDGE</dc:creator>
      <dc:date>2024-09-16T09:08:09Z</dc:date>
    </item>
  </channel>
</rss>

