From 0b284c1ff45f708fe79c8b9422dd905baf7408e1 Mon Sep 17 00:00:00 2001 From: Hugues Hiegel Date: Fri, 7 Mar 2008 17:29:14 +0100 Subject: An exec magically proposing a sudo to user openwide when connecting.. --- host:openwide-desktop/Exec.zsh | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 host:openwide-desktop/Exec.zsh 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 +) + -- cgit v1.2.3