autofs-5.0.5 - fix status privilege error From: Ian Kent The recent LSB init init script change prevent normal users from using the status init script action. Maybe the (very poor) specification is wrong or I misread it, in either case this behaviour is unacceptable. --- CHANGELOG | 1 + redhat/autofs.init.in | 2 +- 2 files changed, 2 insertions(+), 1 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 02a5e36..577ae41 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -49,6 +49,7 @@ - expire thread use pending mutex. - remove ERR_remove_state() openssl call. - fix init script restart option. +- fix init script status privilege error. 03/09/2009 autofs-5.0.5 ----------------------- diff --git a/redhat/autofs.init.in b/redhat/autofs.init.in index e2a4b78..05ab145 100644 --- a/redhat/autofs.init.in +++ b/redhat/autofs.init.in @@ -154,7 +154,7 @@ function reload() { RETVAL=0 # Only the root user may change the service status -if [ `id -u` -ne 0 ]; then +if [ `id -u` -ne 0 ] && [ "$1" != "status" ]; then echo "insufficient privilege to change service status" exit 4 fi