From: Alexey Morozov <morozov_ml@ngs.ru> To: devel@lists.altlinux.org Subject: [devel] [workarounded] Верните мне моё флэшко! Date: Fri, 07 Dec 2012 15:57:38 +0700 Message-ID: <50C1AF82.6070801@ngs.ru> (raw) In-Reply-To: <50ADCA50.6000105@ngs.ru> В общем, для беспарольного монтирования флешек при помощи udisksctl (и KDE, соответственно) для сравнительно свежих релизов polkit/consolekit/udisks2 достаточно создать файлик /etc/polkit-1/localauthority/50-local.d/10-users-mount.pkla с примерно вот таким содержимым: [Storage Permissions] Identity=unix-group:users Action=org.freedesktop.udisks.filesystem-mount;org.freedesktop.udisks.filesystem-unmount-others;org.freedesktop.udisks.drive-eject;org.freedesktop.udisks.drive-detach;org.freedesktop.udisks.luks-unlock;org.freedesktop.udisks.inhibit-polling;org.freedesktop.udisks.drive-set-spindown;org.freedesktop.udisks2.filesystem-mount ResultAny=yes ResultActive=yes ResultInactive=yes Возможно, имеет смысл добавить и другие udisks2-действия (pkaction | grep udisks2), но пока неактуально. Ну и, это, вообще лучше б разобраться. X'овая сессия у меня имеется и помечена как активная; для активной сессии, по мнению pkaction, пароля спрашивать не нужно: alex@rhyme ~ $ pkaction --verbose --action-id org.freedesktop.udisks2.filesystem-mount org.freedesktop.udisks2.filesystem-mount: description: Mount a filesystem message: Authentication is required to mount the filesystem vendor: The udisks Project vendor_url: http://udisks.freedesktop.org/ icon: drive-removable-media implicit any: auth_admin implicit inactive: auth_admin implicit active: yes упираемся именно в эту функцию udisks2 (я думал, что, может, вызывается org.freedesktop.udisks2.filesystem-mount-other-seat из-за того, что неправильно идёт работа с Местами - Seats, но нет, место определяется правильно)... В общем, должно работать и без таких костылей с группами. Но не работает... С уважением, Алексей Морозов
next prev parent reply other threads:[~2012-12-07 8:57 UTC|newest] Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top 2012-11-22 5:54 [devel] Bring the boys back^W^W^W^WВерните " Alexey Morozov 2012-11-22 6:01 ` Pavel Vainerman 2012-11-22 6:46 ` Alexey Morozov 2012-12-07 8:57 ` Alexey Morozov [this message] 2012-12-07 9:21 ` [devel] [workarounded] Верните " Sergei Epiphanov 2012-12-10 3:58 ` Alexey Morozov 2012-12-07 12:06 ` Sergey V Turchin 2012-12-10 4:00 ` Alexey Morozov 2012-12-10 12:07 ` Sergey V Turchin 2012-11-22 6:50 ` [devel] Bring the boys back^W^W^W^WВерните " Ildar Mulyukov 2012-11-22 7:00 ` thecrux 2012-11-22 7:39 ` Ildar Mulyukov 2012-11-22 8:10 ` [devel] [JT] " Alexey Morozov 2012-11-22 8:54 ` Ildar Mulyukov 2012-11-22 11:06 ` [devel] " Sergey V Turchin 2012-11-22 11:12 ` [devel] [JT] " Pavel Vainerman
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=50C1AF82.6070801@ngs.ru \ --to=morozov_ml@ngs.ru \ --cc=devel@lists.altlinux.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
ALT Linux Team development discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \ devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru public-inbox-index devel Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.devel AGPL code for this site: git clone https://public-inbox.org/public-inbox.git