Re: "Run as root" problem

  • From: <tpgww@xxxxxxxxxxx>
  • To: emelfm2@xxxxxxxxxxxxx
  • Date: Tue, 27 Mar 2012 08:26:42 +1100

On Mon, 26 Mar 2012 22:18:40 +0400
Kyrill Detinov <lazy.kent@xxxxxxxxxxxx> wrote:

> Running svn r2477.
> "run as root" command changed to 'pkexec'.
> Now I got error:
> 
> >pkexec emelfm2  (3587)
> Error creating textual authentication agent: Error opening current
> controlling terminal for the process (`/dev/tty'): No such device or
> address
> >pkexec emelfm2 (3587) вернул '127'
> 
> EmelFM2 0.8.0 installed in another system calls 'xterm -e su -c ...'.
> Why is this difference?

If built with WITH_POLKIT=1 then the default run-as-root command involves 
pkexec. This is to avoid a separate terminal window, and capture command output 
in the e2 output window. Not to forget more finesse in determining what is 
allowed.

But if pkexec is not working as expected (now happens here, too, must figure 
this out someday) then the older form of command can easily be applied via a 
config dialog.

Regards
Tom


--
Users can unsubscribe from the list by sending email to 
emelfm2-request@xxxxxxxxxxxxx with 'unsubscribe' in the subject field or by 
logging into the web interface.

Other related posts: