When I switched from
su+tmux+zsh I noticed that I get
$XAUTHORITY variable defined as
XXXXXX are 6 random alphanumeric characters. With previous configuration X worked with root flowlessly but now I need to copy
Variable is nowhere defined (I checked
# env TERM=screen SHELL=/usr/bin/tmux USER=toor TMUX=/tmp//tmux-0/default,6495,3 PATH=/sbin:/bin:/usr/sbin:/usr/bin PWD=/root SHLVL=2 HOME=/root LOGNAME=toor DISPLAY=:0.0 XAUTHORITY=/root/.xauthUSzLl4 COLORTERM=gnome-terminal _=/bin/env OLDPWD=/root EDITOR=vim vcs_info_msg_0_= vcs_info_msg_1_=
% echo $XAUTHORITY /home/mpiechotka/.Xauthority % su password: # echo $XAUTHORITY /root/.xauthUSzLl4 # ls $XAUTHORITY ls: cannot access /root/.xauthUSzLl4: No such file or directory # cat .tmux.conf set -g default-command /bin/zsh set -g default-shell /bin/zsh
su is aliased to
su - toor and it opens
tmux as shell. toor is an alias of root with different shell.
PS. I just discovered that it appears on normal su as well. It did not some time ago...
set-enviroment didn't help either
xhost +localhost did not helped but
xhost + (disabling all control) DID helped.