samnonrootuser

Name

samnonrootuser - samnonrootuser configure local users to run System Automation commands.

Synopsis

samnonrootuser [-h] [-a|-add |-d |--delete] [-V--silent] [-l<log file>] [--local] [--manage group] [ -x| -sa admin] [-g|-group <groupName>] [-gid--gid<groupld>] [<userName>]

Description

The samnonrootuser command configures the user to run System Automation commands, either as 'Operator', or as 'Administrator'. In default only the root user is authorized to run System Automation commands. Running this script adjusts file permissions and RSCT ACL files so that the specified user has the appropriate permissions to manage the domain resources.

Options

-h
Print this help.
-a or --add
Add non-root configuration for the specified user. This is the default action for this command.
-d or --delete,
Remove non-root configuration for the specified user.
-g or --group <groupName>,
The name of the primary group for the specified user account (default: group name = sagroup).
gid <groupId>,
The ID of the primary group for the specified user account. (default: group id = 222)
-l <LogFile>,
Specify log file name. (default: write no log file).
--local,
Run script only on local node. If omitted, the default is to perform changes on all cluster nodes.
--manage-group,
Create local UNIX group (if group does not exist) and add specified user to this group. Set group as primary group for the user. If omitted, the default is to not make any changes to group and user.
-silent,
Writes no messages to stdout.
-v,
Run script in verbose mode.
-x or --sa-admin,
Set ACL permissions for the sa_admin role. If omitted, the default is to set ACL permissions for the sa_operator role.

Parameters

userName

The name of the user account that is configured as non-root cluster user.

Exit Status

0
All configurations completed successfully.
1
At least one configuration task failed - see print out for details.

Security

This command requires root authority.

Examples

  1. To add and authorize user which added to group and node
    samnonrootuser -a -l /tmp/user1 --local -x -g groupname username
  2. To remove user which is created and added to group
    samnonrootuser -d --local -g groupname  username

Files

/usr/sbin/rsct/bin/samnonrootuser
Location of the samnonrootuser command.

See Also

The samctrl, chrel, chrg, chrgmbr, lsrg, mkrg, mkrel, rmrel, rmrg, rmrgmbr commands.

The rmccli general information file.

The Resource_Data_Input file