gksudo 16.10

Ralf Mardorf silver.bullet at zoho.com
Sun Nov 6 11:25:39 UTC 2016

On Sun, 6 Nov 2016 12:05:49 +0100, Ralf Mardorf wrote:
>[rocketmouse at archlinux ~]$ sudo -u chuser echo $HOME
>[rocketmouse at archlinux ~]$ cat /usr/local/bin/chuser 
># /usr/local/bin/chuser -> /.chuser/bin/chuser
>xhost +
>gksudo -u chuser "$*"
>xhost -
>[rocketmouse at archlinux ~]$ chuser echo $HOME
>access control disabled, clients can connect from any host
>access control enabled, only authorized clients can connect

Just in case it could be related to build in bash command vs running a

[rocketmouse at archlinux ~]$ sudo -u chuser /usr/bin/echo $HOME
[rocketmouse at archlinux ~]$ gksudo -u chuser /usr/bin/echo $HOME

More information about the ubuntu-users mailing list