Siduction Forum

Siduction Forum => Software - Support => Thema gestartet von: Mte90 in 2014/05/03, 12:23:23

Titel: [solved] Dolphin and Mount usb drive Not Authorized
Beitrag von: Mte90 in 2014/05/03, 12:23:23
When i try to open a external hard disk, for example, dolphin report me an error Not Authorized.
I can open and use this hard disks only with dolphin opened by the root user.
Titel: Re: Dolphin and Mount usb drive Not Authorized
Beitrag von: devil in 2014/05/03, 13:45:11
What filesystem is on that disk?
Also, please run the command 'mount' as root and show us the line for the drive


greetz
devil
Titel: Re: Dolphin and Mount usb drive Not Authorized
Beitrag von: Mte90 in 2014/05/03, 17:21:49
The file system is fat32 or ntfs.
Example command
mount /dev/sdb3 /media/drive3[code]
This works without problem and dolphin see the folder.
Titel: Re: Dolphin and Mount usb drive Not Authorized
Beitrag von: Bequimão in 2014/05/03, 18:08:44
What are the autorisations of the mountpoint?

# ls -al /media

Bequimão
Titel: Re: Dolphin and Mount usb drive Not Authorized
Beitrag von: Mte90 in 2014/05/03, 18:11:24

drwxrwxrwx  16 mte90 mte90 4096 mag  1 15:48 disk1part1
drwxrwxrwx   6 root  root  1024 gen  1  1970 disk1part2
drwxrwxrwx  14 root  root  4096 mag  2 12:03 disk3part1
drwxrwxrwx   3 root  root  4096 giu  1  2013 disk3part2

In this list are present only the devices mounted in the system.
Titel: Re: Dolphin and Mount usb drive Not Authorized
Beitrag von: Bequimão in 2014/05/04, 01:56:48
Please enter the command as root, as the character # indicates. And also the command that devil requested. It works is not a good answer. We like to see the output.

Best regards,
Bequimão
Titel: Re: Dolphin and Mount usb drive Not Authorized
Beitrag von: dibl in 2014/05/04, 02:03:06
# blkid -c /dev/null -o list
Titel: Re: Dolphin and Mount usb drive Not Authorized
Beitrag von: Mte90 in 2014/05/04, 12:27:46

drwxr-xr-x   7 root  root  4096 mag  3 18:09 .
drwxr-xr-x  27 root  root  4096 mag  3 11:12 ..
drwxrwxrwx  16 mte90 mte90 4096 mag  1 15:48 disk1part1
drwxrwxrwx   6 root  root  1024 gen  1  1970 disk1part2
drwxrwxrwx  14 root  root  4096 mag  2 12:03 disk3part1
drwxrwxrwx   3 root  root  4096 giu  1  2013 disk3part2
drwxr-x---+  2 root  root  4096 gen 18 17:41 mte90

   as already said this are the device mounted


device                                           fs_type         label            mount point                                          UUID
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
/dev/sda1                                        ext4                             /                                                    c48349e2-2ce5-4223-af5a-b299ca65234c
/dev/sdb1                                        ext4            Archivio         /media/disk3part1                                    13faa8e9-0339-443c-85be-7e76834673ad
/dev/sdb2                                        ext4            Home             /home                                                b0b4ec87-64e8-4d8a-9691-4a4303427de8
/dev/sdb3                                        ntfs            Windows          (not mounted)                                        34C0654446451975
/dev/sdc1                                        ntfs                             (not mounted)                                        7884843014964D90
/dev/sdc2                                        ntfs                             (not mounted)                                        46D0711B7940DAA0
/dev/sdd1                                        ext3            Mte90HD          /media/disk1part1                                    fe501afe-d357-4aa8-9ce8-5846092a940e
/dev/sdd2                                        vfat            DriverExt        /media/disk1part2                                    6DCA-35EC

This is the list of hard disk the ntfs system are not mounted but are in a second hard disk.
If i insert a usb pen they have fat32.
Thanks for the help
Titel: Re: Dolphin and Mount usb drive Not Authorized
Beitrag von: Mte90 in 2014/05/07, 21:36:08
On kde forums say the problem it's polkit http://forum.kde.org/viewtopic.php?f=224&t=120938
Titel: Re: Dolphin and Mount usb drive Not Authorized
Beitrag von: der_bud in 2014/05/07, 22:32:35
You could try to remove the package usbmount if installed, this is known for creating strange things in mounting external devices.
Titel: Re: Dolphin and Mount usb drive Not Authorized
Beitrag von: Mte90 in 2014/05/07, 22:33:35
usbmount it's not installed  :-\
Titel: Re: Dolphin and Mount usb drive Not Authorized
Beitrag von: Mte90 in 2014/05/20, 16:55:01
any help?
Titel: Re: Dolphin and Mount usb drive Not Authorized
Beitrag von: ghstryder in 2014/05/20, 20:56:05
I would never consider myself expert at this, but that is exactly what would happen if you have not installed policykit-1. If you aren't using the new release, have you by any chance held off switching to systemd?
Titel: Re: Dolphin and Mount usb drive Not Authorized
Beitrag von: Mte90 in 2014/05/21, 09:26:03
I have installed systemd months ago but yesterday i have checked that missing the package
systemd-sysv

