<div dir="ltr">Thank you for reply. I am sorry for wrong bug-report placing, just found "error_name=org.gtk.GDBus.UnmappedGError.Quark._g_2dio_2derror_2dquark.Code0" <br>here, and stopped looking for better location.<br><br>While I was writing the answer below, i found that i am not right.<br>It looks like #703016, when i start <br>/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1<br>i can pkexec and mount.<br><br>I am sorry for my haste.<br><br>Best regards,<br>Dmitri<br><br><br>-------My fail here------<br>> What groups is your user account in? ("groups" command)<br><br>➜  ~  groups <br>noroot disk audio dip video plugdev netdev vboxusers storage<br><br>Same as in new jessie installation (where it appears a gui promt asking root password)<br><br>>Does the system think your login session is active? (See below)<br><br>Yes, it does<br><br>Id=2<br>Name=noroot<br>Timestamp=Sun 2015-03-01 23:50:18 EET<br>TimestampMonotonic=435710523<br>VTNr=7<br>Display=:0<br>Remote=no<br>Service=lightdm<br>Scope=session-2.scope<br>Leader=17397<br>Audit=2<br>Type=x11<br>Class=user<br>Active=yes<br>State=active<br>IdleHint=no<br>IdleSinceHint=0<br>IdleSinceHintMonotonic=0<br><br><br>> What type of disk contains the partitions you are trying to manipulate?<br>> Does the system think it is a removable disk? (See below)<br><br>It is an internal hdd, and i fugured, that i can mount partitions with<br><br>➜  ~  /usr/bin/udisksctl mount -b /dev/sda5<br>==== AUTHENTICATING FOR org.freedesktop.udisks2.filesystem-mount-system ===<br>Authentication is required to mount WDC WD10EZEX-08M2NA0 (/dev/sda5)<br>Authenticating as: root<br>Password: <br><br>(udisksctl mount:24101): GLib-WARNING **: GChildWatchSource: Exit status of a child process was requested but ECHILD was received by waitpid(). Most likely the process is ignoring SIGCHLD, or some other thread is invoking waitpid() with a nonpositive first argument; either behavior can break applications that use g_child_watch_add()/g_spawn_sync() either directly or indirectly.<br>==== AUTHENTICATION COMPLETE ===<br>Mounted /dev/sda5 at /media/noroot/data.<br> <br>and i cat umount it from thunar<br><br>> ---- PolicyKit policy ----<br><br>>/usr/share/polkit-1/actions/org.freedesktop.udisks2.policy says that<br>>by default you can mount filesystems on removable devices if you either<br>>authenticate as an administrative user or are in an active desktop session,<br>>and you can only mount filesystems on non-removable devices<br>>or described in /etc/fstab if you authenticate as an administrative user.<br><br>Yep, chagint section to <br>    <defaults><br>      <allow_any>yes</allow_any><br>      <allow_inactive>yes</allow_inactive><br>      <allow_active>yes</allow_active><br>    </defaults><br><br>made the trick, and fs are mounting w/o asking password<br><br>So, it is a problem just with gui part, because i can not also run gparted-pkexec.desktop, and had to swap pkexec with gksu, while running pkexec in terminal asks the root password in cli.<br><br><br><br><br>There are the packages versions i have in my system<br>aptitude search ~ipolicykit ~ipolkit ~idbus ~iudisk -F "%v %p"<br>1.9.12-1       dbus                                                             <br>1.9.12-1       dbus-x11                                                         <br>2.1.3-5        gir1.2-udisks-2.0                                                <br>1.9.12-1       libdbus-1-3                                                      <br>1.9.12-1       libdbus-1-3:i386                                                 <br>1.9.12-1       libdbus-1-dev                                                    <br>0.102-1        libdbus-glib-1-2                                                 <br>0.6.0-1        libdbus-glib2.0-cil                                              <br>0.8.1-1        libdbus2.0-cil                                                   <br>12.10.2-1      libdbusmenu-glib4                                                <br>12.10.2-1      libdbusmenu-gtk4                                                 <br>0.4.1-4        libndesk-dbus-glib1.0-cil                                        <br>0.6.0-6        libndesk-dbus1.0-cil                                             <br>1.0.0-2+b2     libnet-dbus-perl                                                 <br>1.0.3-4.3      libnih-dbus1                                                     <br>0.112-4        libpolkit-agent-1-0                                              <br>0.105-8        libpolkit-backend-1-0                                            <br>0.112-4        libpolkit-gobject-1-0                                            <br>0.103.0-1      libpolkit-qt-1-1                                                 <br>4:4.8.6+git64- libqt4-dbus                                                      <br>4:4.8.6+git64- libqt4-dbus:i386                                                 <br>5.3.2+dfsg-4+b libqt5dbus5                                                      <br>4:4.8.6+git64- libqtdbus4                                                       <br>4:4.8.6+git64- libqtdbus4:i386                                                  <br>2.1.3-5        libudisks2-0                                                     <br>0.112-4        policykit-1                                                      <br>0.105-2        policykit-1-gnome                                                <br>1.2.0-2+b3     python-dbus                                                      <br>1.2.0-2        python-dbus-dev                                                  <br>4:4.8.6+git64- qdbus                                                            <br>2.1.4-1        udisks2                                                          <br><br><br>Versions of packages policykit-1 depends on:<br>ii  adduser                3.113+nmu3<br>ii  dbus                   1.9.12-1<br>ii  libc6                  2.19-15<br>ii  libexpat1              2.1.0-6+b3<br>ii  libglib2.0-0           2.42.1-1<br>ii  libmozjs-17.0-0        17.0.0-2<br>ii  libpam-systemd         219-4<br>ii  libpam0g               1.1.8-3.1<br>ii  libpolkit-agent-1-0    0.112-4<br>ii  libpolkit-gobject-1-0  0.112-4<br>ii  libsystemd0            219-4<br><div class="gmail_extra"><br><div class="gmail_quote">2015-03-01 18:55 GMT+02:00 Simon McVittie <span dir="ltr"><<a href="mailto:smcv@debian.org" target="_blank">smcv@debian.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Control: reassign 730102 policykit-1<br>
Control: tags 730102 + moreinfo<br>
<br>
This does not look like a bug in D-Bus: D-Bus is only a message-passing<br>
system, and I don't see any indication that it is passing the messages<br>
incorrectly (analogy: if you buy an office chair on eBay, and the<br>
seller sends you a bobcat instead <<a href="http://xkcd.com/325/" target="_blank">http://xkcd.com/325/</a>>, this is not<br>
the courier's fault).<br>
<br>
I'm reassigning this to policykit for now in the hope that the PK<br>
maintainers will know more about how to debug this than I do, but<br>
you would probably get better results from a user support forum<br>
such as the debian-user mailing list.<br>
<br>
The fact that the default "out of the box" configuration does not do<br>
what you expect might be a bug in some component (perhaps udisks2 or<br>
policykit-1), but you will need to provide more information / do more<br>
research before anyone can determine what is wrong.<br>
<br>
On Thu, 21 Nov 2013 at 12:57:30 +0100, Manuel J. Martin wrote:<br>
> xrdb:  "Xft.hinting" on line 8 overrides entry on line 5<br>
> xrdb:  "Xft.hintstyle" on line 10 overrides entry on line 6<br>
> xfce4-session-Message: ssh-agent is already running; starting gpg-agent<br>
> without ssh support<br>
<br>
These don't look relevant.<br>
<br>
> method call sender=:1.4 -> dest=:1.7 serial=69<br>
> path=/org/gtk/Private/RemoteVolumeMonitor;<br>
> interface=org.gtk.Private.RemoteVolumeMonitor; member=VolumeMount<br>
>    string "0x1faddb0"<br>
>    string ""<br>
>    uint32 0<br>
>    string "31764:2"<br>
> error sender=:1.7 -> dest=:1.4<br>
> error_name=org.gtk.GDBus.UnmappedGError.Quark._g_2dio_2derror_2dquark.Code0<br>
> reply_serial=69<br>
>    string "Not authorized to perform operation"<br>
<br>
This is not an error generated by libdbus or dbus-daemon. :1.4 (whatever<br>
process that is) is sending a request, and :1.7 (looks like part of gvfs)<br>
replies with the error G_IO_ERROR_FAILED "Not authorized to perform<br>
operation".<br>
<br>
From searching source code, I suspect may be because :1.4 (gvfs?) is<br>
sending a request to udisks2 and receiving the error<br>
POLKIT_ERROR_NOT_AUTHORIZED "Not authorized to perform operation".<br>
<br>
On Sun, 01 Mar 2015 at 05:07:27 +0200, Трезвый Дворник wrote:<br>
> I tried some udisk2/policykit rules, but without any success (anyway, it<br>
> must<br>
> be something relevant to out-of-box problem, not user-configuration part)<br>
<br>
What groups is your user account in? ("groups" command)<br>
<br>
Does the system think your login session is active? (See below)<br>
<br>
What type of disk contains the partitions you are trying to manipulate?<br>
Does the system think it is a removable disk? (See below)<br>
<br>
---- PolicyKit policy ----<br>
<br>
/usr/share/polkit-1/actions/org.freedesktop.udisks2.policy says that<br>
by default you can mount filesystems on removable devices if you either<br>
authenticate as an administrative user or are in an active desktop session,<br>
and you can only mount filesystems on non-removable devices<br>
or described in /etc/fstab if you authenticate as an administrative user.<br>
<br>
---- Whether your login session is active ----<br>
<br>
In Debian wheezy, an "active desktop session" is one that ConsoleKit<br>
thinks is active. Use the ck-list-sessions command to check that<br>
ConsoleKit thinks your session is active.<br>
<br>
In Debian jessie/sid, an "active desktop session" is one that<br>
systemd-logind thinks is active. Use the "loginctl list-sessions"<br>
command to find your session ID, then something like "loginctl show-session 1"<br>
(if your session ID is 1) to check that systemd-logind thinks your<br>
session is active.<br>
<br>
---- Whether you are an administrative user ----<br>
<br>
An "administrative user" is a user in the sudo group. I don't know whether<br>
root gets an exception from this check: in any case, using the GUI as root<br>
is not recommended. You should create a non-root user account and add it<br>
to the sudo group.<br>
<br>
---- Whether your disk is removable ----<br>
<br>
Run "cat /sys/class/block/sda/removable" replacing sda with the name of<br>
the disk device (e.g. /dev/sda). You should get 0 for an internal disk<br>
or 1 for a disk with removable media. USB sticks usually show up as<br>
"removable" even though they aren't really.<br>
<br>
Run "udisksctl dump" to see everything udisks knows about your disks<br>
and partitions. Removable disks should have HintSystem: false,<br>
HintIgnore: false; internal system disks should have HintSystem: true.<br>
<br>
Regards,<br>
    S<br>
</blockquote></div><br></div></div>