28523d09e1
git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/linamh@1958 6952d904-891a-0410-993b-d76249ca496b
34 lines
656 B
Bash
34 lines
656 B
Bash
#!/bin/bash
|
|
|
|
|
|
case "$1" in
|
|
change)
|
|
|
|
/opt/compaq/foundation/etc/hpwebsetup -v
|
|
|
|
echo; echo "Configuring Passwords"; echo
|
|
|
|
echo "Please Enter an Operator password"
|
|
read -s PASSWD
|
|
/opt/compaq/foundation/etc/hpwebsetup -pO:$PASSWD -f
|
|
|
|
echo "Please Enter an Administrator password"
|
|
read -s PASSWD
|
|
/opt/compaq/foundation/etc/hpwebsetup -pA:$PASSWD -f
|
|
|
|
echo "Please Enter an User password"
|
|
read -s PASSWD
|
|
/opt/compaq/foundation/etc/hpwebsetup -pU:$PASSWD -f
|
|
;;
|
|
|
|
disable)
|
|
rm -rf /var/spool/compaq/wbem/CPQHMMD.ACL
|
|
echo "Passwords disabled. Run \"hppasswd change\" to reenable."
|
|
;;
|
|
|
|
*)
|
|
echo "Usage: $0 {change|disable}"
|
|
exit 1
|
|
esac
|
|
exit 0
|