-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
В Tue, 28 May 2013 21:25:29 +0400
Andrey Borzenkov
В Tue, 28 May 2013 18:57:15 +0200 (CEST) "Carlos E. R."
пишет: On Tuesday, 2013-05-28 at 12:43 -0400, Greg Freemyer wrote:
On Tue, May 28, 2013 at 12:26 PM, Carlos E. R. <> wrote:
That means when a thumbdrive, etc. is physically plugged in it gets mounted in /media as a shared resource, not per-user. Anyone with multiple physical heads would probably want to get the latest udisk2 update (via a normal zypper update or zypper patch) and then create the config entry as described above. I don't think there is any need for a manual mount.
I'm using that feature since about a month ago - but you miss the point, the permissions:
eleanor3:~ # l /media total 40 drwxr-xr-x 3 root root 4096 May 28 18:51 ./ drwxr-xr-x 24 root root 4096 May 1 02:43 ../ drwx------ 16 cer users 16384 Jan 1 1970 KINGSTON/ eleanor3:~ #
Only the user in the seat can access it, it is not a "shared resource". That's the problem that Ruediger has - check the thread.
In the current (where "current" means several years old at least) framework this is out of scope of system administration. Filesystem is mounted using whatever options *client* supplies. Where "client" usually means some agent started as part of your favorite desktop environment.
So if shared access is needed, either desktop environment has to offer interface to configure mount options (to set gid=xxx or umask=xxx or whatever) or - preferably - file system that supports access control under Linux is to be used.
As an illustration. bor@opensuse:~/src/udisks> tail -1 /proc/mounts /dev/sdb /var/run/media/bor/A48F-A29B vfat rw,nosuid,nodev,relatime,uid=501,gid=501,fmask=0022,dmask=0077,codepage=cp437,iocharset=iso8859-1,shortname=mixed,showexec,utf8,flush,errors=remount-ro 0 0 bor@opensuse:~> udisksctl unmount -b /dev/sdb Unmounted /dev/sdb. bor@opensuse:~> udisksctl mount -b /dev/sdb -o dmask=000 Mounted /dev/sdb at /run/media/bor/A48F-A29B. bor@opensuse:~/src/udisks> tail -1 /proc/mounts /dev/sdb /var/run/media/bor/A48F-A29B vfat rw,nosuid,nodev,relatime,uid=501,gid=501,fmask=0022,dmask=0000,allow_utime=0022,codepage=cp437,iocharset=iso8859-1,shortname=mixed,showexec,utf8,flush,errors=remount-ro 0 0 bor@opensuse:~/src/udisks> ll /run/media/bor итого 32 drwxrwxrwx 3 bor bor 16384 янв 1 1970 A48F-A29B The real problem is - how to change mount options. I spent almost an hour trying to find it for GNOME3 with no avail. I still do not know. It seems that the only way is to check out full GNOME sources and use grep ... -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) iEYEARECAAYFAlGlqaEACgkQR6LMutpd94zB2wCfXt7/kPTmXHups9cTHmtTHH1h yQYAnRDkPVadDBOVj+59L8nv83BBDeMd =Gw81 -----END PGP SIGNATURE----- N▀╖╡ФЛr╦⌡yИ ┼Z)z{.╠О╝·к⌡╠йБmЙ)z{.╠Й+│:╒{Zrшaz▄'z╥╕j)h╔ИЛ╨г╬ё ч╝┼^·к╛z┼Ю