Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^4: Is there a way with IPC::Run to hide command options from process table?

by DeadPoet (Scribe)
on Jul 23, 2013 at 14:51 UTC ( #1045887=note: print w/replies, xml ) Need Help??


in reply to Re^3: Is there a way with IPC::Run to hide command options from process table?
in thread Is there a way with IPC::Run to hide command options from process table?

There is no argument there! UNIX has numerous "features" what are less than optimal. Being the glutton for punishment that I am, I still love UNIX. So to your point, yes the information is visible and that is not always a good thing.

  • Comment on Re^4: Is there a way with IPC::Run to hide command options from process table?

Replies are listed 'Best First'.
Re^5: Is there a way with IPC::Run to hide command options from process table?
by BrowserUk (Pope) on Jul 23, 2013 at 15:15 UTC
    So to your point, yes the information is visible and that is not always a good thing.

    Then I guess you legitimised your requirement :) How about:

    #! perl ... my $pid = open CMD, '|-', 'usermod', '-p', ...; print CMD 'password'; close CMD;

    Presumably you can secure the script.

    You can then take it a step further and put the password, probably encrypted, in a hidden, only-readable-by-the-current-user, file, and arrange for the perl script to read that file, decrypt the password and then supply it to the command via the pipe.

    Thus you can make the script generally available, but only usable from accounts that have the appropriate file, with an appropriately encrypted password, in the appropriate place.


    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1045887]
help
Chatterbox?
[LanX]: There is a very simple solution ...
[marinersk]: Correct, so one workaround is to leave one vote.
[marinersk]: But I was looking for a more elegant solution. It appears noone online at this time is aware of one.
[LanX]: go to Nodelet Settings and click "All nodelets off"
[LanX]: SUPER STABLE!!!
[marinersk]: LanX++ LOL Yes, that is another workaround. :-)
[LanX]: strangely you can't disable the XP nodelet
[LanX]: But you can use CSS to hide it
[LanX]: and disoplay the data permanently in your peronal nodelet
[marinersk]: I saw that you could post it on the Personal Nodelet, but you have to provide the content also. No way to auto-populate it. Not that this would solve my distraction problem...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2017-05-29 14:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?