diff options
author | Hugues Hiegel <hugues@hiegel.fr> | 2008-03-07 17:29:14 +0100 |
---|---|---|
committer | Hugues Hiegel <hugues@hiegel.fr> | 2008-04-08 11:30:28 +0200 |
commit | 0b284c1ff45f708fe79c8b9422dd905baf7408e1 (patch) | |
tree | b54d3aa97a5f33cdadc8436422149cc361cc1af5 | |
parent | 0ace9d72ef42569fce8eda79820657f7cd6a6188 (diff) |
An exec magically proposing a sudo to user openwide when connecting..
-rw-r--r-- | host:openwide-desktop/Exec.zsh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/host:openwide-desktop/Exec.zsh b/host:openwide-desktop/Exec.zsh new file mode 100644 index 0000000..19fe3c3 --- /dev/null +++ b/host:openwide-desktop/Exec.zsh @@ -0,0 +1,6 @@ + +[ "$USER" != openwide ] && ( + echo -n "sudo openwide ? [Y/n] " ; read answer + [ "$answer" != "n" ] && sudo -u openwide -s +) + |