You are not logged in.

#1 2014-08-03 02:37:46

remingtontonpon
Member
Registered: 2011-09-16
Posts: 24

[SOLVED]What is the meaning of any/active/inactive session in polkit?

Wiki said  「inactive sessions are generally remote sessions (SSH, VNC, etc.) 」.
So I changed the *.policy file like below to execute the action without password  only when I am logging in remotely.
(Just for clarifying the difference between any/active/inactive session.)

<allow_any>no</allow_any>
<allow_inactive>yes</allow_inactive>
<allow_active>no</allow_active>

Contrary to expectations, I couldn't execute the action remotely without password.

So I changed again like below.

<allow_any>yes</allow_any>
<allow_inactive>no</allow_inactive>
<allow_active>no</allow_active>

This time, I was able to execute the action remotely without password.

From the above, I think the remote session is neither active nor inactive.
Is it true? If so, what is the inactive session?
What is the definition of active/inactive?

Last edited by remingtontonpon (2014-08-04 06:16:52)


I am sorry if my English is hard to understand. Please ask if you would like me to explain something again.

Offline

#2 2014-08-03 21:06:04

berbae
Member
From: France
Registered: 2007-02-12
Posts: 1,302

Re: [SOLVED]What is the meaning of any/active/inactive session in polkit?

'man polkit' explains that 'allow_inactive' and 'allow_active' are for sessions on local consoles.
Only 'allow_any' applies to any client local or remote.
This seems confirmed by what you observe on your machine.

Offline

#3 2014-08-04 06:16:13

remingtontonpon
Member
Registered: 2011-09-16
Posts: 24

Re: [SOLVED]What is the meaning of any/active/inactive session in polkit?

Thank you big_smile


I am sorry if my English is hard to understand. Please ask if you would like me to explain something again.

Offline

Board footer

Powered by FluxBB