pts_interactive1
Enters interactive mode
Usage
pts interactive
[-cell]
<cell
name>
[-noauth]
[-auth]
[-localauth]
[-force]
[-help]
[-encrypt]
[-config
<config
directory>]
pts in
[-c]
<cell
name>
[-n]
[-f]
[-h]
[-a]
[-e]
[-co
<config
directory>]
Overview
The pts interactive command allows the user to enter an interactive mode, useful for running bulk commands like creating new users or groups.
pts interactive uses the authentication state supplied on its command line to run all bulk commands. However, if a bulk command is supplied with authentication options such as -cell, -localauth, -auth or -noauth then it, and all subsequent bulk commands, will be run with those options.
Cautions
Prior to OpenAFS 1.4.5 and OpenAFS 1.5.23, the pts interactive command was only available on Unix or Linux and when OpenAFS was compiled with the supergroups option (disabled by default). As of OpenAFS 1.4.5 and 1.5.23, it is always available.
Running bulk pts commands may degrade the performance of the Protection Server while they are run and server resources may not be released immediately after commands are run. The pts sleep command can be used in interactive mode or with pts source to give the Protection Server a change to catch up.
Options
pts interactive only takes the standard pts options.
-
-auth -
Use the calling user's tokens to communicate with the Protection Server. For more details, see pts(1).
|
Names the cell in which to run the command. For more details, see pts(1). |
|---|---|
|
Use an alternate config directory. For more details, see pts(1). |
-
-encrypt -
Encrypts any communication with the Protection Server. For more details, see pts(1).
-
-force -
Enables the command to continue executing as far as possible when errors or other problems occur, rather than halting execution at the first error.
-
-help -
Prints the online help for this command. All other valid options are ignored.
-
-localauth -
Constructs a server ticket using a key from the local /etc/openafs/server/KeyFile file. Do not combine this flag with the
-cellor-noauthoptions. For more details, see pts(1).
-
-noauth -
Assigns the unprivileged identity anonymous to the issuer. For more details, see pts(1).
Output
The output is the same as if each individual command were run from the command line.
Examples
Here is an example of a pts interactive session:
% pts interactivepts> examine adminName: admin, id: 1, owner: system:administrators, creator: anonymous,membership: 2, flags: S----, group quota: 20.pts> helppts: Commands are:adduser add a user to a groupapropos search by help textchown change ownership of a groupcreategroup create a new groupcreateuser create a new userdelete delete a user or group from databaseexamine examine an entryhelp get help on commandsinteractive enter interactive modelistentries list users/groups in the protection databaselistmax list max idlistowned list groups owned by an entry or zero id gets orphaned groupsmembership list membership of a user or groupquit exit programremoveuser remove a user from a grouprename rename user or groupsetfields set fields for an entrysetmax set max idsleep pause for a bitsource read commands from filepts> quit%
Privilege required
The same privilege is required to run the command in interactive mode as is required to run the command by itself on the command line. Some commands such as pts createuser require that the user belong to the system:administrators group, while others do not.
Releases
9 releases since Debian 5.0 (Lenny); the text changed 8 times.
-auth since Debian 10 (Buster);
-encrypt since Debian 10 (Buster);
-help since Debian 7 (Wheezy).