<?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: su - username -c command_name in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/su-username-c-command-name/m-p/2660394#M48192</link>
    <description>Hi Mike,&lt;BR /&gt;try "su oracel -c ls" (without minus). &lt;BR /&gt;It doesn't read the .profile.&lt;BR /&gt;Hope it helps.&lt;BR /&gt;Robert&lt;BR /&gt;</description>
    <pubDate>Thu, 07 Feb 2002 09:38:32 GMT</pubDate>
    <dc:creator>Heidl Robert</dc:creator>
    <dc:date>2002-02-07T09:38:32Z</dc:date>
    <item>
      <title>su - username -c command_name</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/su-username-c-command-name/m-p/2660389#M48187</link>
      <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;I am running HP-UX 11 and on my machine the above does not work.&lt;BR /&gt;&lt;BR /&gt;This is what I did&lt;BR /&gt;su - oracle -c dbstart and su - oracle -c ls&lt;BR /&gt;&lt;BR /&gt;All that the above did was to switch-user to oracle. The command were never executed.&lt;BR /&gt;Please help</description>
      <pubDate>Thu, 07 Feb 2002 06:41:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/su-username-c-command-name/m-p/2660389#M48187</guid>
      <dc:creator>Osama88</dc:creator>
      <dc:date>2002-02-07T06:41:44Z</dc:date>
    </item>
    <item>
      <title>Re: su - username -c command_name</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/su-username-c-command-name/m-p/2660390#M48188</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;For me it work (HP-UX 11.0)&lt;BR /&gt;&lt;BR /&gt;Does switch to other new created user work ?&lt;BR /&gt;</description>
      <pubDate>Thu, 07 Feb 2002 07:10:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/su-username-c-command-name/m-p/2660390#M48188</guid>
      <dc:creator>Printaporn_1</dc:creator>
      <dc:date>2002-02-07T07:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: su - username -c command_name</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/su-username-c-command-name/m-p/2660391#M48189</link>
      <description>Check which shell is used for your user "oracle". &lt;BR /&gt;Check if this shell can be called with "-c command".&lt;BR /&gt;Check if there are any errors during starting up the shell-environment for your user "oracle".&lt;BR /&gt;May be you need to check "man security".&lt;BR /&gt;&lt;BR /&gt;Hardy</description>
      <pubDate>Thu, 07 Feb 2002 07:20:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/su-username-c-command-name/m-p/2660391#M48189</guid>
      <dc:creator>Hartmut Lang</dc:creator>
      <dc:date>2002-02-07T07:20:30Z</dc:date>
    </item>
    <item>
      <title>Re: su - username -c command_name</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/su-username-c-command-name/m-p/2660392#M48190</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;Check your .profile for something like&lt;BR /&gt;&lt;BR /&gt;exec sh&lt;BR /&gt;&lt;BR /&gt;A fork to a new level will mean no command&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;             Steve Steel</description>
      <pubDate>Thu, 07 Feb 2002 08:22:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/su-username-c-command-name/m-p/2660392#M48190</guid>
      <dc:creator>Steve Steel</dc:creator>
      <dc:date>2002-02-07T08:22:21Z</dc:date>
    </item>
    <item>
      <title>Re: su - username -c command_name</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/su-username-c-command-name/m-p/2660393#M48191</link>
      <description>Hi Mike,&lt;BR /&gt;&lt;BR /&gt;First of all, which account you use to run this command? root? or superusers? If not, maybe you can not su to other accounts without password.&lt;BR /&gt;Second, what error messages you've got while running this command? Please post the error messages so that we can trace your problem.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Kenny.</description>
      <pubDate>Thu, 07 Feb 2002 08:51:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/su-username-c-command-name/m-p/2660393#M48191</guid>
      <dc:creator>Kenny Chau</dc:creator>
      <dc:date>2002-02-07T08:51:49Z</dc:date>
    </item>
    <item>
      <title>Re: su - username -c command_name</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/su-username-c-command-name/m-p/2660394#M48192</link>
      <description>Hi Mike,&lt;BR /&gt;try "su oracel -c ls" (without minus). &lt;BR /&gt;It doesn't read the .profile.&lt;BR /&gt;Hope it helps.&lt;BR /&gt;Robert&lt;BR /&gt;</description>
      <pubDate>Thu, 07 Feb 2002 09:38:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/su-username-c-command-name/m-p/2660394#M48192</guid>
      <dc:creator>Heidl Robert</dc:creator>
      <dc:date>2002-02-07T09:38:32Z</dc:date>
    </item>
    <item>
      <title>Re: su - username -c command_name</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/su-username-c-command-name/m-p/2660395#M48193</link>
      <description>Hi Mike,&lt;BR /&gt;&lt;BR /&gt;Try this,&lt;BR /&gt;&lt;BR /&gt;su - user_name -c "type your command here"&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Regds&lt;BR /&gt;</description>
      <pubDate>Thu, 07 Feb 2002 13:41:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/su-username-c-command-name/m-p/2660395#M48193</guid>
      <dc:creator>Sanjay_6</dc:creator>
      <dc:date>2002-02-07T13:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: su - username -c command_name</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/su-username-c-command-name/m-p/2660396#M48194</link>
      <description>Mike,&lt;BR /&gt;&lt;BR /&gt;I'm doing something similar right now. You will probably have to do as Robert suggested and use&lt;BR /&gt;&lt;BR /&gt;su oracle instead of su - oracle&lt;BR /&gt;&lt;BR /&gt;so it doesn't read the profile. If it still gives you problems, create a script with the oracle user's environment variables in it with the dbstart command after, and then run this from the command line. Something like&lt;BR /&gt;&lt;BR /&gt;su oracle -c myscript.sh&lt;BR /&gt;&lt;BR /&gt;Let us know how it works.&lt;BR /&gt;&lt;BR /&gt;Tim</description>
      <pubDate>Thu, 07 Feb 2002 14:02:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/su-username-c-command-name/m-p/2660396#M48194</guid>
      <dc:creator>Tim Woods_2</dc:creator>
      <dc:date>2002-02-07T14:02:23Z</dc:date>
    </item>
  </channel>
</rss>

