COSmanager User Man pages
From Documentation
(Difference between revisions)
Revision as of 05:26, 1 May 2006 Moff (Talk | contribs) (→fs_tools) ← Previous diff |
Revision as of 06:32, 1 May 2006 Moff (Talk | contribs) (→cos) Next diff → |
||
Line 93: | Line 93: | ||
<br> | <br> | ||
== cos == | == cos == | ||
+ | '''NAME''' | ||
+ | :cos - Invoke COSmanager | ||
+ | |||
+ | |||
+ | '''SYNOPSIS | ||
+ | :<ttcos [-apD] [-d <db>] [-u <user>] [-v <version>] [<appl> [-C] [-v <version>] [-c <command> | <table> [<method>]]]</tt> | ||
+ | |||
+ | |||
+ | '''DESCRIPTION''' | ||
+ | :Cos is the command that invokes COSmanager and COSmanager applications. | ||
+ | |||
+ | :Cos performs security checks on the invoking user, asking for passwords if necessary, sets up the appropriate security profile and environment for the user, and then invokes either the main COSmanager menu, a COSmanager application, a method or a command. | ||
+ | |||
+ | |||
+ | '''Options''' | ||
+ | :;-D:Invoke the demonstration mode of COSmanager. (See below for more details). | ||
+ | |||
+ | :;-d database:Specifies a database holding the Functional Database table data. If the name specified does not end with .db, then this suffix will be appended to form a directory name, which must be located under both the <tt>$FShome</tt> and <tt>$APPL_HOME</tt> directories. If not specified, the default database (db) is used. | ||
+ | |||
+ | :;-v version:Specifies an alternate version of the COSmanager framework to invoke. The directory of the specified COSmanager version determines the value of the FShome variable, the base directory of the COSmanager framework. | ||
+ | |||
+ | :The following three options are only available if the user is super-user or cosmos: | ||
+ | |||
+ | :;-a:Ask "Who are you?". Normally cos automatically determines the ID of the invoking user, which in turn determines their security profile. If this option is specified, the user is prompted to enter his or her login ID, and password. If this is validated correctly, the user will be allowed into COSmanager with that user's security profile. | ||
+ | |||
'''COPYRIGHT''' | '''COPYRIGHT''' | ||
Line 98: | Line 123: | ||
<br> | <br> | ||
+ | |||
== daemon== | == daemon== | ||
Revision as of 06:32, 1 May 2006
Contents |
asgroup
NAME
- asgroup — Run a program with another group's permissions
SYNOPSIS
- asgroup <group> [<command>]
DESCRIPTION
- Asgroup changes the effective group ID of the user to the specified group while running command. If no command was specified, an interactive Shell will be started, either using the program defined by the SHELL environment variable, or /bin/sh if SHELL is not defined. Asgroup will only permit execution to proceed if either:
- The user is part of the specified group; or
- The command's group is the one specified, and it has the set group ID bit enabled [see chmod(1)], and the user has execute access to the command.
All attempts (both successful and not) are logged to an audit trail.
FILES
- /usr/spool/log/asgroup
- Audit log file. Every execution of asgroup is logged here detailing the user, terminal, date andtime, the command and whether it was successful.
SEE ALSO
- fs_tools(1).
COPYRIGHT
- Copyright © 1990-2006 Functional Software. All rights reserved.
asuser
NAME
- asuser - Run a program as another user
SYNOPSIS
- asuser [-12cdosu] <user> <command>
DESCRIPTION
- Asuser runs a command in the context of another user. It is normally only run by a process with the effective user ID of the superuser.
- Switching to the specified user causes the process to switch to that user's ID and Groups, plus the following environment variables to be set: LOGNAME, USER, HOME and FULLNAME.
OPTIONS
- -c
- Check that the caller's effective ID is superuser before running the command. By default, if the caller is not superuser, the command is still run, but without switching users.
- -d
- Change into the user's home directory before running the command, and before creating any output files (see the -o, -1 and -2 options). Normally the command is run in the current working directory.
- -s
- Run the command using the shell. This allows arbitrary shell syntax to be used in the command. Normally the command must be a single program name, optionally followed by its parameters.
- -u <ulimit>
- Set the ulimit to the specified value prior to running the command.
- -o <file>
- Redirect both STDOUT and STDERR to the given file after switching to the new user. If the file does not exist, it will be created with the ownership of the given user. Note that if you use:
- asuser <user> <command> > <file>
- the file will be opened by the shell prior to running asuser, causing it to be created with "root" ownership.
- -1 <file>
- Redirect STDOUT to the given file after switching to the new user. Please refer to the discussion under -o.
- -2 <file>
- Redirect STDERR to the given file after switching to the new user. Please refer to the discussion under -o.
EXAMPLE
- asuser mike weekly_report -d prodn
- Runs the command "weekly_report -d prodn" as user "mike".
WARNINGS
- This program must not be installed with the SETUID flag set, otherwise system security would be compromised.
COPYRIGHT
- Copyright © 1990-2006 Functional Software. All rights reserved.
audcycle
COPYRIGHT
- Copyright © 1990-2006 Functional Software. All rights reserved.
audit
COPYRIGHT
- Copyright © 1990-2006 Functional Software. All rights reserved.
audview
COPYRIGHT
- Copyright © 1990-2006 Functional Software. All rights reserved.
browser
COPYRIGHT
- Copyright © 1990-2006 Functional Software. All rights reserved.
cos
NAME
- cos - Invoke COSmanager
SYNOPSIS
- <ttcos [-apD] [-d <db>] [-u <user>] [-v <version>] [<appl> [-C] [-v <version>] [-c <command> |