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

Sunday, November 30th 2003, 10:49pm

Superuser Konqueror Problem

I am trying to create a way to open up a Konqueror Superuser (i.e. root) window as a non-root user with the specific profile 'filemanagement.' So I have written the following command:
kfmclient openProfile filemanagement

and then using the kdemenu told it to execute this command as as different user.

Nothing happens. It just hangs. Is this a permissions problem? And why when I am using konsole then login in as root and type in kfmclient, am I told that no such command exists?

Thanks and sorry to be so ignorant. The help is much appreciated.

2

Tuesday, December 2nd 2003, 2:09am

Re: Superuser Konqueror Problem

Quoted

Original von lawrencegoodman

I am trying to create a way to open up a Konqueror Superuser (i.e. root) window as a non-root user with the specific profile 'filemanagement.' So I have written the following command:
kfmclient openProfile filemanagement

and then using the kdemenu told it to execute this command as as different user.

That seems ok.

Quoted

Original von lawrencegoodman

Nothing happens. It just hangs. Is this a permissions problem? And why when I am using konsole then login in as root and type in kfmclient, am I told that no such command exists?

Now, that's interesting. Maybe the bin subdirectory of your KDE directory is not in your PATH?
Try
export PATH=$PATH:$KDEDIR/bin
(assuming that your KDEDIR variable is set...)

3

Tuesday, December 2nd 2003, 7:52pm

Sorry I am a newbie and what you're saying -- well, I don't really understand it.

I checked in /opt/kde3 and found a file called "kfmclient."
I also checked in /root/.kde/share and found a folder called "kfmexec." It has nothing in it but this is no different that /home/lawrencegoodman/.kde/share and kfmclient works in lawrencegoodman mode.

One more wierd thing: when I log in as lawrencegoodman then launch kfmclient in root mode it doesn't work. If though I first just launch konqueror in root mode, then close konqueror and launch kfmclient in root mode, it works. What's going on here, I have no idea.

Thanks for your help and patience.

4

Tuesday, December 2nd 2003, 8:10pm

If your KDE is in /opt/kde3, then kfmclient should be:
/opt/kde3/bin/kfmclient

May be you are missing a package. It would perhaps help to know what distribution is used.

5

Tuesday, December 2nd 2003, 9:28pm

Okay, so forgive me, but I just checked something out. When I open a new session and log in as root, then I can use kfmclient. The command "kfmclient openProfile filemanagement" works great.

The problem then is when I am logged in as a non-root user and try to use kfmclient in root. When I got to konsole and do sux to become root, I can't use kfmclient. That seems to be the crux of this issue and maybe it's simply not possible, though I can't see why not.

Thanks.

PS: Yes, in opt/kde3/bin there is an executeable file called kfmclient. I don't think I am missing a package.

6

Tuesday, December 2nd 2003, 9:55pm

And oh yes, I am using Suse 8.2 with KDE 3.1. Thanks.

7

Wednesday, December 3rd 2003, 5:58am

Quoted

Original von lawrencegoodman

The command "kfmclient openProfile filemanagement" works great.

...

PS: Yes, in opt/kde3/bin there is an executeable file called kfmclient.

You might try to edit the menu entry to say:
/opt/kde3/bin/kfmclient openProfile filemanagement

and see if this works.

8

Wednesday, December 3rd 2003, 8:52pm

"kdesu -- sudo kfmclient filemanagement" should also work

9

Thursday, December 4th 2003, 2:32pm

First, thanks for all your help. But neither of these is working.

1) When I type "kdesu -- sudo kfmclient filemanagement" at the command line, I get the following error: kdesu: "WARNING: Daemon not safe (not sgid), not using it." It does ask for a password, which I enter, and then nothing happens.
2) The comman /opt/kde3/bin/kfmclient openProfile filemanagement only works when I am logged in as root. It doesn't work when launched by a non-root user.

I still think this might be a permissions problem, but I have changed permissions on opt/kde3 to 777 with no result.

Thanks again.