When i install ubuntu i could log in to the as the root. i updated to kubuntu and found i couldn't log in as the root. how do i log in as the root so i can edit the menu.lst file?
Announcement
Collapse
No announcement yet.
log in as the root
Collapse
This topic is closed.
X
X
-
Re: log in as the root
Hi
You could use the prefix sudo before running commands that need to be run as root, for example:
sudo kate /boot/grub/menu.lst
This will open the file menu.lst, and because of the sudo prefix, give you permission to change and save it.
You could also use the prefix kdesu. I'm not really sure what the difference is, some say it's safer to use kdesu but I've always used sudo and I haven't run in to any problems.
If you're extremely keen on actually being root, you could use sudo -s. This will switch the user to root. To switch back, type su YOUR_USERNAME.
- Top
- Bottom
-
Re: log in as the root
Always use kdesu when you're going to run a GUI app as root. It's not because "some say" it, but because Ubuntu says you should.
https://help.ubuntu.com/community/RootSudo
- Top
- Bottom
Comment
-
Re: log in as the root
I thank you very much that worked fine. I was able to edit my menu.lst and save it.
When i typed
sudo kate /bootgrub/menu.lst
password
i received this message
X Error: BadDevice, invalid or uninitialized input device 168
Major opcode: 145
Minor opcode: 3
Resource id: 0x0
Failed to open device
X Error: BadDevice, invalid or uninitialized input device 168
Major opcode: 145
Minor opcode: 3
Resource id: 0x0
Failed to open device
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
kdeinit: Can't connect to the X Server.
kdeinit: Might not terminate at end of session.
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
kded: cannot connect to X server :0.0
DCOP aborting call from 'anonymous-20777' to 'kded'
kded: ERROR: Communication problem with kded, it probably crashed.
ScimInputContextPlugin()
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
knotify: cannot connect to X server :0.0
DCOP aborting call from 'anonymous-20864' to 'knotify'
ERROR: Communication problem with knotify, it probably crashed.
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
kio_uiserver: cannot connect to X server :0.0
DCOP aborting call from 'kate-20757' to 'kio_uiserver'
ERROR: KUniqueApplication: Registering failed!
ERROR: Communication problem with kio_uiserver, it probably crashed.
QObject::disconnect: Unexpected null parameter
~ScimInputContextPlugin()
Iwas still able to edit the menu.lst and save it ok
Is this some thing to do with a network it is trying to connect to or do i have a broken link some where?
- Top
- Bottom
Comment
-
Re: log in as the root
vi is a text editor that runs in a terminal, sorry for my bad explanation
http://www.techfak.uni-bielefeld.de/...jargon/vi.HTML
and it's my default text editor
- Top
- Bottom
Comment
Comment