General Support - how do I edit a file enjoyin - 28.08.2006, 01:02 Uhr Titel: how do I edit a file
here is what I get when I try to edit a file
bill@Kanotix:~$ su
Password:
root@Kanotix:/home/bill# kwrite /boot/grub/menu.lst
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
kwrite: cannot connect to X server :0.0
root@Kanotix:/home/bill#
any help would be appreciated
Superrakete - 28.08.2006, 01:06 Uhr Titel: how do I edit a file
Hi!
Use "sux" instead of "su".
kilgoretrout - 28.08.2006, 01:06 Uhr Titel: RE: how do I edit a file
Try:
$ kdesu kwrite
and type in your root password when the window comes up and prompts you for it. I've found kdesu often works better than trying to directly launch from a root prompt.
stryder - 28.08.2006, 01:17 Uhr Titel: RE: how do I edit a file
or use mcedit in the terminal:
#mcedit /boot/grub/menu.lst
or just mc if you need to also navigate around your file system.
enjoyin - 28.08.2006, 02:09 Uhr Titel: RE: how do I edit a file
Thx all three suggestions work perfectly -- why doesn't "su" + pass not work. This is my first try at debian.
jackiebrown - 28.08.2006, 02:25 Uhr Titel: RE: how do I edit a file
su does transfer you x credentials.
piper - 28.08.2006, 02:29 Uhr Titel: RE: how do I edit a file
You can also right click on that file > actions > edit as root