Отредактировать правило PolicyKit

Автор apt-get, 30 декабря 2018, 22:03:01

« назад - далее »

0 Пользователи и 3 гостей просматривают эту тему.

apt-get

В PolicyKit есть правило для udisks2, называется org.freedesktop.udisks2.filesystem-mount-system. Но я не могу понять где лежит сам конфиг правила (или само правило), чтобы его удалить или отредактировать. В /etc/polkit-1/rules.d пусто

Листинг /usr/share/polkit-1/rules.d/:

-rw-r--r-- 1 root root 261 ноя 27 02:35 60-network-manager.rules
-rw-r--r-- 1 root root 263 окт 22 10:09 geoclue-2.0.rules
-rw-r--r-- 1 root root 334 окт 15 19:54 org.freedesktop.packagekit.rules
-rw-r--r-- 1 root root 263 ноя 13 18:08 org.gtk.vfs.file-operations.rules
-rw-r--r-- 1 root root 330 июн 22  2018 systemd-networkd.rules


Сам org.freedesktop.udisks2.filesystem-mount-system лежит в /usr/share/polkit-1/actions

Мне нужно, чтобы PolicyKit не предлагал монтировать раздел при старте системы.

qupl

А разве по умолчанию что-то предлагает монтировать?

yoric


apt-get

Цитата: qupl от 31 декабря 2018, 09:11:54
А разве по умолчанию что-то предлагает монтировать?
Нет. Скорее всего при установке случайно указал монтировать диск.

apt-get


svtv1

Цитата: apt-get от 30 декабря 2018, 22:03:01Мне нужно, чтобы PolicyKit не предлагал монтировать раздел при старте системы.
А в чём проблем, что он тебе монтирует или предлогает??
<Куча-куча всего вывело.>
Что вывело, какую кучу??
В студию ответ, народ поможет и подскажет :).
"Если достаточно долго сидеть возле реки - мимо проплывет труп твоего врага"

apt-get

Цитата: svtv1 от 31 декабря 2018, 21:52:50
Цитата: apt-get от 30 декабря 2018, 22:03:01Мне нужно, чтобы PolicyKit не предлагал монтировать раздел при старте системы.
А в чём проблем, что он тебе монтирует или предлогает??
<Куча-куча всего вывело.>
Что вывело, какую кучу??
В студию ответ, народ поможет и подскажет :).
Что предлагает монтировать, да ещё и запрашивает пароль.

dpkg -L udisks2:
Открыть содержимое (спойлер)

