summaryrefslogtreecommitdiff
path: root/scripts/rl-system.init
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-12-02 11:25:12 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-12-02 11:25:12 -0800
commit3030728407b3d6d03c7ba6c846560e5e57162048 (patch)
treef09a12a51b3e6c22b5e23e920ab0e69d1a7c2837 /scripts/rl-system.init
parent690f0b2e864a2a2cb404be0d01b0ff65b0c6d4ed (diff)
downloadvyatta-cfg-quagga-3030728407b3d6d03c7ba6c846560e5e57162048.tar.gz
vyatta-cfg-quagga-3030728407b3d6d03c7ba6c846560e5e57162048.zip
Set group ownership and permissions on /var/run/vyatta
Bug 6407 Allow configuration commands to create files in /var/run/vyatta without being root.
Diffstat (limited to 'scripts/rl-system.init')
-rwxr-xr-xscripts/rl-system.init5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/rl-system.init b/scripts/rl-system.init
index 19c9a540..5c8ba7a6 100755
--- a/scripts/rl-system.init
+++ b/scripts/rl-system.init
@@ -191,8 +191,9 @@ security_reset () {
}
start () {
- mkdir -p /var/run/vyatta
- mkdir -p /var/log/vyatta
+ mkdir -p /var/run/vyatta /var/log/vyatta
+ chgrp vyattacfg /var/run/vyatta /var/log/vyatta
+ chmod 775 /var/run/vyatta /var/log/vyatta
update_interface_config
create_ssh_host_keys || \