<?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: Why in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/why/m-p/4111837#M726673</link>
    <description>If you are using CDE, have a look at &lt;BR /&gt;&lt;BR /&gt;.dtprofile&lt;BR /&gt;&lt;BR /&gt;...&lt;BR /&gt;#&lt;BR /&gt;#  If $HOME/.profile (.login) has been edited as described above, uncomment&lt;BR /&gt;#  the following line.&lt;BR /&gt;#&lt;BR /&gt;# DTSOURCEPROFILE=true&lt;BR /&gt;</description>
    <pubDate>Wed, 05 Dec 2007 07:38:39 GMT</pubDate>
    <dc:creator>Torsten.</dc:creator>
    <dc:date>2007-12-05T07:38:39Z</dc:date>
    <item>
      <title>Why</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/why/m-p/4111835#M726671</link>
      <description>when I append :/sbin/usr to variable PATH in .profile file for any user (other than root) ,I became able to run all the commands &lt;BR /&gt;but from root user shell&lt;BR /&gt;then run command (su - username)&lt;BR /&gt;then run any command&lt;BR /&gt;but when I enter to computer under other user&lt;BR /&gt;I can not run any command ?</description>
      <pubDate>Wed, 05 Dec 2007 07:31:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/why/m-p/4111835#M726671</guid>
      <dc:creator>atef_3</dc:creator>
      <dc:date>2007-12-05T07:31:52Z</dc:date>
    </item>
    <item>
      <title>Re: Why</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/why/m-p/4111836#M726672</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;Change the .profile by the following entry and remove your entry&lt;BR /&gt;&lt;BR /&gt;PATH=$PATH:/sbin/usr&lt;BR /&gt;&lt;BR /&gt;then login su or direct login&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 05 Dec 2007 07:35:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/why/m-p/4111836#M726672</guid>
      <dc:creator>Jeeshan</dc:creator>
      <dc:date>2007-12-05T07:35:44Z</dc:date>
    </item>
    <item>
      <title>Re: Why</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/why/m-p/4111837#M726673</link>
      <description>If you are using CDE, have a look at &lt;BR /&gt;&lt;BR /&gt;.dtprofile&lt;BR /&gt;&lt;BR /&gt;...&lt;BR /&gt;#&lt;BR /&gt;#  If $HOME/.profile (.login) has been edited as described above, uncomment&lt;BR /&gt;#  the following line.&lt;BR /&gt;#&lt;BR /&gt;# DTSOURCEPROFILE=true&lt;BR /&gt;</description>
      <pubDate>Wed, 05 Dec 2007 07:38:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/why/m-p/4111837#M726673</guid>
      <dc:creator>Torsten.</dc:creator>
      <dc:date>2007-12-05T07:38:39Z</dc:date>
    </item>
    <item>
      <title>Re: Why</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/why/m-p/4111838#M726674</link>
      <description>&amp;gt;&amp;gt;&amp;gt;but from root user shell&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;then run command (su - username)&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;then run any command&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;but when I enter to computer under other user&lt;BR /&gt;&lt;BR /&gt;I did not understand ur problem :(&lt;BR /&gt;Please elaborate...</description>
      <pubDate>Wed, 05 Dec 2007 07:41:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/why/m-p/4111838#M726674</guid>
      <dc:creator>Kapil Jha</dc:creator>
      <dc:date>2007-12-05T07:41:05Z</dc:date>
    </item>
    <item>
      <title>Re: Why</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/why/m-p/4111839#M726675</link>
      <description>Under user other than root ,To run commands such as (ping,telnet,....)&lt;BR /&gt;I must change variable PATH . So I changed .profile as &lt;BR /&gt;    (PATH=$PATH:/usr/sbin:.) &lt;BR /&gt;But there are two cases :-&lt;BR /&gt;1)-Under user other than root I must &lt;BR /&gt;   run .profile to run commands (ping,...)&lt;BR /&gt;2)-Login to user via root when run &lt;BR /&gt;    command  (su - username)&lt;BR /&gt;    I can run commands (ping,...)directly&lt;BR /&gt;    without need to run .profile&lt;BR /&gt; &lt;BR /&gt;            (Why ????) &lt;BR /&gt;&lt;BR /&gt;Thank you,,&lt;BR /&gt;</description>
      <pubDate>Sat, 08 Dec 2007 08:16:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/why/m-p/4111839#M726675</guid>
      <dc:creator>atef_3</dc:creator>
      <dc:date>2007-12-08T08:16:34Z</dc:date>
    </item>
    <item>
      <title>Re: Why</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/why/m-p/4111840#M726676</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;the other solution is SUDO&lt;BR /&gt;&lt;BR /&gt;You can run such commands without su is sudo.&lt;BR /&gt;&lt;BR /&gt;This will be very much effective to trace.</description>
      <pubDate>Sat, 08 Dec 2007 10:01:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/why/m-p/4111840#M726676</guid>
      <dc:creator>Jeeshan</dc:creator>
      <dc:date>2007-12-08T10:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: Why</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/why/m-p/4111841#M726677</link>
      <description>&lt;!--!*#--&gt;First, it would be nice if you chose subjects&lt;BR /&gt;more informative than "Why" or "Route".&lt;BR /&gt;&lt;BR /&gt;&amp;gt; I can not run any command ?&lt;BR /&gt;&lt;BR /&gt;What does this mean?  What, exactly, do you&lt;BR /&gt;do, and what, exactly, happens when you do&lt;BR /&gt;it?&lt;BR /&gt;&lt;BR /&gt;&amp;gt; [...] So I changed .profile as&lt;BR /&gt;&amp;gt; (PATH=$PATH:/usr/sbin:.) &lt;BR /&gt;&lt;BR /&gt;Whose .profile?  You didn't actually use the&lt;BR /&gt;parentheses ("()"), did you?  What _is_ your&lt;BR /&gt;PATH in all these cases?&lt;BR /&gt;&lt;BR /&gt;      echo $PATH&lt;BR /&gt;&lt;BR /&gt;&amp;gt; [...] when I enter to computer under other&lt;BR /&gt;&amp;gt; user&lt;BR /&gt;&lt;BR /&gt;You mean like Telnet, and log in as a&lt;BR /&gt;non-root user?&lt;BR /&gt;&lt;BR /&gt;      ls -l .profile&lt;BR /&gt;&lt;BR /&gt;What is the user's shell?  (Changing .profile&lt;BR /&gt;may not do much for a C shell user.)</description>
      <pubDate>Sat, 08 Dec 2007 11:33:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/why/m-p/4111841#M726677</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2007-12-08T11:33:25Z</dc:date>
    </item>
    <item>
      <title>Re: Why</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/why/m-p/4111842#M726678</link>
      <description>&amp;gt;Under user other than root, to run commands such as (ping, telnet,....).  I must change variable PATH .&lt;BR /&gt;&lt;BR /&gt;(To me, it isn't worth doing that, so I always use the absolute path.)&lt;BR /&gt;&lt;BR /&gt;&amp;gt;So I changed .profile as (PATH=$PATH:/usr/sbin:.)&lt;BR /&gt;&lt;BR /&gt;That seems right.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;1)-Under user other than root I must run .profile to run commands (ping,...)&lt;BR /&gt;&lt;BR /&gt;Of course.  You must either re-login or you must source .profile to get the changes there.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;2)-Login to user via root when run command (su - username)&lt;BR /&gt;&lt;BR /&gt;This (-) will read .profile.  So will using login.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;I can run commands (ping,...) directly without need to run .profile&lt;BR /&gt;&lt;BR /&gt;If you change .profile, you must somehow read it.  But you only need to do this once, per login session.</description>
      <pubDate>Sat, 08 Dec 2007 22:42:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/why/m-p/4111842#M726678</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-12-08T22:42:33Z</dc:date>
    </item>
  </channel>
</rss>