/.
/etc
/etc/udisks2
/etc/udisks2/udisks2.conf
/lib
/lib/systemd
/lib/systemd/system
/lib/systemd/system/clean-mount-point@.service
/lib/systemd/system/udisks2.service
/lib/systemd/system/zram-setup@.service
/lib/udev
/lib/udev/rules.d
/lib/udev/rules.d/80-udisks2.rules
/sbin
/sbin/umount.udisks2
/usr
/usr/bin
/usr/bin/udisksctl
/usr/lib
/usr/lib/udisks2
/usr/lib/udisks2/udisks2-inhibit
/usr/lib/udisks2/udisksd
/usr/share
/usr/share/bash-completion
/usr/share/bash-completion/completions
/usr/share/bash-completion/completions/udisksctl
/usr/share/dbus-1
/usr/share/dbus-1/system-services
/usr/share/dbus-1/system-services/org.freedesktop.UDisks2.service
/usr/share/dbus-1/system.d
/usr/share/dbus-1/system.d/org.freedesktop.UDisks2.conf
/usr/share/doc
/usr/share/doc/udisks2
/usr/share/doc/udisks2/AUTHORS
/usr/share/doc/udisks2/NEWS.gz
/usr/share/doc/udisks2/README.md
/usr/share/doc/udisks2/changelog.Debian.gz
/usr/share/doc/udisks2/copyright
/usr/share/lintian
/usr/share/lintian/overrides
/usr/share/lintian/overrides/udisks2
/usr/share/locale
/usr/share/locale/ar
/usr/share/locale/ar/LC_MESSAGES
/usr/share/locale/ar/LC_MESSAGES/udisks2.mo
/usr/share/locale/as
/usr/share/locale/as/LC_MESSAGES
/usr/share/locale/as/LC_MESSAGES/udisks2.mo
/usr/share/locale/az
/usr/share/locale/az/LC_MESSAGES
/usr/share/locale/az/LC_MESSAGES/udisks2.mo
/usr/share/locale/bg
/usr/share/locale/bg/LC_MESSAGES
/usr/share/locale/bg/LC_MESSAGES/udisks2.mo
/usr/share/locale/bn_IN
/usr/share/locale/bn_IN/LC_MESSAGES
/usr/share/locale/bn_IN/LC_MESSAGES/udisks2.mo
/usr/share/locale/ca
/usr/share/locale/ca/LC_MESSAGES
/usr/share/locale/ca/LC_MESSAGES/udisks2.mo
/usr/share/locale/ca@valencia
/usr/share/locale/ca@valencia/LC_MESSAGES
/usr/share/locale/ca@valencia/LC_MESSAGES/udisks2.mo
/usr/share/locale/cs
/usr/share/locale/cs/LC_MESSAGES
/usr/share/locale/cs/LC_MESSAGES/udisks2.mo
/usr/share/locale/cy
/usr/share/locale/cy/LC_MESSAGES
/usr/share/locale/cy/LC_MESSAGES/udisks2.mo
/usr/share/locale/da
/usr/share/locale/da/LC_MESSAGES
/usr/share/locale/da/LC_MESSAGES/udisks2.mo
/usr/share/locale/de
/usr/share/locale/de/LC_MESSAGES
/usr/share/locale/de/LC_MESSAGES/udisks2.mo
/usr/share/locale/el
/usr/share/locale/el/LC_MESSAGES
/usr/share/locale/el/LC_MESSAGES/udisks2.mo
/usr/share/locale/en_GB
/usr/share/locale/en_GB/LC_MESSAGES
/usr/share/locale/en_GB/LC_MESSAGES/udisks2.mo
/usr/share/locale/eo
/usr/share/locale/eo/LC_MESSAGES
/usr/share/locale/eo/LC_MESSAGES/udisks2.mo
/usr/share/locale/es
/usr/share/locale/es/LC_MESSAGES
/usr/share/locale/es/LC_MESSAGES/udisks2.mo
/usr/share/locale/et
/usr/share/locale/et/LC_MESSAGES
/usr/share/locale/et/LC_MESSAGES/udisks2.mo
/usr/share/locale/eu
/usr/share/locale/eu/LC_MESSAGES
/usr/share/locale/eu/LC_MESSAGES/udisks2.mo
/usr/share/locale/fa
/usr/share/locale/fa/LC_MESSAGES
/usr/share/locale/fa/LC_MESSAGES/udisks2.mo
/usr/share/locale/fi
/usr/share/locale/fi/LC_MESSAGES
/usr/share/locale/fi/LC_MESSAGES/udisks2.mo
/usr/share/locale/fo
/usr/share/locale/fo/LC_MESSAGES
/usr/share/locale/fo/LC_MESSAGES/udisks2.mo
/usr/share/locale/fr
/usr/share/locale/fr/LC_MESSAGES
/usr/share/locale/fr/LC_MESSAGES/udisks2.mo
/usr/share/locale/fur
/usr/share/locale/fur/LC_MESSAGES
/usr/share/locale/fur/LC_MESSAGES/udisks2.mo
/usr/share/locale/ga
/usr/share/locale/ga/LC_MESSAGES
/usr/share/locale/ga/LC_MESSAGES/udisks2.mo
/usr/share/locale/gl
/usr/share/locale/gl/LC_MESSAGES
/usr/share/locale/gl/LC_MESSAGES/udisks2.mo
/usr/share/locale/gu
/usr/share/locale/gu/LC_MESSAGES
/usr/share/locale/gu/LC_MESSAGES/udisks2.mo
/usr/share/locale/he
/usr/share/locale/he/LC_MESSAGES
/usr/share/locale/he/LC_MESSAGES/udisks2.mo
/usr/share/locale/hi
/usr/share/locale/hi/LC_MESSAGES
/usr/share/locale/hi/LC_MESSAGES/udisks2.mo
/usr/share/locale/hr
/usr/share/locale/hr/LC_MESSAGES
/usr/share/locale/hr/LC_MESSAGES/udisks2.mo
/usr/share/locale/hu
/usr/share/locale/hu/LC_MESSAGES
/usr/share/locale/hu/LC_MESSAGES/udisks2.mo
/usr/share/locale/ia
/usr/share/locale/ia/LC_MESSAGES
/usr/share/locale/ia/LC_MESSAGES/udisks2.mo
/usr/share/locale/id
/usr/share/locale/id/LC_MESSAGES
/usr/share/locale/id/LC_MESSAGES/udisks2.mo
/usr/share/locale/it
/usr/share/locale/it/LC_MESSAGES
/usr/share/locale/it/LC_MESSAGES/udisks2.mo
/usr/share/locale/ja
/usr/share/locale/ja/LC_MESSAGES
/usr/share/locale/ja/LC_MESSAGES/udisks2.mo
/usr/share/locale/ka
/usr/share/locale/ka/LC_MESSAGES
/usr/share/locale/ka/LC_MESSAGES/udisks2.mo
/usr/share/locale/kk
/usr/share/locale/kk/LC_MESSAGES
/usr/share/locale/kk/LC_MESSAGES/udisks2.mo
/usr/share/locale/kn
/usr/share/locale/kn/LC_MESSAGES
/usr/share/locale/kn/LC_MESSAGES/udisks2.mo
/usr/share/locale/ko
/usr/share/locale/ko/LC_MESSAGES
/usr/share/locale/ko/LC_MESSAGES/udisks2.mo
/usr/share/locale/lt
/usr/share/locale/lt/LC_MESSAGES
/usr/share/locale/lt/LC_MESSAGES/udisks2.mo
/usr/share/locale/lv
/usr/share/locale/lv/LC_MESSAGES
/usr/share/locale/lv/LC_MESSAGES/udisks2.mo
/usr/share/locale/ml
/usr/share/locale/ml/LC_MESSAGES
/usr/share/locale/ml/LC_MESSAGES/udisks2.mo
/usr/share/locale/mr
/usr/share/locale/mr/LC_MESSAGES
/usr/share/locale/mr/LC_MESSAGES/udisks2.mo
/usr/share/locale/ms
/usr/share/locale/ms/LC_MESSAGES
/usr/share/locale/ms/LC_MESSAGES/udisks2.mo
/usr/share/locale/nb
/usr/share/locale/nb/LC_MESSAGES
/usr/share/locale/nb/LC_MESSAGES/udisks2.mo
/usr/share/locale/nl
/usr/share/locale/nl/LC_MESSAGES
/usr/share/locale/nl/LC_MESSAGES/udisks2.mo
/usr/share/locale/nn
/usr/share/locale/nn/LC_MESSAGES
/usr/share/locale/nn/LC_MESSAGES/udisks2.mo
/usr/share/locale/oc
/usr/share/locale/oc/LC_MESSAGES
/usr/share/locale/oc/LC_MESSAGES/udisks2.mo
/usr/share/locale/or
/usr/share/locale/or/LC_MESSAGES
/usr/share/locale/or/LC_MESSAGES/udisks2.mo
/usr/share/locale/pa
/usr/share/locale/pa/LC_MESSAGES
/usr/share/locale/pa/LC_MESSAGES/udisks2.mo
/usr/share/locale/pl
/usr/share/locale/pl/LC_MESSAGES
/usr/share/locale/pl/LC_MESSAGES/udisks2.mo
/usr/share/locale/pt
/usr/share/locale/pt/LC_MESSAGES
/usr/share/locale/pt/LC_MESSAGES/udisks2.mo
/usr/share/locale/pt_BR
/usr/share/locale/pt_BR/LC_MESSAGES
/usr/share/locale/pt_BR/LC_MESSAGES/udisks2.mo
/usr/share/locale/ro
/usr/share/locale/ro/LC_MESSAGES
/usr/share/locale/ro/LC_MESSAGES/udisks2.mo
/usr/share/locale/ru
/usr/share/locale/ru/LC_MESSAGES
/usr/share/locale/ru/LC_MESSAGES/udisks2.mo
/usr/share/locale/sk
/usr/share/locale/sk/LC_MESSAGES
/usr/share/locale/sk/LC_MESSAGES/udisks2.mo
/usr/share/locale/sl
/usr/share/locale/sl/LC_MESSAGES
/usr/share/locale/sl/LC_MESSAGES/udisks2.mo
/usr/share/locale/sq
/usr/share/locale/sq/LC_MESSAGES
/usr/share/locale/sq/LC_MESSAGES/udisks2.mo
/usr/share/locale/sr
/usr/share/locale/sr/LC_MESSAGES
/usr/share/locale/sr/LC_MESSAGES/udisks2.mo
/usr/share/locale/sr@latin
/usr/share/locale/sr@latin/LC_MESSAGES
/usr/share/locale/sr@latin/LC_MESSAGES/udisks2.mo
/usr/share/locale/sv
/usr/share/locale/sv/LC_MESSAGES
/usr/share/locale/sv/LC_MESSAGES/udisks2.mo
/usr/share/locale/ta
/usr/share/locale/ta/LC_MESSAGES
/usr/share/locale/ta/LC_MESSAGES/udisks2.mo
/usr/share/locale/te
/usr/share/locale/te/LC_MESSAGES
/usr/share/locale/te/LC_MESSAGES/udisks2.mo
/usr/share/locale/th
/usr/share/locale/th/LC_MESSAGES
/usr/share/locale/th/LC_MESSAGES/udisks2.mo
/usr/share/locale/tr
/usr/share/locale/tr/LC_MESSAGES
/usr/share/locale/tr/LC_MESSAGES/udisks2.mo
/usr/share/locale/uk
/usr/share/locale/uk/LC_MESSAGES
/usr/share/locale/uk/LC_MESSAGES/udisks2.mo
/usr/share/locale/vi
/usr/share/locale/vi/LC_MESSAGES
/usr/share/locale/vi/LC_MESSAGES/udisks2.mo
/usr/share/locale/wa
/usr/share/locale/wa/LC_MESSAGES
/usr/share/locale/wa/LC_MESSAGES/udisks2.mo
/usr/share/locale/zh_CN
/usr/share/locale/zh_CN/LC_MESSAGES
/usr/share/locale/zh_CN/LC_MESSAGES/udisks2.mo
/usr/share/locale/zh_HK
/usr/share/locale/zh_HK/LC_MESSAGES
/usr/share/locale/zh_HK/LC_MESSAGES/udisks2.mo
/usr/share/locale/zh_TW
/usr/share/locale/zh_TW/LC_MESSAGES
/usr/share/locale/zh_TW/LC_MESSAGES/udisks2.mo
/usr/share/man
/usr/share/man/man1
/usr/share/man/man1/udisksctl.1.gz
/usr/share/man/man5
/usr/share/man/man5/udisks2.conf.5.gz
/usr/share/man/man8
/usr/share/man/man8/udisks.8.gz
/usr/share/man/man8/udisksd.8.gz
/usr/share/man/man8/umount.udisks2.8.gz
/usr/share/polkit-1
/usr/share/polkit-1/actions
/usr/share/polkit-1/actions/org.freedesktop.UDisks2.policy
[свернуть]