Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

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

by BrowserUk (Pope)
on Jul 23, 2013 at 14:23 UTC ( #1045880=note: print w/replies, xml ) Need Help??


in reply to Re^2: 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?

Hm. You mean that information is visible to other users? Sounds like a security flaw in *nix.


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.
  • Comment on Re^3: Is there a way with IPC::Run to hide command options from process table?

Replies are listed 'Best First'.
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

    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.

      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://1045880]
help
Chatterbox?
[1nickt]: ugh, buying a computer is hard for an old person
[stevieb]: How do you mean?
[1nickt]: They assume that I want things I don;t and don;t provide things I do want. Looking for a 17" laptop with 4k (even 3K display) and full numeric-pad keyboard.
[1nickt]: They assume that if I want a 17" monitor I could not possibly want 4k screen
[1nickt]: They assume I do not need a DVD drive

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2017-03-26 18:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (315 votes). Check out past polls.