pbpasswd
Version 10.3.0: pbpasswd deprecated. pbpasswd functionality is supported through the pbadmin program.
pbpasswd generates an encrypted password that can be used by the getstringpasswd() function in the configuration file. When you run pbpasswd, you can specify a password with the -i option or provide it on standard input. If standard input is a tty, then the program asks you to type the password twice; otherwise, it reads the raw password from standard input.
The program then writes the encrypted version of the password to the file that is specified by the -o option, or prints it on standard output.
Syntax
- Version 3.5 and earlier: long command options not supported.
- Version 4.0 and later: long command options supported.
pbpasswd [options] -i, --password=password -o, --output=filename pbpasswd –v | --versions pbpasswd --help
Arguments
-i, --password=password | Optional. The password to encrypt. |
-o, --output=filename | Optional. Writes the encrypted version of the password to the specified output file. |
-v | Optional. Displays the pbpasswd version and exits. |
--help |
Displays the program help message and exits. |
Files
None
pbpasswd –i FELIX –o /tmp/pbpasswd.out
pbpasswd –i FELIX 0123m68dg5.87
pbpasswd Enter Password: Retype Password: The encrypted password is: 4567j68gf5.88