Tag Info

Hot answers tagged

7

Firstly, make sure that dbus and consolekit are running -- usually this means prepending ck-launch-session dbus-launch to your exec statement. You will also want to check that your user is in the storage group (you can check with groups). Most distributions ship with the storage group's policies configured on install, but in case they aren't, you may want ...


3

When you create a filesystem that supports file ownership, its root directory starts owned by root (with all the mkfs that I remember seeing). The ownership of the mount point and the user who did the mounting are irrelevant to the ownership of the root directory (or any other file) on that filesystem. It would be problematic after all if mounting a ...


2

Not sure whether this applies in general, but here's how things work on a freshly installed Linux Mint 16, udisks2 DPKG package version 2.1.0-4: It looks like /usr/lib/udisks2/udisksd creates those mount point directories as root:root with permissions drwxr-xr-x, so octal 755; and the fix is indeed to simply change the permissions on the directory, for ...


2

If you're desperate, you can search and replace the path in the thunar sources, then recompile thunar. Alternatively, you could make /media into a soft link to /run/media/user_name, or the other way around, since you're the only one using the laptop.


2

I had the same problem a while ago. Solution: Fixing your configuration: create file /etc/polkit-1/localauthority/50-local.d/50-mount-as-pi.pkla with the following contents: [Media mounting by pi] Identity=unix-user:pi Action=org.freedesktop.udisks.filesystem-mount ResultAny=yes Fixing your init script: add a variable containing the user you would ...


1

I had a detailed look into the udisks2 source code and found the solution there. The devices correctly mounted under user permissions were formatted with old filesystems, like fat. These accept uid= and gid= mount options to set the owner. Udisks automatically sets these options to user and group id of the user that issued the mount request. Modern ...


1

I think you're down a level too deep in trying to do this with UDEV. Rather I'd try and do it with D-BUS instead. I found this tutorial titled: JACKdbus - Desktop integration - backend-switching that discusses how, using dbus-triggerd. The tutorial is meant for OSX but should be adaptable to suit your Linux needs. The key piece to this solution is ...


1

I cannot confirm this will solve your problem, because I don't have a CentOS 6.4 server with X11. However, according to Sombrero Roja's KB: In the desktop environment, udisks system manages the automatic mounts of the device. udisks defines the policy for devices in /usr/share/polkit-1/actions/org.freedesktop.udisks.policy. To override the policy, create ...


1

Maybe something along these lines: udevadm info --export-db | sed ' /^E: DEVNAME=/{s///;h;d;} /^E:[^=]*LABEL=/!d G;s/[^=]*=\(.*\)\n/"\1" /' The udisks equivalent being: udisks --dump | sed ' /^[[:blank:]]*device-file:[[:blank:]]*/{s///;h;d;} /^[[:blank:]]*label:.*[^[:blank:]]/!d G;s/[^:]*:[[:blank:]]*\(.*\)\n/"\1" /'


1

I think what you're looking for is already provided by the command blkid: /dev/sda1: LABEL="SYSTEM_DRV" UUID="10BE12331238FD148" TYPE="ntfs" /dev/sda2: LABEL="Windows7_OS" UUID="5CF2E12AD3438B42" TYPE="ntfs" /dev/sda3: LABEL="Lenovo_Recovery" UUID="C43211B2399007C54" TYPE="ntfs" /dev/sda5: UUID="4835b90f-4845-1234-8dcd-fbcf332338f8" TYPE="ext4" ...


1

The objective is to setup an active ConsoleKit session. You can check this via: $ ck-list-sessions | grep active active = TRUE If there are multiple ConsoleKit sessions only one session at most can be active at a time. If the output is something like $ ck-list-sessions | grep active active = FALSE active = FALSE you have a problem because ...


1

I had recently the same issue with LXDE on Debian testing. At the end @jw013 showed me a bug (see this question), where one can understand that the problem is that XDM and some other Display Manager do not talk with ConsoleKit, and do not set the correct information for PoliciKit (in particular the session results as inactive). I solved all my ...



Only top voted, non community-wiki answers of a minimum length are eligible