Description
Type string READONLY
group contains the name of user's primary group.
Example
if (group == "admin") adminusers = append(adminusers,user);
Type string READONLY
group contains the name of user's primary group.
if (group == "admin") adminusers = append(adminusers,user);
Type string READONLY
groups contains the list all groups in which the user is a member.
# If a user belongs to a particular group, reject the command
if ( "restrictedUsers" in groups )
{
reject;
}Type string READONLY
host identifies the host name where the user has requested to run the command.
# If the requested host is not in the allowed_hosts list, reject the command
allowed_hosts = {“hosta.test.com”, “hostb.test.com”, “hostc.test.com”};
if ( host !in allowed_hosts )
{
reject “Commands on host “ + host + “ are not allowed. \n”;
}Type integer READONLY
hour contains the hour the request was submitted (0 – 23).
if (hour == 12)
{
// require the users password from 12:00 to 12:59
if(!(userpasswd())
reject;
}
accept;© ALL RIGHTS RESERVED. Terms of Use Privacy Centro de preferência de cookies