Bug 125691 - asking for correct user
Summary: asking for correct user
Status: RESOLVED DUPLICATE of bug 87668
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-16 21:07 UTC by hans horwath
Modified: 2007-12-10 00:31 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description hans horwath 2006-04-16 21:07:42 UTC
Version:            (using KDE KDE 3.5.2)
Installed from:    00

hello,

when i want to open a file with owner root and i'm not currently root, i want kate to ask me to "log in" as root to work with this file without the need to first leave kate.

is this possible?

greetings
hans
Comment 1 Anders Lund 2006-04-16 21:26:12 UTC
Everything is possible. But it's a bit complex, as the Kate process is owned 
by the current user, we would have to use an extra process to read (and 
write) files on behalf of other users.

But it is a good idea, patches (for KDE4) would be wellcome!

-anders
Comment 2 hans horwath 2006-04-16 22:05:03 UTC
i'm only a user, so i'm sad to say, that i can't do anything for a patch :-(

as you wrote, would it be better/possible to implement such a process into the os itself, so that every program with this problem would work in the same way and that there mustn't be running more of the same/similar processes?
Comment 3 Anders Lund 2006-04-16 22:22:37 UTC
On Sunday 16 April 2006 22:05, hans horwath wrote:
> as you wrote, would it be better/possible to implement such a process into
> the os itself, so that every program with this problem would work in the
> same way and that there mustn't be running more of the same/similar
> processes?


My take is that we can do two things with unreadable/writable files:

* offer to open the file through kdesu using another editor instance
* offer to load/save the file through a pipe to a su'd process

The latter would be cool 8=)
Comment 4 hans horwath 2006-04-16 23:45:10 UTC
what comes to my mind now: what about files belonging to a user that is not root and that is not "me" too?

as i see now: best would be, if there was a neutral way to login as any user - imo.
Comment 5 Anders Lund 2006-04-17 09:19:21 UTC
On Sunday 16 April 2006 23:45, hans horwath wrote:
> as i see now: best would be, if there was a neutral way to login as any
> user - imo.


kdesu provides that.
Comment 6 hans horwath 2006-04-17 11:17:57 UTC
and what is there for gnome e.a.?
Comment 7 Thiago Macieira 2006-04-18 20:48:15 UTC
KWrite/Kate could offer to restart itself in a new session/instance with other user privileges.

But this is dangerous and I'd rather it didn't.
Comment 8 Thomas Friedrichsmeier 2007-12-10 00:31:49 UTC

*** This bug has been marked as a duplicate of 87668 ***