diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-12-02 11:25:12 -0800 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-12-02 11:25:12 -0800 |
commit | 3030728407b3d6d03c7ba6c846560e5e57162048 (patch) | |
tree | f09a12a51b3e6c22b5e23e920ab0e69d1a7c2837 /scripts/rl-system.init | |
parent | 690f0b2e864a2a2cb404be0d01b0ff65b0c6d4ed (diff) | |
download | vyatta-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-x | scripts/rl-system.init | 5 |
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 || \ |