From 3030728407b3d6d03c7ba6c846560e5e57162048 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Thu, 2 Dec 2010 11:25:12 -0800 Subject: Set group ownership and permissions on /var/run/vyatta Bug 6407 Allow configuration commands to create files in /var/run/vyatta without being root. --- scripts/rl-system.init | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'scripts') 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 || \ -- cgit v1.2.3