gedit not opening from terminal - not authenticated
I have just installed a new debian OS and want to change a file.
For some reason, gedit didn't come pre-packaged so I installed it with apt-get. When I use a terminal as root, gedit won't open. I get the following error message: Code:
gedit grub Is this because I haven't done something with the new install or should I remove gedit and reinstall? |
Did you try:
Code:
gksu gedit |
Quote:
Code:
gksu gedit grub On a different debian install, I think gksudo tends to work. |
Quote:
Some alternative options at the Debian forums, link below. Scroll down to the post by user kedaha which shows the same error message you posted and several options to get around it. http://forums.debian.net/viewtopic.php?f=17&t=105850 |
Try (as root, of course):
Code:
apt-get install gksu |
Quote:
So I switched to user and and opened mousepad. But it wouldn't allow me to make changes - probably because I don't have permission! This has been useful. I found you need to enter root with Code:
su - After that you can use gedit to make changes to files: Code:
gedit <filename> |
Quote:
However, I still got an error message with gksu. I eventually used the archaic vi editor after several attempts. But I think the 'su -' command will allow you to open gedit without problems. |
Great it works. A thought though, on the GUI what applications are used is often dictated by the enteries in the 'main menu' "app", make sure gedit is ticked to use it via gksu or gksudo -the two are different and relate to if you installed with a separate root password or used sudo.
Fred. nano text editor is probably accessable and lot easier to use than vi. |
If you want to edit system files you need to log in as root and that applies to pretty much anything outside the /home/user directory.
|
All times are GMT -5. The time now is 11:07 AM. |