From 9ada1cffc8a3aff64c9cfe2ec42ad4b3c02bc9cd Mon Sep 17 00:00:00 2001 From: Tslil Clingman Date: Wed, 16 Dec 2015 23:52:39 -0500 Subject: runas sends arguments on - lock now uses ssh-agent because who knows how to get gpg-agent working properly anymore - there was an extra line being printed in the wls prompt - alsa now has a binary called bat. yay. --- runas | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'runas') diff --git a/runas b/runas index 89f45c1..9ebb527 100755 --- a/runas +++ b/runas @@ -9,7 +9,7 @@ export LOCALE="en_ZA.UTF-8" export PATH=$PATH:. export HISTFILE=$HOME/.histfile export HISTSIZE=8192 -umask 077 +umask 033 set -o emacs set -o utf8-mode PS1='${ local e=$?; local r=""; (( $e )) && r="<$e>"; @@ -49,6 +49,8 @@ else cd $HOME printf '\033k'"$1"'\033\\' xhost +local: - sudo -u $1 -s /home/$1/$1 + usr=$1 + shift + sudo -u $usr -s /home/$usr/$usr $* xhost -local: fi; -- cgit v1.2.3