How to grant access to non-root users in SMH GUI??

From Wiki-UX.info
Jump to: navigation, search

Log into System Management Homepage web interface with the root account and passwd and add the desired group of you wanted to grand privilege access under:

Settings -> System Management Homepage -> Security -> User Groups

There are three different roles/privileges that a given user group can be configured with: Administrator , Operator and User, each with different action proviledges.

To change it via command line

In order to add a group to the Administrator Group or other group, you need to edit the following file:

/opt/hpsmh/conf.common/smhpd.xml

root@delta:> # vi /opt/hpsmh/conf.common/smhpd.xml
"/opt/hpsmh/conf.common/smhpd.xml" [Read only] 18 lines, 566 characters
<?xml version="1.0"?>

<system-management-homepage>
<admin-group>smh</admin-group>     <<<<<<< Added the smh group in the Admin Group
<operator-group></operator-group>
<user-group></user-group>
<allow-default-os-admin>True</allow-default-os-admin>
<anonymous-access>False</anonymous-access>
<localaccess-enabled>False</localaccess-enabled>
<localaccess-type>Anonymous</localaccess-type>
<trustmode>TrustByCert</trustmode>
<xenamelist/>
<ip-restricted-logins>False</ip-restricted-logins>
<ip-restricted-include/>
<ip-restricted-exclude/>
<ip-binding>False</ip-binding>
<ip-binding-list/>
</system-management-homepage>
  • After adding the group, then just add the secondary group to the user that you want to assign Administrator Privileages to.
# usermod -G smh <anyuser>
  • Restart System Management Homepage
# /sbin/init.d/hpsmh stop
# /sbin/init.d/hpsmh start
  • You should be able with login and password added to the XML file.

Authors