Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^3: Programmatically Adding E-Mail Accounts

by matija (Priest)
on Sep 15, 2004 at 10:49 UTC ( #391128=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Programmatically Adding E-Mail Accounts
in thread Programmatically Adding E-Mail Accounts

That is not actually correct.
Actually, it IS.

The passwd manpage on Linux (Debian) and Solaris do not list the --stdin switch. Quite possibly you are running some system that supports it, but that DOES NOT make what I said incorrect.

The question did not define which operating system the machine he is using actually runs, but it's far more likely that it doesn't support --stdin that that it does.


Comment on Re^3: Programmatically Adding E-Mail Accounts
Re^4: Programmatically Adding E-Mail Accounts
by tachyon (Chancellor) on Sep 15, 2004 at 13:04 UTC

    but it's far more likely that it doesn't support --stdin that that it does.

    Well given that it is valid for passwd(1) on RH, and RH is the most popular Linux, and RH has 50% market share according to netcraft, which is 3x Debian I would simply have to disagree with that premise. Linux is also about 2:1 Unix and 50% of Unix is Solaris so RH is 2:1 Solaris AOTBE.

    [root@devel3 bayes_cache]# uname -a Linux devel3.blah.org 2.4.18-3smp #1 SMP Thu Apr 18 07:27:31 EDT 2002 +i686 unknown [root@devel3 bayes_cache]# man passwd PASSWD(1) User utilities PASSWD(1) NAME passwd - update a user's authentication tokens(s) SYNOPSIS passwd [-k] [-l] [-u [-f]] [-d] [-S] [username] DESCRIPTION Passwd is used to update a user's authentication token(s). [snip] --stdin This option is used to indicate that passwd should read +the new password from standard input, which can be a pipe.

    cheers

    tachyon

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://391128]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (14)
As of 2014-09-03 08:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (35 votes), past polls