<?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 Suppress ps -ef command line args in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/suppress-ps-ef-command-line-args/m-p/3776372#M262301</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Guys I have been coming back to you after a long gap. &lt;BR /&gt;The issue I am currently facing is as follows:&lt;BR /&gt;&lt;BR /&gt;Process A is talking to Process B. A invokes B(executable) by providing some arguments. Process A is a unix script. Now, if I do  "ps -ef" during communication between 2 processes, I can see the command line arguments being passed by A to B. &lt;BR /&gt;&lt;BR /&gt;I need to hide these arguments from the user. Let me know if there is a workaround to suppress these arguments from appearing in the output of ps -ef or any command.&lt;BR /&gt;&lt;BR /&gt;Thanks &amp;amp; Regards,&lt;BR /&gt;Pankaj</description>
    <pubDate>Mon, 24 Apr 2006 05:38:24 GMT</pubDate>
    <dc:creator>Purusa</dc:creator>
    <dc:date>2006-04-24T05:38:24Z</dc:date>
    <item>
      <title>Suppress ps -ef command line args</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/suppress-ps-ef-command-line-args/m-p/3776372#M262301</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Guys I have been coming back to you after a long gap. &lt;BR /&gt;The issue I am currently facing is as follows:&lt;BR /&gt;&lt;BR /&gt;Process A is talking to Process B. A invokes B(executable) by providing some arguments. Process A is a unix script. Now, if I do  "ps -ef" during communication between 2 processes, I can see the command line arguments being passed by A to B. &lt;BR /&gt;&lt;BR /&gt;I need to hide these arguments from the user. Let me know if there is a workaround to suppress these arguments from appearing in the output of ps -ef or any command.&lt;BR /&gt;&lt;BR /&gt;Thanks &amp;amp; Regards,&lt;BR /&gt;Pankaj</description>
      <pubDate>Mon, 24 Apr 2006 05:38:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/suppress-ps-ef-command-line-args/m-p/3776372#M262301</guid>
      <dc:creator>Purusa</dc:creator>
      <dc:date>2006-04-24T05:38:24Z</dc:date>
    </item>
    <item>
      <title>Re: Suppress ps -ef command line args</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/suppress-ps-ef-command-line-args/m-p/3776373#M262302</link>
      <description>Could Process A output the arguments to a file that would then be read by Process B?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Mon, 24 Apr 2006 05:41:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/suppress-ps-ef-command-line-args/m-p/3776373#M262302</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2006-04-24T05:41:24Z</dc:date>
    </item>
    <item>
      <title>Re: Suppress ps -ef command line args</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/suppress-ps-ef-command-line-args/m-p/3776374#M262303</link>
      <description>Pankaj,&lt;BR /&gt;use a file for process A to wtite the parameters, then let process B read that file.&lt;BR /&gt;</description>
      <pubDate>Mon, 24 Apr 2006 05:44:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/suppress-ps-ef-command-line-args/m-p/3776374#M262303</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2006-04-24T05:44:05Z</dc:date>
    </item>
    <item>
      <title>Re: Suppress ps -ef command line args</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/suppress-ps-ef-command-line-args/m-p/3776375#M262304</link>
      <description>Hi Pete/Peter,&lt;BR /&gt;&lt;BR /&gt;Thanks for your response.&lt;BR /&gt;&lt;BR /&gt;That seems to be a good option, however I have some constraints regarding executable B. It is presently reading the parameters from command line and I can't change its design.&lt;BR /&gt;&lt;BR /&gt;Waiting for something more on this...&lt;BR /&gt;&lt;BR /&gt;Thanks and regards,&lt;BR /&gt;Pankaj &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 24 Apr 2006 05:47:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/suppress-ps-ef-command-line-args/m-p/3776375#M262304</guid>
      <dc:creator>Purusa</dc:creator>
      <dc:date>2006-04-24T05:47:50Z</dc:date>
    </item>
    <item>
      <title>Re: Suppress ps -ef command line args</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/suppress-ps-ef-command-line-args/m-p/3776376#M262305</link>
      <description>There is no way to change the behavior of ps -- it will report the up to 60 characters (longer if -x is used) from the command line. The only solution is to create a wrapper, a short script that is named ps and parses the output to rfemove the arguments. This could get quite complicated if options like -H and -o are invoked by the user. If the target script/program requires secured parameters, it should be a priority to rewrite the code to accept the values from a file.</description>
      <pubDate>Mon, 24 Apr 2006 06:09:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/suppress-ps-ef-command-line-args/m-p/3776376#M262305</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2006-04-24T06:09:26Z</dc:date>
    </item>
    <item>
      <title>Re: Suppress ps -ef command line args</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/suppress-ps-ef-command-line-args/m-p/3776377#M262306</link>
      <description>This would be my suggestion.&lt;BR /&gt;&lt;BR /&gt;Create a new user, named for example ps.&lt;BR /&gt;&lt;BR /&gt;Create a new group for this user, called for example ps.&lt;BR /&gt;&lt;BR /&gt;Now you get a user named ps in a group named ps.&lt;BR /&gt;&lt;BR /&gt;Change the owner and permissions of the ps command:&lt;BR /&gt;&lt;BR /&gt;chmod 550 /bin/ps&lt;BR /&gt;chown ps:ps /bin/ps&lt;BR /&gt;&lt;BR /&gt;Add the users that you want to normally use ps in the "ps" group.&lt;BR /&gt;&lt;BR /&gt;Install sudo.&lt;BR /&gt;&lt;BR /&gt;Create a script that runs the ps command with the output filtered/modified. Call this script /bin/secps&lt;BR /&gt;&lt;BR /&gt;Configure your sudoers file to allow the execution of the secps command as user "ps". Using sudo, disallow the use of parameters for that command, like this:&lt;BR /&gt;&lt;BR /&gt;USERLIST     ALL = (ps) NOPASSWD: /bin/secps&lt;BR /&gt;&lt;BR /&gt;Then the users only can run the command with sudo.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 24 Apr 2006 08:50:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/suppress-ps-ef-command-line-args/m-p/3776377#M262306</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2006-04-24T08:50:18Z</dc:date>
    </item>
    <item>
      <title>Re: Suppress ps -ef command line args</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/suppress-ps-ef-command-line-args/m-p/3776378#M262307</link>
      <description>Try the process described here: &lt;A href="http://www.uaex.edu/srea/#Hiding_Passwords_From_UNIX_ps_Command" target="_blank"&gt;http://www.uaex.edu/srea/#Hiding_Passwords_From_UNIX_ps_Command&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;You'll have to rename your "B" to "B.hide", compile the C program, and name the new program "B".&lt;BR /&gt;&lt;BR /&gt;The original purpose of the program was to hide passwords passed on the command-line when calling Oracle sqplus commands, but it should work with any program.</description>
      <pubDate>Mon, 24 Apr 2006 11:55:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/suppress-ps-ef-command-line-args/m-p/3776378#M262307</guid>
      <dc:creator>Greg Vaidman</dc:creator>
      <dc:date>2006-04-24T11:55:08Z</dc:date>
    </item>
  </channel>
</rss>

