Changes

From SME Server
Jump to navigationJump to search
31 bytes added ,  20:13, 15 February 2015
no edit summary
Line 140: Line 140:  
  /usr/sbin/upsd -c reload
 
  /usr/sbin/upsd -c reload
 
}}
 
}}
 +
 +
= SME 9 =
 +
 +
{{Warning box|Be sure to have e-smith-nutUPS-2.4.0-9.el6.sme.noarch or higher to carry on with these instructions. If you get a lower version, just follow SME8 instruction.}}
 +
 +
rpm -qa e-smith-nutUPS
 +
 +
If you get NUT running with administrative privileges modification from sme8 instruction, you need to remove the custom template created for this. These variables are taken in charge by the new package.
 +
 +
First you need to delete the custom template file.( This command delete the directory, be sure you don't have personal file present. If the case, delete manualy the file created for administrative privileges )
 +
 +
rm -rf /etc/e-smith/templates-custom/etc/ups/upsd.users
 +
 +
Now, to get '''upsd''' to recognise the modification of user, we need to expand the template and reload the '''upsd''' configuration
 +
 +
/sbin/e-smith/expand-template /etc/ups/upsd.users
 +
/usr/sbin/upsd -c reload
 +
 +
Second step you should check your new password to run UPSRW & UPSCMD. Of course, you could change your password for a easier one to use.
 +
 +
config show nut
 +
 +
To set new admin password in database. The new password would be admin ( change it to suit your need )
 +
 +
config setprop nut AdminPass admin
 +
 +
To enabled administrative privileges and run command to ups.
 +
 +
config setprop nut AdminUser enabled
 +
 +
Now, to get '''upsd''' to recognise admin modification for administrative privileges we expand the template and reload the '''upsd''' configuration
 +
 +
/sbin/e-smith/expand-template /etc/ups/upsd.users
 +
/usr/sbin/upsd -c reload
 +
 +
{{Note box|To disabled the admin user once you have changed the UPS parameters or issued commands as required, issue the commands
 +
config setprop nut AdminUser disabled
 +
/sbin/e-smith/expand-template /etc/ups/upsd.users
 +
/usr/sbin/upsd -c reload
 +
}}
 +
 +
<headertabs/>
    
====Setting UPS Variables====
 
====Setting UPS Variables====
Line 284: Line 326:  
  signal-event post-upgrade
 
  signal-event post-upgrade
 
  signal-event reboot
 
  signal-event reboot
  −
= SME 9 =
  −
  −
{{Warning box|Be sure to have e-smith-nutUPS xxxxx or higher to carry on with these instructions. If you get a lower version, just follow SME8 instruction.}}
  −
  −
rpm -qa e-smith-nutUPS
  −
  −
If you get already nut running with administrative privileges modification, you need to remove the custom template created for this. These variables are taken in charge by the new package.
  −
  −
First you need to delete the custom template file.( This command delete the directory, be sure you don't have personal file present. If the case, delete manualy the file created for administrative privileges )
  −
  −
rm -rf /etc/e-smith/templates-custom/etc/ups/upsd.users
  −
  −
Now, to get '''upsd''' to recognise the modification of user, we need to expand the template and reload the '''upsd''' configuration
  −
  −
/sbin/e-smith/expand-template /etc/ups/upsd.users
  −
/usr/sbin/upsd -c reload
  −
  −
Second step you should check your new password to run UPSRW & UPSCMD. Of course, you could change your password for a easier one to use.
  −
  −
config show nut
  −
  −
To set new admin password in database. The new password would be admin ( change it to suit your need )
  −
  −
config setprop nut AdminPass admin
  −
  −
To enabled administrative privileges and run command to ups.
  −
  −
config setprop nut AdminUser enabled
  −
  −
Now, to get '''upsd''' to recognise admin modification for administrative privileges we expand the template and reload the '''upsd''' configuration
  −
  −
/sbin/e-smith/expand-template /etc/ups/upsd.users
  −
/usr/sbin/upsd -c reload
  −
  −
{{Note box|To disabled the admin user once you have changed the UPS parameters or issued commands as required, issue the commands
  −
config setprop nut AdminUser disabled
  −
/sbin/e-smith/expand-template /etc/ups/upsd.users
  −
/usr/sbin/upsd -c reload
  −
}}
  −
  −
<headertabs/>
      
===Aditional Information===
 
===Aditional Information===
66

edits

Navigation menu