TotalNET Advanced Server 5.2 Reference Manual

tncustom

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.

Location

TNHOME/usr/sbin

Usage

tncustom [-L]
tncustom [-R [-u utility [{-a attribute}]]
tncustom (-A|-M) -u utility {-a attribute=value}
tncustom -D -u utility

Options

-u utility

Specify the utility. 

Attributes

command

This attribute names the UNIX command to run when changing a user's password, along with any command-line options. It defaults to passwd.

Usage:

tncustom -A -u tnpasswd -a command=value

new-prompt

This attribute designates the patterns to match the password program's prompt for the new password. You can define any number of patterns.

Usage:

tncustom -A -u tnpasswd -a new-prompt=string

old-prompt

This attribute designates the patterns to match the password program's prompt for the old password. You can define any number of patterns.

Usage:

tncustom -A -u tnpasswd -a old-prompt=string

user-prompt

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.

Usage:

tncustom -A -u tnpasswd -a user-prompt=string

Examples

  1. Use the following command to list all defined utilities:


    tncustom -L
  2. 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"
  3. 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:"
  4. Use the following command to delete the tnpasswd utility:


    tncustom -D -u tnpasswd
  5. 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: