Product Documentation

FairCom RTG BTRV User Guide

Previous Topic

Next Topic

-setowner

Sets the password (also known as the owner name) of a file in order to restrict access to that file.

Usage

ctutil -setowner file password 0|1

where:

  • file - File name (without extension)
  • password - File password (maximum length: 10 bytes)
  • 0 - Password is required for any access mode
  • 1 - Permits read-only access if password is not specified

The password parameter is mandatory. Once set, accessing the file requires using the -o option to provide the password.

If the <instance user> attribute is set to a user that is part of the ADMIN group, the file will be accessible regardless of what password is provided.

If <instance user> is not set, or is set to a user that is not part of the ADMIN group, then the password provided must match the one set by -setowner to access the file.

In order to remove an existing file password, the -clrowner command must be used to specify the password with the -o option.

TOCIndex