Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Exec Fork Trick

by marius (Hermit)
on Jul 01, 2001 at 21:36 UTC ( #93036=note: print w/replies, xml ) Need Help??


in reply to Exec Fork Trick

ginseng,
I don't know about OpenBSD, but on FreeBSD boxen you can use the pw(8) command with the -h flag to pass it a filehandle. Using pw usermod <username> -h 0 will allow you to pass the password to STDIN. However, to keep it off STDIN, you could create another filehandle, snag it's FD#, and pass it through that FH.

Hope that helps, lots more info in the pw(8) man page.

-marius

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://93036]
help
Chatterbox?
[marioroy]: Tk, Gtk2, Gtk3 requires extra care.
[marioroy]: I was unable to run parallel with Win32::Console. Fortunately, running parallel behind Win32::API is possible.

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (7)
As of 2017-09-22 10:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (260 votes). Check out past polls.

    Notices?