summaryrefslogtreecommitdiff
path: root/runas
diff options
context:
space:
mode:
authorTslil Clingman <tslil.clingman@gmail.com>2015-08-21 17:36:09 +0200
committerTslil Clingman <tslil.clingman@gmail.com>2015-08-21 17:36:09 +0200
commit0edc79de75b18aa67a35679f2d1097333861676e (patch)
tree22ae5c05464b0888d504da634043e8913547e63a /runas
parentb3369e4e8d02e696fefdb8bda79e383717fcb843 (diff)
Tweaks
Diffstat (limited to 'runas')
-rwxr-xr-xrunas1
1 files changed, 1 insertions, 0 deletions
diff --git a/runas b/runas
index b11a321..9eb344c 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
+ printf '\033k'"$1"'\033\\'
cp .Xauthority /tmp
chmod 606 /tmp/.Xauthority
su -l $1 -c /home/$1/$1