Linux Mint Türkiye

Linux Mint Destek => Donanım => Diğer Donanımlar => Konuyu başlatan: usengenc - 29 Ocak 2016, 18:39:01

Başlık: [Çözüldü] Usb girişlerini iptal etme..
Gönderen: usengenc - 29 Ocak 2016, 18:39:01
Arkadaşlar merhaba;
Masaüstü pc'im var,linux-mint kulanmaktayım. Klavye-mouse girişi dışında ki diğer Usb girişlerini iptal edebiliyor muyuz ?
Ya da şöyle söyleyebilirim; 4 adet pc var ve iş yerinde kullanılmakta, içerisinde kopyalanmasını istemediğim dosyalar var. Bunu nasıl önleyebiliriz ?
Teşekkürler.
Başlık: Ynt: Usb girişlerini iptal etme..
Gönderen: Butterfly - 29 Ocak 2016, 20:35:26
Aşağıdaki komutla org.freedesktop.udisks2.policy dosyasını açınız.

Kod: [Seç]
sudo gedit /usr/share/polkit-1/actions/org.freedesktop.udisks2.policy
Aşağıdaki satırın alt kısımlarında bulunan

Kod: [Seç]
<action id="org.freedesktop.udisks2.filesystem-mount">
aşağıdaki satırı bulunuz ve

Kod: [Seç]
<allow_active>yes</allow_active>
aşağıdaki şekilde değiştirip dosyayı kaydetmeyi deneyiniz.

Kod: [Seç]
<allow_active>auth_admin_keep</allow_active>
Bu şekilde USB'den bağlanan depolama aygıtları için şifre istemesi gerekir.
Başlık: Ynt: Usb girişlerini iptal etme..
Gönderen: usengenc - 30 Ocak 2016, 12:29:17
dediğiniz şekilde yaptığımda şifre  istedi, fakat oto ekran koruyucu girdiğinde onu açmak için de aynı şifre kullanılıyo ve herkes bu şifreyi biliyor.
usb için farklı şifre koyabilir miyiz ?
Başlık: Ynt: Usb girişlerini iptal etme..
Gönderen: Butterfly - 30 Ocak 2016, 15:33:07
Bu durumda aşağıdaki komutlarla usb depolama aygıtlarını pasifleştirmek denenebilir.

Kod: [Seç]
echo "blacklist usb-storage" | sudo tee -a /etc/modprobe.d/blacklist.conf
sudo update-initramfs -u
Başlık: Ynt: Usb girişlerini iptal etme..
Gönderen: usengenc - 30 Ocak 2016, 17:36:30
Bu durumda aşağıdaki komutlarla usb depolama aygıtlarını pasifleştirmek denenebilir.

Kod: [Seç]
echo "blacklist usb-storage" | sudo tee -a /etc/modprobe.d/blacklist.conf
sudo update-initramfs -u

Hocam aktifleştirme komutlarını da yazarsan çok makbule geçer.
Teşekkürler.
Başlık: Ynt: Usb girişlerini iptal etme..
Gönderen: Danny - 30 Ocak 2016, 19:00:12
Kod: [Seç]
echo "blacklist usb-storage" | sudo tee -a /etc/modprobe.d/blacklist.conf
Kod: [Seç]
sudo rmmod usb-storage
Kod: [Seç]
sudo update-initramfs -u

olarak aktifleştirmeyi deneyebilirsiniz.


Düzenleme: değişken eklemesi
Başlık: Ynt: Usb girişlerini iptal etme..
Gönderen: usengenc - 01 Şubat 2016, 13:57:37
Bu durumda aşağıdaki komutlarla usb depolama aygıtlarını pasifleştirmek denenebilir.

Kod: [Seç]
echo "blacklist usb-storage" | sudo tee -a /etc/modprobe.d/blacklist.conf
sudo update-initramfs -u

Kod: [Seç]
libkmod: ERROR ../libkmod/libkmod-config.c:686 kmod_config_parse: /etc/modprobe.d/blacklist.conf line 56: ignoring bad line starting with 'sudo'
pasifleştirmek istediğimde bu hatayı alıyorum ve işlem gerçekleşmiyor.
Başlık: Ynt: Usb girişlerini iptal etme..
Gönderen: Butterfly - 01 Şubat 2016, 15:11:56
Çıktıya bakalım.

Kod: [Seç]
cat /etc/modprobe.d/blacklist.conf
Başlık: Ynt: Usb girişlerini iptal etme..
Gönderen: usengenc - 02 Şubat 2016, 11:42:15
Kod: [Seç]
~ $ cat /etc/modprobe.d/blacklist.conf
# This file lists those modules which we don't want to be loaded by
# alias expansion, usually so some other driver will be loaded for the
# device instead.

# evbug is a debug tool that should be loaded explicitly
blacklist evbug

# these drivers are very simple, the HID drivers are usually preferred
blacklist usbmouse
blacklist usbkbd

# replaced by e100
blacklist eepro100

# replaced by tulip
blacklist de4x5

# causes no end of confusion by creating unexpected network interfaces
blacklist eth1394

# snd_intel8x0m can interfere with snd_intel8x0, doesn't seem to support much
# hardware on its own (Ubuntu bug #2011, #6810)
blacklist snd_intel8x0m

# Conflicts with dvb driver (which is better for handling this device)
blacklist snd_aw2

# causes failure to suspend on HP compaq nc6000 (Ubuntu: #10306)
blacklist i2c_i801

# replaced by p54pci
blacklist prism54

# replaced by b43 and ssb.
blacklist bcm43xx

# most apps now use garmin usb driver directly (Ubuntu: #114565)
blacklist garmin_gps

# replaced by asus-laptop (Ubuntu: #184721)
blacklist asus_acpi

# low-quality, just noise when being used for sound playback, causes
# hangs at desktop session start (Ubuntu: #246969)
blacklist snd_pcsp

# ugly and loud noise, getting on everyone's nerves; this should be done by a
# nice pulseaudio bing (Ubuntu: #77010)
blacklist pcspkr

# EDAC driver for amd76x clashes with the agp driver preventing the aperture
# from being initialised (Ubuntu: #297750). Blacklist so that the driver
# continues to build and is installable for the few cases where its
# really needed.
blacklist amd76x_edac
blacklist usb-storage
Başlık: Ynt: Usb girişlerini iptal etme..
Gönderen: Butterfly - 02 Şubat 2016, 14:36:53
Dosyada bir sıkıntı görünmüyor. Şu ana usb depolama aygıtlarını taktığınızda görünüyor mu?
Başlık: Ynt: Usb girişlerini iptal etme..
Gönderen: usengenc - 06 Şubat 2016, 11:13:49
hocam teşekkürler, makinaları yeniden başlattığımızda sorun çözüldü.
Başlık: Ynt: Usb girişlerini iptal etme..
Gönderen: Danny - 06 Şubat 2016, 11:53:01
Sorun çözüldüyse madem, başlığı etiketler misiniz biz de konuyu kapatabilelim.

Çözülen başlıkların etiketlenmesi hakkında. (https://forum.linuxmint.net.tr/index.php?topic=2058.0)