set trc6500 user to a configuration menu
authorLaurent Mazet <laurent.mazet@thalesgroup.com>
Thu, 18 Dec 2014 11:08:33 +0000 (12:08 +0100)
committerLaurent Mazet <laurent.mazet@thalesgroup.com>
Thu, 18 Dec 2014 11:08:33 +0000 (12:08 +0100)
install_debian.txt
master/etc/sudoers.d/pdmenu
master/etc/sudoers.d/webconfig
master/etc/webconfig/alias.csv
master/root/debian-list.txt

index 43c780c0559a3c4a57c6ff5e9e0b72f2be974563..ba1f1d9ab822e2334476a008149193b77486c738 100644 (file)
@@ -55,4 +55,5 @@ Step 3:
   update-rc.d checkudevrules enable
   update-rc.d checkudevrules defaults
   chown webconfig /etc/webconfig/alias.csv /etc/dhcp/dhcpd.conf
+  chsh -s /usr/bin/pdmenu trc6500
   reboot
index 56644bf1ea54f7f8385c3a5901f3cc23ac2e2953..53c247d8cacdca3c897d10962b261c02ee059967 100644 (file)
@@ -1,7 +1,7 @@
-# /etc/sudoers.d/pdmenu
+# /etc/sudoers.d/trc6500
 
-pdmenu ALL = (root)NOPASSWD: /opt/trc6500/script/check_network.sh
-pdmenu ALL = (root)NOPASSWD: /sbin/halt
-pdmenu ALL = (root)NOPASSWD: /usr/sbin/service ammwake
-pdmenu ALL = (root)NOPASSWD: /usr/sbin/service ipmiwake
-pdmenu ALL = (root)NOPASSWD: /usr/sbin/service trc6500
+trc6500        ALL = (root)NOPASSWD: /opt/trc6500/script/check_network.sh *
+trc6500        ALL = (root)NOPASSWD: /sbin/halt
+trc6500        ALL = (root)NOPASSWD: /usr/sbin/service ammwake *
+trc6500        ALL = (root)NOPASSWD: /usr/sbin/service ipmiwake *
+trc6500        ALL = (root)NOPASSWD: /usr/sbin/service trc6500 *
index caaba36c1758bc7a4466fc82c69d9d07fd313df4..b0216510e89dc0497df5a3da4346dff5d2827467 100644 (file)
@@ -1,7 +1,7 @@
 # /etc/sudoers.d/webconfig
 
-webconfig      ALL = (root)NOPASSWD: /opt/trc6500/script/check_network.sh
+webconfig      ALL = (root)NOPASSWD: /opt/trc6500/script/check_network.sh *
 webconfig      ALL = (root)NOPASSWD: /sbin/halt
-webconfig      ALL = (root)NOPASSWD: /usr/sbin/service ammwake
-webconfig      ALL = (root)NOPASSWD: /usr/sbin/service ipmiwake
-webconfig      ALL = (root)NOPASSWD: /usr/sbin/service trc6500
+webconfig      ALL = (root)NOPASSWD: /usr/sbin/service ammwake *
+webconfig      ALL = (root)NOPASSWD: /usr/sbin/service ipmiwake *
+webconfig      ALL = (root)NOPASSWD: /usr/sbin/service trc6500 *
index d7713f0bb96f1b62f4d5d65aa218613cc1d3ab18..05a7fdcf5884f69757ba623530da30dd687c3547 100644 (file)
@@ -51,7 +51,7 @@ http://10.133.28.160:8232;/usr/share/webconfig;;Switch Gonio 2;:goto:
 http://10.133.28.254;/usr/share/webconfig;;GPS;:goto:
 ;;;TRC6500 MIB;
 /swb;/usr/share/swb;/var/cache/webconfig/snmp.tree;SNMP Web Browser;/opt/trc6500/bin/snmp-trc6500-walk|sed 's/enterprises\.thales\.//'>/var/cache/webconfig/snmp.tree
-;;;Chassis actions
+;;;Chassis actions;
 ammwake;/usr/share/webconfig;;Power on all HS22 IBM slaves;sudo service ammwake start
 ipmiwake;/usr/share/webconfig;;Power on all SuperMicro slaves;sudo service ipmiwake start
 ammwake;/usr/share/webconfig;;Power off all HS22 IBM slaves;sudo service ammwake stop
index 446be7e1ba5d60bf60d42e177aa1d9406ea7fd46..45f380ea2209f2eceeb9db65086f45171f94d27a 100644 (file)
@@ -209,6 +209,7 @@ par2
 passwd
 patch
 pciutils
+pdmenu
 perl-base
 procmail
 procps