From: Alexey Petrakov <lex@asd.iao.ru> To: ALT Linux Community general discussions <community@lists.altlinux.org> Subject: [Comm] Отключение USB-накопителей Date: Thu, 3 Mar 2011 11:57:57 +0600 Message-ID: <201103031157.57351.lex@asd.iao.ru> (raw) Здравствуйте. Возникла такая задача: отключить на определённых машинах возможность пользоваться флешками и прочими USB-накопителями. Ломаю голову как это сделать. Первой идеей было написать правило для udev, которые выставит на создаваемое устройство права 0000. Написал, выставило. Однако, монтироваться это флешке ничуть не мешает. Думаю дальше. Сделал правило, которое для usb-storage устройств делает OPTIONS+="ignore_device". Вроде нужного эффекта добился, однако рытьё в интернете показало, что в ближайшей будущей версии udev опции ignore_device из каких-то непонятных соображений больше не будет. Таким образом, вроде простая и распространённая вещь породила неожиданно много геморроя. Научите пожалуйста, кто знает, как правильно реализовать эту задачу. И очень бы хотелось понять почему hal (ведь это он монтирует диски по заданию от KDE?) полностью игнорирует права доступа к устройству, которое он монтирует.
next reply other threads:[~2011-03-03 5:57 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2011-03-03 5:57 Alexey Petrakov [this message] 2011-03-03 9:43 ` Dmitry Chistikov 2011-03-03 10:20 ` Alexey Petrakov 2011-03-03 12:34 ` Sergey Vlasov 2011-03-04 3:30 ` Alexey Petrakov 2011-03-04 15:10 ` Sergey Vlasov 2011-03-08 10:24 ` Alexey Petrakov
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=201103031157.57351.lex@asd.iao.ru \ --to=lex@asd.iao.ru \ --cc=community@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 Community general discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/community/0 community/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 community community/ http://lore.altlinux.org/community \ mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com public-inbox-index community Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.community AGPL code for this site: git clone https://public-inbox.org/public-inbox.git