I'm a newbie Ubuntu user. Every time I log in to my OS, I always add:
xhost +si:localuser:root
How can I add Xhost to root permanently?
My kernel version is 4.13.0-46-generic
.
I have tried this suggestion on the Arch wiki, to edit something in /etc/pam.d/...
, but this doesn't work for me.
xhost + && sudo gedit && xhost -
you achieve the same for a limited amount of time. – Rinzwind Aug 04 '18 at 14:03vim file.txt
otherwisesudo vim file.txt
. You do not want to use graphical tools to edit txt files from command line since those also tend to change ownership. If you don't like vim, use nano :) – Rinzwind Aug 04 '18 at 14:21sudo nano text.file
– Panther Aug 04 '18 at 14:23