You are not logged in.

Dear visitor, welcome to KDE-Forum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Thursday, September 21st 2006, 7:09pm

in Kongqueror with root permission

I was trying to view the message logs but can't because I don't have root permission. How can I get root permission to view the logs while in Konqueror? Sorry for the newbie question, but I have looked and searched, but found nothing.

Thanks,

bram85

Professional

Posts: 948

Location: Eindhoven

Occupation: Software Engineer

  • Send private message

2

Friday, September 22nd 2006, 11:43pm

RE: in Kongqueror with root permission

You can run

Source code

1
$ kdesu konqueror
to run Konqueror as root. But this is rather dangerous. You could also use this service menu item I wrote some time ago for a poster on this forum with a similar question, which may be of better use for you. Just right click the log file you want to view, go to Actions and open it as the root user.
Bram Schoenmakers
KDE Netherlands (www.kde.nl)

3

Saturday, September 23rd 2006, 3:15am

Bram:

This would work great! Just one problem: I followed the directions in putting the file in the servicemenus, then closed konqueror and restarted it. But it appears not to work. I right clicked on the /var/log/message log and "open as root" was not in the box. I must have missed something. Any ideas? By the way, this is really what I was hoping to come up with.

Thanks a bunch!

bram85

Professional

Posts: 948

Location: Eindhoven

Occupation: Software Engineer

  • Send private message

4

Saturday, September 23rd 2006, 12:01pm

You looked into the Actions submenu, right? It says Open as user... and then you can enter a username (root).

But maybe closing Konqueror was not sufficient, perhaps an instance is left behind in the background (that is normal behavior though). Try to run 'killall konqueror' (make sure you're not doing anything important in Konqueror) and then restart Konqueror and check if the item appeared in the Actions submenu.
Bram Schoenmakers
KDE Netherlands (www.kde.nl)

5

Saturday, September 23rd 2006, 3:30pm

This is where i was:

[IMG][URL=http://img56.imageshack.us/my.php?image=snapshot1cc4.png][IMG]http://img56.imageshack.us/img56/985/snapshot1cc4.th.png[/IMG][/URL][/IMG]

Hope you can see it.

6

Saturday, September 23rd 2006, 3:32pm

Oh, I did try the killall konqueror before the screenshot. I am running the latest mepis6.0 if it matters.

Thanks for working with me on this item!

bram85

Professional

Posts: 948

Location: Eindhoven

Occupation: Software Engineer

  • Send private message

7

Sunday, September 24th 2006, 9:58am

Three more suggestions/checks:

1. Does ~/.kde/share/apps/konqueror/servicemenus/openas.desktop really exist?
2. Try to run kbuildsycoca as your own user and try again
3. You could put the *.desktop file in $KDEDIR/share/apps/konqueror/servicemenus as well.

As you can see, I don't really know what the problem is.
Bram Schoenmakers
KDE Netherlands (www.kde.nl)

8

Sunday, September 24th 2006, 3:33pm

Okay, I just discoverd that it does works on folders or directories but not files.



I guess that would be okay, but I think it is still not as safe as opening one single file.
ysibruce has attached the following image:
  • snapshot2.png

9

Sunday, September 24th 2006, 3:56pm

Okay, I got to checking to make sure the file was in the right location and noticed that you had called the file "openas.desktop". The actual file name was openas.php. So I remaned it to openas .desktop, and now this is what I get:

[/IMG]

This option opens a box that lets me select the user, change it to root, then it ask for the root password. This is much better!

Thanks again!