# \[SOLVED: sddm\] device manger asks for password to open usb stick in file manager

**URL:** <https://support.blue-systems.com/t/solved-sddm-device-manger-asks-for-password-to-open-usb-stick-in-file-manager/3879>\
**Category:** Netrunner 17\
**Created:** [March 29, 2016, 2:13pm UTC](https://support.blue-systems.com/t/solved-sddm-device-manger-asks-for-password-to-open-usb-stick-in-file-manager/3879 "2016-03-29T14:13:27Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![spacepenguin](https://support.blue-systems.com/letter_avatar/spacepenguin/32/6_449c533f586939b6e5f246632a46421f.png) [@spacepenguin](https://support.blue-systems.com/u/spacepenguin)\
**Post date:** [March 29, 2016, 2:13pm UTC](https://support.blue-systems.com/t/solved-sddm-device-manger-asks-for-password-to-open-usb-stick-in-file-manager/3879/1 "2016-03-29T14:13:27Z")

</div>

I have two netrunner 17 systems. On one I can open a usb stick in file manager via the device manager without further notices - and on the other system I get asked for the password when I click on open in file manager (same usb stick)… Why the latter? And how to get rid of the authorization?

---

<div class="post-metadata">

**Author:** ![leszek](https://support.blue-systems.com/user_avatar/support.blue-systems.com/leszek/32/13_2.png) [@leszek](https://support.blue-systems.com/u/leszek)\
**Post date:** [March 29, 2016, 2:59pm UTC](https://support.blue-systems.com/t/solved-sddm-device-manger-asks-for-password-to-open-usb-stick-in-file-manager/3879/2 "2016-03-29T14:59:34Z")

</div>

On the “other” system where it shows the prompt do you have a second user experiencing this behavior or is it the default user ?

---

<div class="post-metadata">

**Author:** ![leszek](https://support.blue-systems.com/user_avatar/support.blue-systems.com/leszek/32/13_2.png) [@leszek](https://support.blue-systems.com/u/leszek)\
**Post date:** [March 29, 2016, 3:52pm UTC](https://support.blue-systems.com/t/solved-sddm-device-manger-asks-for-password-to-open-usb-stick-in-file-manager/3879/3 "2016-03-29T15:52:55Z")

</div>

Please make sure that the package polkit-kde-1 is installed. It might have been removed during the upgrade to Plasma 5.5.4 in Kubuntu Backports ppa.

---

<div class="post-metadata">

**Author:** ![spacepenguin](https://support.blue-systems.com/letter_avatar/spacepenguin/32/6_449c533f586939b6e5f246632a46421f.png) [@spacepenguin](https://support.blue-systems.com/u/spacepenguin)\
**Post date:** [March 29, 2016, 6:07pm UTC](https://support.blue-systems.com/t/solved-sddm-device-manger-asks-for-password-to-open-usb-stick-in-file-manager/3879/4 "2016-03-29T18:07:12Z")

</div>

> [@leszek](#):
>
> Please make sure that the package polkit-kde-1 is installed. It might have been removed during the upgrade to Plasma 5.5.4 in Kubuntu Backports ppa.

On both systems there is only one user and polkit-kde-1 is not installed on both systems. I’ll add it on both…

Thanks, that solved it. 🙂

---

<div class="post-metadata">

**Author:** ![spacepenguin](https://support.blue-systems.com/letter_avatar/spacepenguin/32/6_449c533f586939b6e5f246632a46421f.png) [@spacepenguin](https://support.blue-systems.com/u/spacepenguin)\
**Post date:** [March 31, 2016, 10:27pm UTC](https://support.blue-systems.com/t/solved-sddm-device-manger-asks-for-password-to-open-usb-stick-in-file-manager/3879/5 "2016-03-31T22:27:05Z")

</div>

Alas it is not solved. After a reboot it still asks for authentification when I click on “open with file manager” in the device manager. This happens no matter which removable media device the device manager wants to mount.

---

<div class="post-metadata">

**Author:** ![leszek](https://support.blue-systems.com/user_avatar/support.blue-systems.com/leszek/32/13_2.png) [@leszek](https://support.blue-systems.com/u/leszek)\
**Post date:** [April 1, 2016, 7:04am UTC](https://support.blue-systems.com/t/solved-sddm-device-manger-asks-for-password-to-open-usb-stick-in-file-manager/3879/6 "2016-04-01T07:04:37Z")

</div>

Can you provide your ~/.xsession-errors file or its contents. Maybe there is an error message that could help us analyzing the problem.

---

<div class="post-metadata">

**Author:** ![spacepenguin](https://support.blue-systems.com/letter_avatar/spacepenguin/32/6_449c533f586939b6e5f246632a46421f.png) [@spacepenguin](https://support.blue-systems.com/u/spacepenguin)\
**Post date:** [April 1, 2016, 1:33pm UTC](https://support.blue-systems.com/t/solved-sddm-device-manger-asks-for-password-to-open-usb-stick-in-file-manager/3879/7 "2016-04-01T13:33:47Z")

</div>

> [@leszek](#):
>
> Can you provide your ~/.xsession-errors file or its contents. Maybe there is an error message that could help us analyzing the problem.

It definitely is a problem of the user account. I have created a second user with the same privileges to test and I can open devices in the second account without password.

I’ll append both .xsession-errors, the one for the working account and the one for the “weird” main account.

---

<div class="post-metadata">

**Author:** ![spacepenguin](https://support.blue-systems.com/letter_avatar/spacepenguin/32/6_449c533f586939b6e5f246632a46421f.png) [@spacepenguin](https://support.blue-systems.com/u/spacepenguin)\
**Post date:** [April 1, 2016, 1:52pm UTC](https://support.blue-systems.com/t/solved-sddm-device-manger-asks-for-password-to-open-usb-stick-in-file-manager/3879/8 "2016-04-01T13:52:20Z")

</div>

Strange… After I mounted something in the other account I can mount without password in the main account too…

---

<div class="post-metadata">

**Author:** ![leszek](https://support.blue-systems.com/user_avatar/support.blue-systems.com/leszek/32/13_2.png) [@leszek](https://support.blue-systems.com/u/leszek)\
**Post date:** [April 1, 2016, 2:08pm UTC](https://support.blue-systems.com/t/solved-sddm-device-manger-asks-for-password-to-open-usb-stick-in-file-manager/3879/9 "2016-04-01T14:08:18Z")

</div>

I don’t see anything useful in the two files. The working-account xsession-errors file does not seem to have any information about new devices. The second xsession-errors file has some useful information about usb sticks plugged in but sadly no error message about permission problem with mount or unmounting. Ejecting seems to work fine as it is logged there.

I am not really sure what could be the problem here. Can you check again if your users are in the plugdev group.  
Also can you try this here and see if it works: [http://askubuntu.com/a/552518](http://askubuntu.com/a/552518) (Use normal konsole instead of ctrl+alt+t and kate instead of gedit)

---

<div class="post-metadata">

**Author:** ![spacepenguin](https://support.blue-systems.com/letter_avatar/spacepenguin/32/6_449c533f586939b6e5f246632a46421f.png) [@spacepenguin](https://support.blue-systems.com/u/spacepenguin)\
**Post date:** [April 1, 2016, 2:19pm UTC](https://support.blue-systems.com/t/solved-sddm-device-manger-asks-for-password-to-open-usb-stick-in-file-manager/3879/10 "2016-04-01T14:19:15Z")

</div>

> [@leszek](#):
>
> I don’t see anything useful in the two files. The working-account xsession-errors file does not seem to have any information about new devices. The second xsession-errors file has some useful information about usb sticks plugged in but sadly no error message about permission problem with mount or unmounting. Ejecting seems to work fine as it is logged there.
> 
> I am not really sure what could be the problem here. Can you check again if your users are in the plugdev group.  
> Also can you try this here and see if it works: [14.04 - Stop asking for authentication to mount USB stick - Ask Ubuntu](http://askubuntu.com/a/552518) (Use normal konsole instead of ctrl+alt+t and kate instead of gedit)

Users are in plugdev group. Very “funny”… It does work without password if I use the second account and then the main account. But after a reboot it does not work in the main account anymore. So it’s temporarily solvable… but not persistent…

I’ve attached another xsession-errors, sorry, the former was without plugging in a usb stick.

---

<div class="post-metadata">

**Author:** ![spacepenguin](https://support.blue-systems.com/letter_avatar/spacepenguin/32/6_449c533f586939b6e5f246632a46421f.png) [@spacepenguin](https://support.blue-systems.com/u/spacepenguin)\
**Post date:** [April 1, 2016, 2:24pm UTC](https://support.blue-systems.com/t/solved-sddm-device-manger-asks-for-password-to-open-usb-stick-in-file-manager/3879/11 "2016-04-01T14:24:27Z")

</div>

I wanted to try editing sudo gedit /usr/share/polkit-1/actions/org.freedesktop.udisks2.policy -  
but it does not contain anything with "\<action id=“org.freedesktop.udisks.filesystem-unmount…”

Apart from that it can’t be in a systemwide configuration as the other user with the same rights and groups can mount without password… Or are there somewhere systemwide stored actions for users?

---

<div class="post-metadata">

**Author:** ![spacepenguin](https://support.blue-systems.com/letter_avatar/spacepenguin/32/6_449c533f586939b6e5f246632a46421f.png) [@spacepenguin](https://support.blue-systems.com/u/spacepenguin)\
**Post date:** [April 1, 2016, 2:35pm UTC](https://support.blue-systems.com/t/solved-sddm-device-manger-asks-for-password-to-open-usb-stick-in-file-manager/3879/12 "2016-04-01T14:35:02Z")

</div>

And the id under details always is different.

---

<div class="post-metadata">

**Author:** ![leszek](https://support.blue-systems.com/user_avatar/support.blue-systems.com/leszek/32/13_2.png) [@leszek](https://support.blue-systems.com/u/leszek)\
**Post date:** [April 1, 2016, 2:35pm UTC](https://support.blue-systems.com/t/solved-sddm-device-manger-asks-for-password-to-open-usb-stick-in-file-manager/3879/13 "2016-04-01T14:35:36Z")

</div>

Yeah I see now the error Not authorized to perform operation in the ~/.xsession-errors file.  
Can you compare or put in here the output of ck-list-sessions on both users. Especially the one where mounting is not working. Maybe we can get something from there regarding policykit settings.

> [@](#):
>
> And the id under details always is different.

Its a process id it is meant to change 🙂

---

<div class="post-metadata">

**Author:** ![spacepenguin](https://support.blue-systems.com/letter_avatar/spacepenguin/32/6_449c533f586939b6e5f246632a46421f.png) [@spacepenguin](https://support.blue-systems.com/u/spacepenguin)\
**Post date:** [April 1, 2016, 3:04pm UTC](https://support.blue-systems.com/t/solved-sddm-device-manger-asks-for-password-to-open-usb-stick-in-file-manager/3879/14 "2016-04-01T15:04:14Z")

</div>

> [@leszek](#):
>
> Yeah I see now the error Not authorized to perform operation in the ~/.xsession-errors file.  
> Can you compare or put in here the output of ck-list-sessions on both users. Especially the one where mounting is not working. Maybe we can get something from there regarding policykit settings.

Strange main account:

`susanne@gemini:~$ ck-list-sessions
Session1:
        unix-user = '1000'
        realname = ' Susanne'
        seat = 'Seat2'
        session-type = ''
        active = FALSE
        x11-display = ':0'
        x11-display-device = '/dev/tty7'
        display-device = ''
        remote-host-name = ''
        is-local = FALSE
        on-since = '2016-04-01T14:58:08.098542Z'
        login-session-id = '2'
susanne@gemini:~$ `

---

<div class="post-metadata">

**Author:** ![leszek](https://support.blue-systems.com/user_avatar/support.blue-systems.com/leszek/32/13_2.png) [@leszek](https://support.blue-systems.com/u/leszek)\
**Post date:** [April 1, 2016, 3:08pm UTC](https://support.blue-systems.com/t/solved-sddm-device-manger-asks-for-password-to-open-usb-stick-in-file-manager/3879/15 "2016-04-01T15:08:23Z")

</div>

Ok here is the problem I think: active = FALSE. So it is not detecting that the user session is active.  
Can you try relogin and see if it changes anything.

---

<div class="post-metadata">

**Author:** ![spacepenguin](https://support.blue-systems.com/letter_avatar/spacepenguin/32/6_449c533f586939b6e5f246632a46421f.png) [@spacepenguin](https://support.blue-systems.com/u/spacepenguin)\
**Post date:** [April 1, 2016, 3:14pm UTC](https://support.blue-systems.com/t/solved-sddm-device-manger-asks-for-password-to-open-usb-stick-in-file-manager/3879/16 "2016-04-01T15:14:25Z")

</div>

And that’s the other one:

[code]rescue@gemini:~$ ck-list-sessions  
Session2:  
unix-user = ‘1001’  
realname = ‘Rescue’  
seat = ‘Seat3’  
session-type = ‘’  
active = FALSE  
x11-display = ‘:0’  
x11-display-device = ‘/dev/tty7’  
display-device = ‘’  
remote-host-name = ‘’  
is-local = FALSE  
on-since = ‘2016-04-01T15:14:04.866279Z’  
login-session-id = ‘4’  
rescue@gemini:~$

[/code]

Also active = FALSE

The “susanne” account also has the problem that it cannot shutdown the system, no matter what I click (halt/reboot) I always get only to the login screen. I also cannot open a second user session, I always have to log out and log in as the other user.

---

<div class="post-metadata">

**Author:** ![spacepenguin](https://support.blue-systems.com/letter_avatar/spacepenguin/32/6_449c533f586939b6e5f246632a46421f.png) [@spacepenguin](https://support.blue-systems.com/u/spacepenguin)\
**Post date:** [April 1, 2016, 3:18pm UTC](https://support.blue-systems.com/t/solved-sddm-device-manger-asks-for-password-to-open-usb-stick-in-file-manager/3879/17 "2016-04-01T15:18:39Z")

</div>

> [@leszek](#):
>
> Ok here is the problem I think: active = FALSE. So it is not detecting that the user session is active.  
> Can you try relogin and see if it changes anything.

No, does not change anything. On the other system the users are also reported as active = FALSE and no problems.

---

<div class="post-metadata">

**Author:** ![leszek](https://support.blue-systems.com/user_avatar/support.blue-systems.com/leszek/32/13_2.png) [@leszek](https://support.blue-systems.com/u/leszek)\
**Post date:** [April 1, 2016, 3:28pm UTC](https://support.blue-systems.com/t/solved-sddm-device-manger-asks-for-password-to-open-usb-stick-in-file-manager/3879/18 "2016-04-01T15:28:24Z")

</div>

Is the process polkit-kde-authentication-agent-1 running on both sessions ?

---

<div class="post-metadata">

**Author:** ![spacepenguin](https://support.blue-systems.com/letter_avatar/spacepenguin/32/6_449c533f586939b6e5f246632a46421f.png) [@spacepenguin](https://support.blue-systems.com/u/spacepenguin)\
**Post date:** [April 1, 2016, 3:31pm UTC](https://support.blue-systems.com/t/solved-sddm-device-manger-asks-for-password-to-open-usb-stick-in-file-manager/3879/19 "2016-04-01T15:31:51Z")

</div>

I can check that in about an hour or two I guess, by now I’m off.

---

<div class="post-metadata">

**Author:** ![spacepenguin](https://support.blue-systems.com/letter_avatar/spacepenguin/32/6_449c533f586939b6e5f246632a46421f.png) [@spacepenguin](https://support.blue-systems.com/u/spacepenguin)\
**Post date:** [April 1, 2016, 7:04pm UTC](https://support.blue-systems.com/t/solved-sddm-device-manger-asks-for-password-to-open-usb-stick-in-file-manager/3879/20 "2016-04-01T19:04:53Z")

</div>

`susanne@gemini:~$ ps -A | grep polkit
  742 ? 00:00:00 polkitd
 1436 ? 00:00:00 polkit-kde-auth
`

This isn’t it?

[Next page](https://support.blue-systems.com/t/solved-sddm-device-manger-asks-for-password-to-open-usb-stick-in-file-manager/3879.md?page=2)
