http://www.perlmonks.org?node_id=391128


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

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