This command allows you to configure the environment of tnpasswd. You can use it to configure the prompts you want tnpasswd to expect from the UNIX password program. These include prompts for user name, old password, and new password.
You can also use this command to set the name of the UNIX password command. You can define the values used for the prompts as patterns, using shell-style, or glob-style, pattern-matching. For example, you can configure the old password prompt as *[Oo]ld*word:. This means it matches all of the following prompts:
Old password: old password: Enter your old password:
For further information on shell-style pattern matching, refer to the UNIX man pages for the Bourne shell.
TNHOME/usr/sbin
tncustom [-L]
tncustom [-R [-u utility [{-a attribute}]]
tncustom (-A|-M) -u utility {-a attribute=value}
tncustom -D -u utility
|
-u utility |
Specify the utility. |
This attribute names the UNIX command to run when changing a user's password, along with any command-line options. It defaults to passwd.
tncustom -A -u tnpasswd -a command=value
This attribute designates the patterns to match the password program's prompt for the new password. You can define any number of patterns.
tncustom -A -u tnpasswd -a new-prompt=string
This attribute designates the patterns to match the password program's prompt for the old password. You can define any number of patterns.
tncustom -A -u tnpasswd -a old-prompt=string
This attribute designates the patterns to match the password program's prompt for a user name. You can define any number of patterns. Most UNIX password programs do not prompt for a user name, in which case you do not need to set this attribute.
tncustom -A -u tnpasswd -a user-prompt=string
Use the following command to list all defined utilities:
tncustom -L |
Use the following command to add the command attribute of value /usr/bin/yppasswd to the tnpasswd utility:
tncustom -A -u tnpasswd -a command="/usr/bin/yppasswd" |
Use the following command to modify the tnpasswd utility's new-prompt attribute, of value *[Nn]ew*word::
tncustom -M -u tnpasswd -a new-prompt="*[Nn]ew*word:" |
Use the following command to delete the tnpasswd utility:
tncustom -D -u tnpasswd |
Use the following command to read the value of the user-prompt attribute for the tnpasswd utility:
tncustom -R -u tnpasswd -a user-prompt |
output:
Enter Your Password: |