userdbpw(8)


NAME

   userdbpw - create an encrypted password

SYNOPSIS

   userdbpw [[-md5] | [-hmac-md5] | [-hmac-sha1]] |userdb {name} set
                  {field}

DESCRIPTION

   userdbpw enables secure entry of encrypted passwords into
   /etc/courier/userdb.

   userdbpw reads a single line of text on standard input, encrypts it,
   and prints the encrypted result to standard output.

   If standard input is attached to a terminal device, userdbpw explicitly
   issues a "Password: " prompt on standard error, and turns off echo
   while the password is entered.

   The -md5 option is available on systems that use MD5-hashed passwords
   (such as systems that use the current version of the PAM library for
   authenticating, with MD5 passwords enabled). This option creates an MD5
   password hash, instead of using the traditional crypt() function.

   -hmac-md5 and -hmac-sha1 options are available only if the userdb
   library is installed by an application that uses a challenge/response
   authentication mechanism.  -hmac-md5 creates an intermediate HMAC
   context using the MD5 hash function.  -hmac-sha1 uses the SHA1 hash
   function instead. Whether either HMAC function is actually available
   depends on the actual application that installs the userdb library.

   Note that even though the result of HMAC hashing looks like an
   encrypted password, it's really not. HMAC-based challenge/response
   authentication mechanisms require the cleartext password to be
   available as cleartext. Computing an intermediate HMAC context does
   scramble the cleartext password, however if its compromised, it WILL be
   possible for an attacker to succesfully authenticate. Therefore,
   applications that use challenge/response authentication will store
   intermediate HMAC contexts in the "pw" fields in the userdb database,
   which will be compiled into the userdbshadow.dat database, which has
   group and world permissions turned off. The userdb library also
   requires that the cleartext userdb source for the userdb.dat and
   userdbshadow.dat databases is also stored with the group and world
   permissions turned off.

   userdbpw is usually used together in a pipe with userdb, which reads
   from standard input. For example:

       userdbpw -md5 | userdb users/john set systempw

   or:

       userdbpw -hmac-md5 | userdb users/john set hmac-md5pw

   These commands set the systempw field in the record for the user john
   in /etc/courier/userdb/users file, and the hmac-md5pw field. Don't
   forget to run makeuserdb for the change to take effect.

   The following command does the same thing:

       userdb users/john set systempw=SECRETPASSWORD

   However, this command passes the secret password as an argument to the
   userdb command, which can be viewed by anyone who happens to run ps(1)
   at the same time. Using userdbpw allows the secret password to be
   specified in a way that cannot be easily viewed by ps(1).

SEE ALSO

   userdb(8)[1], makeuserdb(8)[2]

NOTES

    1. userdb(8)
       [set $man.base.url.for.relative.links]/userdb.html

    2. makeuserdb(8)
       [set $man.base.url.for.relative.links]/makeuserdb.html





Opportunity


Personal Opportunity - Free software gives you access to billions of dollars of software at no cost. Use this software for your business, personal use or to develop a profitable skill. Access to source code provides access to a level of capabilities/information that companies protect though copyrights. Open source is a core component of the Internet and it is available to you. Leverage the billions of dollars in resources and capabilities to build a career, establish a business or change the world. The potential is endless for those who understand the opportunity.

Business Opportunity - Goldman Sachs, IBM and countless large corporations are leveraging open source to reduce costs, develop products and increase their bottom lines. Learn what these companies know about open source and how open source can give you the advantage.





Free Software


Free Software provides computer programs and capabilities at no cost but more importantly, it provides the freedom to run, edit, contribute to, and share the software. The importance of free software is a matter of access, not price. Software at no cost is a benefit but ownership rights to the software and source code is far more significant.


Free Office Software - The Libre Office suite provides top desktop productivity tools for free. This includes, a word processor, spreadsheet, presentation engine, drawing and flowcharting, database and math applications. Libre Office is available for Linux or Windows.





Free Books


The Free Books Library is a collection of thousands of the most popular public domain books in an online readable format. The collection includes great classical literature and more recent works where the U.S. copyright has expired. These books are yours to read and use without restrictions.


Source Code - Want to change a program or know how it works? Open Source provides the source code for its programs so that anyone can use, modify or learn how to write those programs themselves. Visit the GNU source code repositories to download the source.





Education


Study at Harvard, Stanford or MIT - Open edX provides free online courses from Harvard, MIT, Columbia, UC Berkeley and other top Universities. Hundreds of courses for almost all major subjects and course levels. Open edx also offers some paid courses and selected certifications.


Linux Manual Pages - A man or manual page is a form of software documentation found on Linux/Unix operating systems. Topics covered include computer programs (including library and system calls), formal standards and conventions, and even abstract concepts.