Skip to main content
Common Reference

The tpasswd Command

Usage
tpasswd [option]

Where:

OptionDescriptionProductVersion
--compare
Aliases: -C
Compare given password.store file to currently used one.CTTR7.1.3
--create
Aliases: -c
Creates a new user/password.CTTR
--delete
Aliases: -d
Delete a user/password combination.CTTR
--encrypt.password
Aliases: -e
Encrypt the password.CTTR
--file
Aliases: -f
Specify the location of the security.properties file.CTTR
--help
Aliases: -h
CTTR
--password.file.location
Aliases: -p
Specify the password file location.CTTR
--target
Aliases: -t
Specify the target application.CTTR
--truststore.location
Aliases: -ts
CTTR

Using the --compare.to option

Version availability

Available in 7.1.3 and later.

The --compare.to switch allows for comparing currently used passwords.store file to a given one. If the files contain identical users and passwords, it will display true and return 0. If not, it will display false and return error code 2.

Example:

shell> Given passwords file identical to current one: true