From 042d197b4d989ec6461204b9d897054e5f5dd492 Mon Sep 17 00:00:00 2001 From: Sebastien Luttringer Date: Tue, 31 May 2011 09:16:17 +0200 Subject: Ensure rc.d scripts are run as root By default all script should be run as root. If NEED_ROOT=0 is set before loading /etc/rc.d/functions in a rc.d scripts, this will not apply. This allow script with only some part which require root level to call need_root() function at beginning of those parts. Close FS#24095 Signed-off-by: Sebastien Luttringer --- rc.d | 1 + 1 file changed, 1 insertion(+) (limited to 'rc.d') diff --git a/rc.d b/rc.d index f5dd652..6d9a9f7 100755 --- a/rc.d +++ b/rc.d @@ -1,5 +1,6 @@ #!/bin/bash +NEED_ROOT=0 # this script can be run without be root . /etc/rc.conf . /etc/rc.d/functions -- cgit v1.2.3