nscd在一台机器上不见了。到处都安装了nscd,一切都恢复正常。
笑话来了。我用Debian10.1重新安装了机器,安装了NIS客户端,并将机器加入到域。与不同的用户登录,没有人可以安装USB存储!
然后与本地用户登录,一切都正常!
尝试添加polkit规则,如:
[Storage Permissions]
Identity=unix-user:USER
Action=org.freedesktop.udisks2.filesystem-mount;org.freedesktop.udisks2.filesystem-mount-system
ResultAny=yes
ResultInactive=yes
ResultActive=yes
没有解决这个问题
所以,它在一个新用户中运行的很好。然后我试着删除我的旧帐户,删除它的主文件夹,在NIS目录中"make all“并重新创建一个用户名与以前相同的用户.我也不能装USB!
在主文件夹中跟踪.x会话错误文件时,我有工作用户和不工作用户的确切相似行。
thunar-volman: Unsupported USB device type "usb".
thunar-volman: Unsupported USB device type "usb-storage".
thunar-volman: Unknown block device type "disk".
是否存在存储在NIS服务器或客户端中的缓存或类似的东西,从而导致这种混乱?
一点也不期待,只是在我的NIS设置中创建了一个新用户,一切都很适合他!我会修改个人资料看看里面出了什么问题
在机器上安装了gnome,同样的问题。
还试图通过startxfce4直接启动XFCE,而不是lightdm,而不是更好。
将一台工作机器和一台故障机器之间所有加载的模块进行比较,就没有问题了。
升级了一堆Debian机器,从拉伸到破坏。这些机器正在运行XFCE,并且是NIS域的一部分。在其中的几个方面,用户在XFCE升级后不能再安装USB存储,因为它在拉伸下工作很好。
显示在桌面上的USBdisk图标,但当双击它时,->未能挂载未授权执行操作的"keyName“。
==> syslog <==
Oct 17 07:34:11 machine kernel: [ 184.011692] usb 3-2: New USB device found, idVendor=0951, idProduct=1666, bcdDevice= 1.10
Oct 17 07:34:11 machine kernel: [ 184.011696] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Oct 17 07:34:11 machine kernel: [ 184.011698] usb 3-2: Product: DataTraveler 3.0
Oct 17 07:34:11 machine kernel: [ 184.011700] usb 3-2: Manufacturer: Kingston
Oct 17 07:34:11 machine kernel: [ 184.011701] usb 3-2: SerialNumber: 408D5C1653D4E2A1B98AA273
Oct 17 07:34:11 machine mtp-probe: checking bus 3, device 2: "/sys/devices/pci0000:00/0000:00:14.0/usb3/3-2"
Oct 17 07:34:11 machine mtp-probe: bus: 3, device: 2 was not an MTP device
Oct 17 07:34:11 machine kernel: [ 184.039916] usb-storage 3-2:1.0: USB Mass Storage device detected
Oct 17 07:34:11 machine kernel: [ 184.040232] scsi host10: usb-storage 3-2:1.0
Oct 17 07:34:11 machine kernel: [ 184.040336] usbcore: registered new interface driver usb-storage
Oct 17 07:34:11 machine kernel: [ 184.043119] usbcore: registered new interface driver uas
Oct 17 07:34:11 machine mtp-probe: checking bus 3, device 2: "/sys/devices/pci0000:00/0000:00:14.0/usb3/3-2"
Oct 17 07:34:11 machine mtp-probe: bus: 3, device: 2 was not an MTP device
Oct 17 07:34:12 machine kernel: [ 185.059788] scsi 10:0:0:0: Direct-Access Kingston DataTraveler 3.0 PMAP PQ: 0 ANSI: 6
Oct 17 07:34:12 machine kernel: [ 185.060205] sd 10:0:0:0: Attached scsi generic sg3 type 0
Oct 17 07:34:12 machine kernel: [ 185.060459] sd 10:0:0:0: [sdc] 60604416 512-byte logical blocks: (31.0 GB/28.9 GiB)
Oct 17 07:34:12 machine kernel: [ 185.060766] sd 10:0:0:0: [sdc] Write Protect is off
Oct 17 07:34:12 machine kernel: [ 185.060768] sd 10:0:0:0: [sdc] Mode Sense: 45 00 00 00
Oct 17 07:34:12 machine kernel: [ 185.061076] sd 10:0:0:0: [sdc] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
Oct 17 07:34:12 machine kernel: [ 185.082929] sdc: sdc1
Oct 17 07:34:12 machine kernel: [ 185.084849] sd 10:0:0:0: [sdc] Attached SCSI removable disk
在网上读了几篇关于这方面的老文章之后,我们使用"dbus-launch thunar“从终端启动了thunar,我们得到了这个错误。
thunar-volman: Unsupported USB device type "usb". thunar-volman:
Unsupported USB device type "usb-storage". thunar-volman: Unknown
block device type "disk".
否则,syslog/消息中没有任何内容。
发布于 2019-10-24 21:34:01
# mkdir -p /etc/polkit-1/rules.d
# cd /etc/polkit-1/rules.d
# nano 50-default.rules
[Storage Permissions]
Identity=unix-user:USER
Action=org.freedesktop.udisks2.filesystem-mount;org.freedesktop.udisks2.filesystem-mount-system
ResultAny=yes
ResultInactive=yes
ResultActive=yes
最后重新启动。对我起作用了。
https://unix.stackexchange.com/questions/547215
复制相似问题