summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTslil Clingman <tslil.clingman@gmail.com>2015-09-12 19:48:02 -0400
committerTslil Clingman <tslil.clingman@gmail.com>2015-09-12 19:48:02 -0400
commitdb557b4f653734fbbd5cb6fce948b0476bedbb9a (patch)
tree539378430abc02527bd02a11441c289d811372ad
parent0edc79de75b18aa67a35679f2d1097333861676e (diff)
Small bug, not cd'ing first
-rwxr-xr-xrunas1
1 files changed, 1 insertions, 0 deletions
diff --git a/runas b/runas
index 9eb344c..5c18565 100755
--- a/runas
+++ b/runas
@@ -48,6 +48,7 @@ if [ "$1" == "-n" ]; then
sudo useradd -m -G audio -s /usr/bin/mksh -k /tmp/skel $2
sudo passwd $2
else
+ cd $HOME
printf '\033k'"$1"'\033\\'
cp .Xauthority /tmp
chmod 606 /tmp/.Xauthority