Chatta subito con l'assistenza
Chat con il supporto

Privilege Manager for Unix 7.3 - Administration Guide

Introducing Privilege Manager for Unix Planning Deployment Installation and Configuration Upgrade Privilege Manager for Unix System Administration Managing Security Policy The Privilege Manager for Unix Security Policy Advanced Privilege Manager for Unix Configuration Administering Log and Keystroke Files InTrust Plug-in for Privilege Manager for Unix Troubleshooting Privilege Manager for Unix Policy File Components Privilege Manager for Unix Variables
Variable names Variable scope Global input variables Global output variables Global event log variables PM settings variables
Privilege Manager for Unix Flow Control Statements Privilege Manager for Unix Built-in Functions and Procedures
Environment functions Hash table functions Input and output functions LDAP functions LDAP API example List functions Miscellaneous functions Password functions Remote access functions String functions User information functions Authentication Services functions
Privilege Manager for Unix programs Installation Packages

innetgroup

Syntax
int innetgroup ( string netgroup, string host )
Description

innetgroup returns true if the specified host is in the specified NIS netgroup on the policy server; otherwise returns false.

Example
if ( ! innetgroup("submithosts", submithost)) { 
   reject "You are not permitted to submit a command from this host"; 
}

innetuser, inusernetgroup

Syntax
int innetuser (string netgroup, string user)
int inusernetgroup (string netgroupname, string username)
Description

innetuser or inusernetgroup returns true if the specified user is in the specified NIS netgroup or other specified group on the policy server; otherwise the function returns false.

Example
if ( ! innetuser("submitusers", user)) { 
   reject "You are not permitted to submit a command from this host"; 
}
if ( ! inusernetgroup("submitusers", user)) { 
   reject "You are not permitted to submit a command from this host"; 
}
Related Topics

innetgroup

lineno

Syntax
int lineno( )
Description

lineno returns the current line number in the policy file.

Example
printf("TRACE: user:%s, cmd:%s, lineno:%d\n", user, command, lineno());

mktemp

Syntax
string mktemp ( string template )
Description

mktemp returns a unique filename which is guaranteed not to exist on the policy server. Use the mktemp function to create unique temporary filenames.

For more information, see the mktemp(3) man page.

Example
#generate a unique filename-the XXXXXX chars will be replaced to construct a unique name 
filename=mktemp("/tmp/pmXXXXXX"); 
print(filename); // prints "/tmp/pmAxK2de"
Related Documents

The document was helpful.

Seleziona valutazione

I easily found the information I needed.

Seleziona valutazione