When I tried
sudo kwrite /etc/fstab
I got a message saying "cannot connect to x server".
So, I tried the old
# cp /home/paul/.Xauthority /root
but this didn't work.
Next I tried
# ln -s /home/paul/.Xauthority /root/.Xauthority
and this too didn't work.
I next came across a post saying to use "xhost +"
Running this gave me
access control disabled, clients can connect from any host
but yet again this did nothing.
So, did a bit of googling and found out that the correct command to use is
su -
So tried it and, sure enough, this allowed me to use kwrite as root.
No comments:
Post a Comment