diff options
author | John Southworth <john.southworth@vyatta.com> | 2011-08-02 19:43:23 -0500 |
---|---|---|
committer | John Southworth <john.southworth@vyatta.com> | 2011-08-02 19:43:23 -0500 |
commit | d405670716b948d5156db56e4fc4fb0af10d4fd7 (patch) | |
tree | 26cf85ca639abb817c3c5dd7774297745ffd78b9 /etc | |
parent | 60566d36329b86b204688b8a8fe5469b7a77425f (diff) | |
download | vyatta-cfg-d405670716b948d5156db56e4fc4fb0af10d4fd7.tar.gz vyatta-cfg-d405670716b948d5156db56e4fc4fb0af10d4fd7.zip |
Add support for unambiguous top level commands for unpriviledged users; generate allowed-op short commands at boot time
Diffstat (limited to 'etc')
-rwxr-xr-x | etc/init.d/vyatta-router | 7 | ||||
-rw-r--r-- | etc/shell/level/users/allowed-op.in (renamed from etc/shell/level/users/allowed-op) | 0 |
2 files changed, 7 insertions, 0 deletions
diff --git a/etc/init.d/vyatta-router b/etc/init.d/vyatta-router index e10f054..43c9e29 100755 --- a/etc/init.d/vyatta-router +++ b/etc/init.d/vyatta-router @@ -186,6 +186,12 @@ mount_slash_config () fi } +generate_unpriv_cmds () +{ + source /opt/vyatta/share/vyatta-op/functions/interpreter/vyatta-unpriv + vyatta_unpriv_gen_allowed +} + start () { log_action_begin_msg "Mounting Vyatta Config" @@ -230,6 +236,7 @@ start () telinit q bind_mount_boot chmod g-w,o-w / + generate_unpriv_cmds } stop() diff --git a/etc/shell/level/users/allowed-op b/etc/shell/level/users/allowed-op.in index a45a92f..a45a92f 100644 --- a/etc/shell/level/users/allowed-op +++ b/etc/shell/level/users/allowed-op.in |