Lars Noodén via Dng wrote:
> sudoedit is running as root there, but it is not itself an editor.
>
> You can verify for yourself that the editor runs under the unprivileged
> account. Here is an example of using sudoedit to fire up Geany:
>
> $ EDITOR=geany sudoedit /etc/group &
>
> $ ps -p
On 11/14/21 20:44, tempforever wrote:
Lars Noodén via Dng wrote:
[snip]
On 11/8/21 05:12, tempforever wrote: > You say that sudoedit will run the
editor itself under the unprivileged
account; however, it appears it does run as root:
[snip]
Yes, I say that, but I got it from the manual page
Lars Noodén via Dng wrote:
> On 11/8/21 05:12, tempforever wrote:
> [snip]> Lars Noodén via Dng wrote:
>>> You could consider running sudoedit instead. That will allow you to
>>> edit a file as root (or any other designated account) while still
>>> running the editor itself under the unprivileged
Le 08/11/2021 à 14:16, Didier Kryn a écrit :
> There is a hand-made replacement for pkexec and the good old gksu
> and gksudo:
>
> In your sudoers file (edited with visudo), put the following line
>
> Defaults env_keep = "XAUTHORITY DISPLAY"
>
> Note there can be other variables in the list,
There is a hand-made replacement for pkexec and the good old gksu
and gksudo:
In your sudoers file (edited with visudo), put the following line
Defaults env_keep = "XAUTHORITY DISPLAY"
Note there can be other variables in the list, like EDITOR, but the
above are the ones which will allow
On 11/8/21 05:12, tempforever wrote:
[snip]> Lars Noodén via Dng wrote:
You could consider running sudoedit instead. That will allow you to
edit a file as root (or any other designated account) while still
running the editor itself under the unprivileged account. One should
not run graphical
Thanks for the (attempted) help.
su -c - root mousepad returned the same error (Mousepad-CRITICAL...
Failed to initialize xfconf: The connection is closed)
su -c - root xterm
and then mousepad (in that xterm) returned the same error again.
I noticed on my Beowulf system I get a similar "error"
tempforever said on Sun, 7 Nov 2021 14:19:54 -0500
>I'm logged on user "a" (with very few permissions), on the same system
>exists user "b" (in sudo group).
>When I run pkexec --user root mousepad (for example), it prompts for
>user "b" password, instead of root password.
>If I remove user "b"
On 11/7/21 21:19, tempforever wrote:
[snip]> Actually I'll probably switch to a text-based editor for this
particular
case, but in general, for GUI applications, how is this done now?
[snip]
You could consider running sudoedit instead. That will allow you to
edit a file as root (or any other
I'm logged on user "a" (with very few permissions), on the same system
exists user "b" (in sudo group).
When I run pkexec --user root mousepad (for example), it prompts for
user "b" password, instead of root password.
If I remove user "b" from sudo group, the above example will prompt for
root
10 matches
Mail list logo