<?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: SAM command problem in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/sam-command-problem/m-p/3071109#M140697</link>
    <description>Ravi,&lt;BR /&gt;  What you get as output when you try to run SAM.  Is /usr/sbin in root's PATH.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Umapathy</description>
    <pubDate>Mon, 15 Sep 2003 12:03:53 GMT</pubDate>
    <dc:creator>Umapathy S</dc:creator>
    <dc:date>2003-09-15T12:03:53Z</dc:date>
    <item>
      <title>SAM command problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sam-command-problem/m-p/3071108#M140696</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I have HP-9000 E-class server,which has kept idle for some reasion.I don't know how my earlier system administrator configured, but recently when started the server to check.I have observed one thing ie., SAM command is not working with "root" login.But i have one more Login for my application purpuse.If i login with that login and from there i am entering into root user login by using "SU" command then i am able to run SAM command.Even though this user is not belong to root user or group.&lt;BR /&gt;&lt;BR /&gt;Can any body tell me what colud be the problem? &lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Mon, 15 Sep 2003 11:58:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sam-command-problem/m-p/3071108#M140696</guid>
      <dc:creator>Ravikanth_2</dc:creator>
      <dc:date>2003-09-15T11:58:33Z</dc:date>
    </item>
    <item>
      <title>Re: SAM command problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sam-command-problem/m-p/3071109#M140697</link>
      <description>Ravi,&lt;BR /&gt;  What you get as output when you try to run SAM.  Is /usr/sbin in root's PATH.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Umapathy</description>
      <pubDate>Mon, 15 Sep 2003 12:03:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sam-command-problem/m-p/3071109#M140697</guid>
      <dc:creator>Umapathy S</dc:creator>
      <dc:date>2003-09-15T12:03:53Z</dc:date>
    </item>
    <item>
      <title>Re: SAM command problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sam-command-problem/m-p/3071110#M140698</link>
      <description>What actually happens when you try and run SAM?&lt;BR /&gt;&lt;BR /&gt;THe only difference between the two, at least as far as SAM knows, is that logging in as root runs .profile so it would be worth looking into that.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 15 Sep 2003 12:06:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sam-command-problem/m-p/3071110#M140698</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2003-09-15T12:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: SAM command problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sam-command-problem/m-p/3071111#M140699</link>
      <description>I tend to suspect the PATH, too.  The key here is what exactly the failure is when the "SAM command is not working".  Do you get command not found or some other error message?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 15 Sep 2003 12:18:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sam-command-problem/m-p/3071111#M140699</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2003-09-15T12:18:11Z</dc:date>
    </item>
    <item>
      <title>Re: SAM command problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sam-command-problem/m-p/3071112#M140700</link>
      <description>Dear Umapathy &amp;amp; Mark,&lt;BR /&gt;&lt;BR /&gt;When i run SAM command from command prompt i am getting the following error&lt;BR /&gt;&lt;BR /&gt;"sh: sam: not found."&lt;BR /&gt;&lt;BR /&gt;for second thing PATH,i haven't seen /usr/sbin path by using "SET" command.&lt;BR /&gt;&lt;BR /&gt; I hope with this input you might understand my problem.&lt;BR /&gt;&lt;BR /&gt;Thanks and regards</description>
      <pubDate>Mon, 15 Sep 2003 12:34:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sam-command-problem/m-p/3071112#M140700</guid>
      <dc:creator>Ravikanth_2</dc:creator>
      <dc:date>2003-09-15T12:34:08Z</dc:date>
    </item>
    <item>
      <title>Re: SAM command problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sam-command-problem/m-p/3071113#M140701</link>
      <description>env&lt;BR /&gt;&lt;BR /&gt;Lets see what the environment on this box is.  I don't even know the SHELL, the version of HP-UX anything.  I've worked with E boxes, but you could be running HP-UX 9.04 or something.&lt;BR /&gt;&lt;BR /&gt;uname -a&lt;BR /&gt;&lt;BR /&gt;Will tell us something about the system.&lt;BR /&gt;&lt;BR /&gt;I'm more useed to root having the SHELL it has now, posix. &lt;BR /&gt;&lt;BR /&gt;Its certain that there is no or little PATH value, but the SHELL might be messed up in /etc/passwd as well.&lt;BR /&gt;&lt;BR /&gt;If it exists on your system, pwck and grpck commands  will validate this most important data file.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Mon, 15 Sep 2003 12:39:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sam-command-problem/m-p/3071113#M140701</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2003-09-15T12:39:43Z</dc:date>
    </item>
    <item>
      <title>Re: SAM command problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sam-command-problem/m-p/3071114#M140702</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;it sounds as if your root user has very little in his PATH - and your "other" user has more; when you make your first login as the "other" user, I assume that some variables are set and exported, e.g. PATH.&lt;BR /&gt;If you then change user to root in a way that does not overwrite the variables set in the first users shell, you simply take over what is exported from there. This is probably the reason why root cannot find sam when logged in directly.&lt;BR /&gt;Please try to execute this:&lt;BR /&gt;# echo $PATH&lt;BR /&gt;a) when logged in directly as root&lt;BR /&gt;b) when logged in as the other user&lt;BR /&gt;c) after changing user to root.&lt;BR /&gt;A guess is that b) and c) will show more than a).&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;John K.</description>
      <pubDate>Mon, 15 Sep 2003 13:18:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sam-command-problem/m-p/3071114#M140702</guid>
      <dc:creator>john korterman</dc:creator>
      <dc:date>2003-09-15T13:18:01Z</dc:date>
    </item>
    <item>
      <title>Re: SAM command problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sam-command-problem/m-p/3071115#M140703</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I guess the difference lies in the .profile file. The other user that u r using right now, must have set the PATH variable in the .profile.&lt;BR /&gt;&lt;BR /&gt;Try logging in as the root user and at the shell prompt&lt;BR /&gt;&lt;BR /&gt;1)export PATH=$PATH:/usr/sbin and then invoke sam or&lt;BR /&gt;2) Invoke sam by giving the full path  /user/sbin/sam or&lt;BR /&gt;3) In the .profile of the root user, add the line &lt;BR /&gt;export PATH=$PATH:/usr/sbin &lt;BR /&gt;Then logout and login and then try invoking sam.&lt;BR /&gt;Before invoking sam, just give echo $PATH and see whether it actually has /usr/sbin .&lt;BR /&gt;&lt;BR /&gt;Hope this helps.</description>
      <pubDate>Tue, 16 Sep 2003 04:21:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sam-command-problem/m-p/3071115#M140703</guid>
      <dc:creator>Bhuvaneswari Selvaraj</dc:creator>
      <dc:date>2003-09-16T04:21:27Z</dc:date>
    </item>
    <item>
      <title>Re: SAM command problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sam-command-problem/m-p/3071116#M140704</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;This only PATH problem try to set the PATH through SET command. otherwise match application user .profile with superuser .profile &lt;BR /&gt;bye &lt;BR /&gt;</description>
      <pubDate>Tue, 16 Sep 2003 05:51:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sam-command-problem/m-p/3071116#M140704</guid>
      <dc:creator>kumaresan_1</dc:creator>
      <dc:date>2003-09-16T05:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: SAM command problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sam-command-problem/m-p/3071117#M140705</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;As per your feed back i am giving some points as follows.&lt;BR /&gt;&lt;BR /&gt;i)the o/p of uname -a is&lt;BR /&gt;&lt;BR /&gt;HP-UX myhp B.10.20 E 9000/826 8-user license&lt;BR /&gt;&lt;BR /&gt;ii)for pwck and grpck commands there is no error regarding root user login&lt;BR /&gt;&lt;BR /&gt;iii)The o/p of #ehco $PATH is&lt;BR /&gt;&lt;BR /&gt;/usr/bin:/usr/ccs/bin:/usr/contrib/bin:/opt/nettladm/bin:/opt/pd/bin:/opt/upgrade/bin:/opt/langtools/bin:/opt/imake/bin:/opt/hparray/bin:/opt/pred/bin:/opt/perf/bin&lt;BR /&gt;&lt;BR /&gt;for the other user $echo $PATH o/p is&lt;BR /&gt;&lt;BR /&gt;/usr/bin:/usr/ccs/bin:/usr/contrib/bin:/opt/nettladm/bin:/opt/pd/bin:/opt/upgrade/bin:/opt/langtools/bin:/bin/imake/bin:/opt/hparray/bin:/opt/pred/bin:/opt/perf/bin:/usr/xmhs/cxa/bin:.:/bin:/usr/bin/:/usr/xmhs/bin:/etc:/usr/fmc/bin:/usr/lib/uucp:&lt;BR /&gt;&lt;BR /&gt;iv)for root user i din't find the .profile file in home directory.But one more file i have named .profile.0209 .&lt;BR /&gt;&lt;BR /&gt;v)I am able to run sam command while in root user login by using /usr/sbin/sam.&lt;BR /&gt;&lt;BR /&gt;As per above please advise me how to go about the problem.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 17 Sep 2003 07:36:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sam-command-problem/m-p/3071117#M140705</guid>
      <dc:creator>Ravikanth_2</dc:creator>
      <dc:date>2003-09-17T07:36:44Z</dc:date>
    </item>
    <item>
      <title>Re: SAM command problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sam-command-problem/m-p/3071118#M140706</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;It looks like "sam" has a symbolic link in somewhere ( and its path is included in the PATH of the other user, but not in root user).&lt;BR /&gt;Try to find all "sam" files with "find" command.&lt;BR /&gt;Also add "/usr/sbin/" to the PATH of root user.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;Kind regards,&lt;BR /&gt;Zigor</description>
      <pubDate>Wed, 17 Sep 2003 07:58:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sam-command-problem/m-p/3071118#M140706</guid>
      <dc:creator>Zigor Buruaga</dc:creator>
      <dc:date>2003-09-17T07:58:16Z</dc:date>
    </item>
    <item>
      <title>Re: SAM command problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sam-command-problem/m-p/3071119#M140707</link>
      <description>Hi again,&lt;BR /&gt;&lt;BR /&gt;it is a bit strange that you do not have a .profile for the root user, but I guess there could be reasons for that. Among other things, the root .profile often holds a line that adds /usr/sbin to the general PATH, e.g. like this:&lt;BR /&gt;PATH=/usr/sbin:$PATH&lt;BR /&gt;&lt;BR /&gt;You could try to include only the above line in the .profile for the root user, or alternatively, include "/usr/sbin" in /etc/PATH&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;John K.</description>
      <pubDate>Wed, 17 Sep 2003 08:11:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sam-command-problem/m-p/3071119#M140707</guid>
      <dc:creator>john korterman</dc:creator>
      <dc:date>2003-09-17T08:11:44Z</dc:date>
    </item>
    <item>
      <title>Re: SAM command problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sam-command-problem/m-p/3071120#M140708</link>
      <description>Did your problem get solved or not?&lt;BR /&gt;&lt;BR /&gt;You can do one of the following&lt;BR /&gt;1. Create a .profile file and add  the line &lt;BR /&gt;export PATH=$PATH:/usr/sbin&lt;BR /&gt;then at the prompt type . ./.profile (dot space dot slash dot profile) and then try invoking sam&lt;BR /&gt;&lt;BR /&gt;2. Just export the path variable at the command prompt and invoke sam. export PATH=$PATH:/usr/sbin</description>
      <pubDate>Wed, 17 Sep 2003 09:52:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sam-command-problem/m-p/3071120#M140708</guid>
      <dc:creator>Bhuvaneswari Selvaraj</dc:creator>
      <dc:date>2003-09-17T09:52:30Z</dc:date>
    </item>
    <item>
      <title>Re: SAM command problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sam-command-problem/m-p/3071121#M140709</link>
      <description>Dear all,&lt;BR /&gt;&lt;BR /&gt;As per John's reply,i did the same thing like i have created .profile file in root's home diredtory ie., "/" and set the path for /usr/sbin then i exported same path.After that i have logout and login as root.By using #echo $PATH.The o/p is showing new path ie., /usr/sbin.&lt;BR /&gt;&lt;BR /&gt;  Now i am able to run SAM Command without having any error.atlost my problem got solved.&lt;BR /&gt;But i am not uderstanding with having .profile file in user's home directory how the PATHs are effecting.&lt;BR /&gt;&lt;BR /&gt; Thanks to every body for advising me to sort out my problem.&lt;BR /&gt;&lt;BR /&gt;Thanks and regards,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 17 Sep 2003 10:15:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sam-command-problem/m-p/3071121#M140709</guid>
      <dc:creator>Ravikanth_2</dc:creator>
      <dc:date>2003-09-17T10:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: SAM command problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sam-command-problem/m-p/3071122#M140710</link>
      <description>Hi again,&lt;BR /&gt;&lt;BR /&gt;as Zigor already has indicated, the "additional" PATH of the other user:&lt;BR /&gt;:/usr/xmhs/cxa/bin:.:/bin:/usr/bin/:/usr/xmhs/bin:/etc:/usr/fmc/bin:/usr/lib/uucp: &lt;BR /&gt;&lt;BR /&gt;holds somewhere a link to /usr/sbin/sam. You can try to go into each of these directories  and check for links.&lt;BR /&gt;The far out possibility is that the other user's home dir is/usr/bin (his PATH includes the dot char, meaning look in current directory) - but I hope it is too far out.&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;John K.</description>
      <pubDate>Wed, 17 Sep 2003 10:31:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sam-command-problem/m-p/3071122#M140710</guid>
      <dc:creator>john korterman</dc:creator>
      <dc:date>2003-09-17T10:31:55Z</dc:date>
    </item>
    <item>
      <title>Re: SAM command problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sam-command-problem/m-p/3071123#M140711</link>
      <description>Ravi,&lt;BR /&gt;  During login, after authentication is done, the /etc/profile is first executed followed by $HOME/.profile.  .profile is used to the environment for a particular user while /etc/profile sets up for all users across the system.&lt;BR /&gt;&lt;BR /&gt;  The roots .profile sets /usr/sbin as the first PATH since most of the commands used by root is there and should be executed from /usr/sbin.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Umapathy</description>
      <pubDate>Wed, 17 Sep 2003 11:00:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sam-command-problem/m-p/3071123#M140711</guid>
      <dc:creator>Umapathy S</dc:creator>
      <dc:date>2003-09-17T11:00:43Z</dc:date>
    </item>
  </channel>
</rss>