The problem persist and now in the desktop i get an error of klauncher for the folder view that not work.
Titel: Re: Dolphin and Mount usb drive Not Authorized
Beitrag von: devil in 2014/05/21, 11:09:32
Your system seems broken in a way that we can't determine. So it is down to guesswork. Please paste what apt-get update && apt-get install kde-standard does for you? Also please paste the output of dpkg -l | grep policykit


greetz
devil
Titel: Re: Dolphin and Mount usb drive Not Authorized
Beitrag von: Mte90 in 2014/05/21, 11:20:45
The only package missing are:

plasma-containments-addons plasma-runners-addons kdeplasma-addons libastro1 libmarblewidget18 plasma-wallpapers-addons plasma-widget-lancelot

The other reported:
dragonplayer juk kde-standard kmail kopete sweeper

But i don't use so i don't install

root@siduction:/home/mte90# dpkg -l | grep policykit
ii  policykit-1                                               0.112-2                          amd64        framework for managing administrative policies and privileges


The problems with the folder view now are fixed :-D
Titel: Re: Dolphin and Mount usb drive Not Authorized
Beitrag von: delta9 in 2014/06/01, 15:38:56
hi,

i have the very same issue and acannot mount any external devices. My problem seems to be
policykit-1 udisks2

this is what i get:

# apt-get -d dist-upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  policykit-1 udisks2
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.


and

apt-get -s install policykit-1  udisks2
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  libpam-systemd systemd-sysv
Suggested packages:
  exfat-utils btrfs-tools mdadm
The following packages will be REMOVED:
  sysvinit-core
The following NEW packages will be installed:
  libpam-systemd systemd-sysv
The following packages will be upgraded:
  policykit-1 udisks2
2 upgraded, 2 newly installed, 1 to remove and 0 not upgraded.
Remv sysvinit-core [2.88dsf-53] [sysvinit:amd64 ]
Inst systemd-sysv (204-10 Debian:unstable [amd64])
Conf systemd-sysv (204-10 Debian:unstable [amd64])
Inst libpam-systemd (204-10 Debian:unstable [amd64])
Inst policykit-1 [0.105-4] (0.105-6 Debian:unstable [amd64])
Inst udisks2 [2.1.3-1] (2.1.3-2 Debian:unstable [amd64])
Conf libpam-systemd (204-10 Debian:unstable [amd64])
Conf policykit-1 (0.105-6 Debian:unstable [amd64])
Conf udisks2 (2.1.3-2 Debian:unstable [amd64])


and also

dpkg -l | grep policykit
ii  policykit-1                                      0.105-4                            amd64        framework for managing administrative policies and privileges


Any help would be appreciated,
thanks a lot in advance
Titel: Re: Dolphin and Mount usb drive Not Authorized
Beitrag von: Mte90 in 2014/06/01, 15:54:13
With two pc with aptosid after the upgrade i get Not authorized to perform this operation and with a file /etc/polkit-1/localauthority/50-local.d/55-storage.pkla

with this code:

  [Storage Permissions] Identity=unix-group:plugdev Action=org.freedesktop.udisks* ResultActive=yes ResultInactive=no [code]Based on http://superuser.com/a/708032/312054 i have fixed by with this pc don't work.
Titel: Re: Dolphin and Mount usb drive Not Authorized
Beitrag von: musca in 2014/06/02, 18:21:19
Hello Mte90 and delta9!

With policykit-1 version 0.105-6 your issue will be solved,
but it depends on libpam-systemd which depends on systemd-sysv.

So you need to decide if you want to install systemd-sysv (aka conversion to systemd).

greetings
musca

Titel: Re: Dolphin and Mount usb drive Not Authorized
Beitrag von: Mte90 in 2014/06/02, 23:39:53
Uhm the libpam-systemd package missing my pc, installed (i have already systemd).
At the next boot i check if now works :-)
Titel: Re: Dolphin and Mount usb drive Not Authorized
Beitrag von: Mte90 in 2014/06/03, 18:31:33
perfect now works  :P :D
Titel: Re: [solved] Dolphin and Mount usb drive Not Authorized
Beitrag von: delta9 in 2014/06/04, 20:10:32
after installing  policykit-1 udisks2 im fine as well