AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-402759

cicoria67's questions

Martin Hope
ancoling67
Asked: 2025-04-22 17:08:51 +0800 CST

Linux 没有视频就无法启动

  • 6

我有一台迷你电脑,Qotom Q1900G2-P,系统是AlmaLinux 9.5。Qotom
使用的是American Megatrends的BIOS,版本号是2015年1月6日。BIOS
已恢复出厂设置。

没有视频线,HDMI 或 VGA,就无法启动……dmesg、syslog 或消息里什么都没有!
好像即使能进入 grub 菜单,但显然没有连接视频线,直到启动时才看到。如果我稍后再连接视频线,在 minipc 开启的情况下,也没有视频信号。Debian
12.10 也一样。

在 Windows 上可以正常启动!!:(( 在 Windows 上无需视频线也可以启动!

我尝试插入/etc/default/grub一些选项:
GRUB_CMDLINE_LINUX_DEFAULT="quiet nomodeset console=tty1"
或
GRUB_CMDLINE_LINUX_DEFAULT="nomodeset text"

但什么也没有!:((

一些 BIOS 屏幕在这里https://imgur.com/a/TyDEDq5

有什么解决办法吗?提前谢谢

debian
  • 1 个回答
  • 62 Views
Martin Hope
ancoling67
Asked: 2025-03-20 22:09:12 +0800 CST

Elexlinco NC004 读卡器和 Yubikey 5C NFC 的 FIDO2 问题

  • 5

NFC 智能卡读卡器和 Yubikey 适用于 OTP 使用,例如 KeppassXC 的质询响应身份验证。FIDO2
存在问题,例如 Google 登录。我在 Windows 上试过了,一切正常 :(

附上以下信息和日志。

智能卡读卡器是一个Elexlinco NC004但系统将其视为GHI NC001。

[mynbk ~ ] > lsusb
[...]
Bus 003 Device 015: ID ae68:8001 GHI NC001
[...]

Pcsclite 版本:

[mynbk ~ ] > pacman -Ss | grep pcsclite
extra/pcsclite 2.3.1-1 [installato]
multilib/lib32-pcsclite 2.3.1-1 [installato]

/usr/sbin/pcscd --version输出

[mynbk ~ ] > /usr/sbin/pcscd --version
pcsc-lite version 2.3.1
Copyright (C) 1999-2002 by David Corcoran <[email protected]>.
Copyright (C) 2001-2024 by Ludovic Rousseau <[email protected]>.
Copyright (C) 2003-2004 by Damien Sauveron <[email protected]>.
Report bugs to <[email protected]>.
Enabled features: USB serial filter_names libudev polkit systemd Linux x86_64 ipcdir=/run/pcscd usbdropdir=/usr/lib/pcsc/drivers serialconfdir=/etc/reader.conf.d
MAX_READERNAME: 128, PCSCLITE_MAX_READERS_CONTEXTS: 16

操作系统或 GNU/Linux 发行版名称和版本:

[mynbk ~ ] > cat /etc/os-release 
NAME="Manjaro Linux"
PRETTY_NAME="Manjaro Linux"
ID=manjaro
ID_LIKE=arch

命令输出sudo LIBCCID_ifdLogLevel=0x000F pcscd --foreground --debug --apdu --color | tee -i log.txt
https://pastebin.com/nGRX2pRd

yubikey
  • 1 个回答
  • 25 Views
Martin Hope
ancoling67
Asked: 2025-03-10 03:56:00 +0800 CST

启动脚本时有多个选项

  • 5

运行脚本时有没有办法传递多个选项?

我的脚本有这种情况:

case "$1" in
 b)
 backup_start $1
 ;;

 h)
 _usage
 ;;

 *)
 echo 'Invalid option, -h for help'
 ;;
esac

我使用以下命令运行脚本:

myscript -b backupname

但有时我想使用带有另一个参数的选项来运行脚本...然后我将在脚本中使用该参数:

myscript -b backupname -t mynewarg
bash
  • 2 个回答
  • 78 Views
Martin Hope
ancoling67
Asked: 2025-03-04 16:25:34 +0800 CST

内核 6.13.* 和待机问题

  • 5

使用任何版本的内核 6.13.* 后,我都会遇到问题,例如从晚上 9 点到第二天早上 6 点。

通过 USB-C 基座连接的所有设备(HDMI 显示器除外)和蓝牙鼠标均无法工作,即使我断开并重新连接基座也是如此。我真的必须重新启动笔记本电脑。有人遇到同样的问题吗?

内核 6.13.1,2,3,4,5 存在问题

内核 6.12.9 正常

Dmesg 日志:

[10643.878073] usb 3-4: new full-speed USB device number 9 using xhci_hcd
[10644.011719] usb 3-4: New USB device found, idVendor=046d, idProduct=c534, bcdDevice=29.01
[10644.011730] usb 3-4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[10644.011733] usb 3-4: Product: USB Receiver
[10644.011736] usb 3-4: Manufacturer: Logitech
[10644.016704] input: Logitech USB Receiver as /devices/pci0000:00/0000:00:14.0/usb3/3-4/3-4:1.0/0003:046D:C534.0006/input/input34
[10644.161858] hid-generic 0003:046D:C534.0006: input,hidraw5: USB HID v1.11 Keyboard [Logitech USB Receiver] on usb-0000:00:14.0-4/input0
[10644.165777] input: Logitech USB Receiver Mouse as /devices/pci0000:00/0000:00:14.0/usb3/3-4/3-4:1.1/0003:046D:C534.0007/input/input35
[10644.166147] input: Logitech USB Receiver Consumer Control as /devices/pci0000:00/0000:00:14.0/usb3/3-4/3-4:1.1/0003:046D:C534.0007/input/input36
[10644.221883] input: Logitech USB Receiver System Control as /devices/pci0000:00/0000:00:14.0/usb3/3-4/3-4:1.1/0003:046D:C534.0007/input/input37
[10644.222246] hid-generic 0003:046D:C534.0007: input,hiddev98,hidraw6: USB HID v1.11 Mouse [Logitech USB Receiver] on usb-0000:00:14.0-4/input1
[10644.478885] logitech-djreceiver 0003:046D:C534.0006: hidraw5: USB HID v1.11 Keyboard [Logitech USB Receiver] on usb-0000:00:14.0-4/input0
[10644.709084] logitech-djreceiver 0003:046D:C534.0007: hiddev98,hidraw6: USB HID v1.11 Mouse [Logitech USB Receiver] on usb-0000:00:14.0-4/input1
[10644.763507] logitech-djreceiver 0003:046D:C534.0007: device of type eQUAD nano Lite (0x0a) connected on slot 1
[10644.765501] logitech-djreceiver 0003:046D:C534.0007: device of type eQUAD nano Lite (0x0a) connected on slot 2
[10644.766851] input: Logitech Wireless Keyboard PID:4023 Keyboard as /devices/pci0000:00/0000:00:14.0/usb3/3-4/3-4:1.1/0003:046D:C534.0007/0003:046D:4023.0008/input/input40
[10644.858393] hid-generic 0003:046D:4023.0008: input,hidraw7: USB HID v1.11 Keyboard [Logitech Wireless Keyboard PID:4023] on usb-0000:00:14.0-4/input1:1
[10644.861684] input: Logitech Wireless Mouse as /devices/pci0000:00/0000:00:14.0/usb3/3-4/3-4:1.1/0003:046D:C534.0007/0003:046D:4091.0009/input/input45
[10645.058798] logitech-hidpp-device 0003:046D:4091.0009: input,hidraw7: USB HID v1.11 Mouse [Logitech Wireless Mouse] on usb-0000:00:14.0-4/input1:2
[10645.064094] input: Logitech Wireless Keyboard PID:4023 as /devices/pci0000:00/0000:00:14.0/usb3/3-4/3-4:1.1/0003:046D:C534.0007/0003:046D:4023.0008/input/input46
[10645.075605] logitech-hidpp-device 0003:046D:4091.0009: HID++ 4.5 device connected.
[10645.168557] logitech-hidpp-device 0003:046D:4023.0008: input,hidraw8: USB HID v1.11 Keyboard [Logitech Wireless Keyboard PID:4023] on usb-0000:00:14.0-4/input1:1
[10681.685625] usb 3-4: USB disconnect, device number 9
[10857.112086] input: Nothing Ear (a) (AVRCP) as /devices/virtual/input/input47
[17043.126127] perf: interrupt took too long (2511 > 2500), lowering kernel.perf_event_max_sample_rate to 79500
[18283.310904] input: Nothing Ear (a) (AVRCP) as /devices/virtual/input/input48
[21588.198467] perf: interrupt took too long (3162 > 3138), lowering kernel.perf_event_max_sample_rate to 63000
[26636.117918] input: Nothing Ear (a) (AVRCP) as /devices/virtual/input/input49
[29883.373488] input: Nothing Ear (a) (AVRCP) as /devices/virtual/input/input50
[30007.818580] INPUT DROP: IN=enp0s13f0u1u2u1 OUT= MAC=04:ba:d6:96:73:11:00:50:56:9f:3f:96:08:00 SRC=172.16.1.16 DST=172.16.2.124 LEN=60 TOS=0x00 PREC=0x00 TTL=255 ID=56820 PROTO=ICMP TYPE=8 CODE=0 ID=3 SEQ=26613 
[30089.110360] perf: interrupt took too long (4043 > 3952), lowering kernel.perf_event_max_sample_rate to 49200
[31023.115641] input: Nothing Ear (a) (AVRCP) as /devices/virtual/input/input51
[35275.141809] input: MX Anywhere 2 Keyboard as /devices/virtual/misc/uhid/0005:046D:B01F.000A/input/input52
[35275.141995] input: MX Anywhere 2 Mouse as /devices/virtual/misc/uhid/0005:046D:B01F.000A/input/input53
[35275.142178] hid-generic 0005:046D:B01F.000A: input,hidraw4: BLUETOOTH HID v0.03 Keyboard [MX Anywhere 2] on 20:2b:20:a1:e9:9e
[35410.935450] usb 3-5: USB disconnect, device number 4
[35410.935459] usb 3-5.1: USB disconnect, device number 5
[35410.968770] usb 2-1: USB disconnect, device number 2
[35410.968779] usb 2-1.2: USB disconnect, device number 3
[35410.968783] r8152-cfgselector 2-1.2.1: USB disconnect, device number 5
[35411.030133] usb 2-1.4: USB disconnect, device number 4
[35411.413959] usb 3-5.2: USB disconnect, device number 6
[35411.413965] usb 3-5.2.2: USB disconnect, device number 8
[35411.415051] usb 3-5.3: USB disconnect, device number 7
[36322.178167] PM: suspend entry (s2idle)
[36322.215578] Filesystems sync: 0.037 seconds
[36322.344183] Freezing user space processes
[36322.345937] Freezing user space processes completed (elapsed 0.001 seconds)
[36322.345944] OOM killer disabled.
[36322.345945] Freezing remaining freezable tasks
[36322.346681] Freezing remaining freezable tasks completed (elapsed 0.000 seconds)
[36322.346686] printk: Suspending console(s) (use no_console_suspend to debug)
[36322.429982] e1000e: EEE TX LPI TIMER: 00000011
[36322.891685] ACPI: EC: interrupt blocked
[38234.289838] ACPI: EC: interrupt unblocked
[38234.543585] usb 3-10: reset full-speed USB device number 3 using xhci_hcd
[38235.090341] mei_hdcp 0000:00:16.0-b638ab7e-94e2-4ea2-a552-d1c54b627f04: bound 0000:00:02.0 (ops i915_hdcp_ops [i915])
[38235.091279] OOM killer enabled.
[38235.091284] Restarting tasks ... 
[38235.091550] mei_pxp 0000:00:16.0-fbf6fcf1-96cf-4e2e-a6a6-1bab8cbe36b1: bound 0000:00:02.0 (ops i915_pxp_tee_component_ops [i915])
[38235.093554] done.
[38235.093596] random: crng reseeded on system resumption
[38235.095396] Bluetooth: hci0: RTL: examining hci_ver=0b hci_rev=000a lmp_ver=0b lmp_subver=8852
[38235.096370] Bluetooth: hci0: RTL: rom_version status=0 version=1
[38235.096384] Bluetooth: hci0: RTL: loading rtl_bt/rtl8852au_fw.bin
[38235.096924] Bluetooth: hci0: RTL: loading rtl_bt/rtl8852au_config.bin
[38235.097035] Bluetooth: hci0: RTL: cfg_sz 6, total sz 64499
[38235.105678] PM: suspend exit
[38235.226009] e1000e 0000:00:1f.6 enp0s31f6: NIC Link is Down
[38235.395553] Bluetooth: hci0: RTL: fw version 0xd9d617da
[38235.479408] Bluetooth: hci0: AOSP extensions version v1.00
[38235.479420] Bluetooth: hci0: AOSP quality report is supported
[38235.479607] Bluetooth: MGMT ver 1.23
[38238.273461] usb 3-5: new full-speed USB device number 10 using xhci_hcd
[38238.393204] usb 3-5: device descriptor read/64, error -71
[38238.619873] usb 3-5: device descriptor read/64, error -71
[38238.849837] usb 3-5: new full-speed USB device number 11 using xhci_hcd
[38238.966573] usb 3-5: device descriptor read/64, error -71
[38239.189879] usb 3-5: device descriptor read/64, error -71
[38239.293270] usb usb3-port5: attempt power cycle
[38239.679842] usb 3-5: new full-speed USB device number 12 using xhci_hcd
[38239.679991] usb 3-5: Device not responding to setup address.
[38239.886666] usb 3-5: Device not responding to setup address.
[38240.089839] usb 3-5: device not accepting address 12, error -71
[38240.089927] usb 3-5: WARN: invalid context state for evaluate context command.
[38240.206515] usb 3-5: new full-speed USB device number 13 using xhci_hcd
[38240.206706] usb 3-5: Device not responding to setup address.
[38240.225794] hp_wmi: Unknown event_id - 131073 - 0x0
[38240.246340] Registered IR keymap rc-cec
[38240.246879] rc rc0: DP-1 as /devices/pci0000:00/0000:00:02.0/rc/rc0
[38240.247398] input: DP-1 as /devices/pci0000:00/0000:00:02.0/rc/rc0/input55
[38240.412046] usb 3-5: Device not responding to setup address.
[38240.613457] usb 3-5: device not accepting address 13, error -71
[38240.613635] usb 3-5: WARN: invalid context state for evaluate context command.
[38240.613695] usb usb3-port5: unable to enumerate USB device
[38244.139849] xhci_hcd 0000:00:0d.0: Timeout while waiting for setup device command
[38244.432592] usb 2-1: new SuperSpeed USB device number 6 using xhci_hcd
[38244.750203] usb 2-1: New USB device found, idVendor=2109, idProduct=0817, bcdDevice= 3.74
[38244.750211] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[38244.750212] usb 2-1: Product: USB3.0 Hub             
[38244.750213] usb 2-1: Manufacturer: VIA Labs, Inc.         
[38244.751295] hub 2-1:1.0: USB hub found
[38244.751512] hub 2-1:1.0: 4 ports detected
[38289.059732] usb 3-5: new high-speed USB device number 14 using xhci_hcd
[38289.179762] usb 3-5: device descriptor read/64, error -71
[38289.418594] usb 3-5: New USB device found, idVendor=2109, idProduct=2817, bcdDevice= 3.74
[38289.418607] usb 3-5: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[38289.418608] usb 3-5: Product: USB2.0 Hub             
[38289.418609] usb 3-5: Manufacturer: VIA Labs, Inc.         
[38289.419832] hub 3-5:1.0: USB hub found
[38289.420141] hub 3-5:1.0: 5 ports detected
[38290.759722] usb 3-5.2: new full-speed USB device number 15 using xhci_hcd
[38290.891370] usb 3-5.2: New USB device found, idVendor=320f, idProduct=5044, bcdDevice= 0.45
[38290.891374] usb 3-5.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[38290.891375] usb 3-5.2: Product: GMMK PRO
[38290.891376] usb 3-5.2: Manufacturer: USB HID
[38290.899558] input: USB HID GMMK PRO as /devices/pci0000:00/0000:00:14.0/usb3/3-5/3-5.2/3-5.2:1.0/0003:320F:5044.000B/input/input56
[38291.019872] hid-generic 0003:320F:5044.000B: input,hidraw1: USB HID v1.11 Keyboard [USB HID GMMK PRO] on usb-0000:00:14.0-5.2/input0
[38291.020990] input: USB HID GMMK PRO Mouse as /devices/pci0000:00/0000:00:14.0/usb3/3-5/3-5.2/3-5.2:1.1/0003:320F:5044.000C/input/input58
[38291.021086] input: USB HID GMMK PRO Consumer Control as /devices/pci0000:00/0000:00:14.0/usb3/3-5/3-5.2/3-5.2:1.1/0003:320F:5044.000C/input/input59
[38291.073232] input: USB HID GMMK PRO Keyboard as /devices/pci0000:00/0000:00:14.0/usb3/3-5/3-5.2/3-5.2:1.1/0003:320F:5044.000C/input/input61
[38291.073408] hid-generic 0003:320F:5044.000C: input,hiddev96,hidraw2: USB HID v1.11 Mouse [USB HID GMMK PRO] on usb-0000:00:14.0-5.2/input1
[38291.073881] hid-generic 0003:320F:5044.000D: hiddev97,hidraw3: USB HID v1.11 Device [USB HID GMMK PRO] on usb-0000:00:14.0-5.2/input2
[38291.203098] usb 3-5.3: new high-speed USB device number 16 using xhci_hcd
[38291.333336] usb 3-5.3: New USB device found, idVendor=1a40, idProduct=0101, bcdDevice= 1.11
[38291.333341] usb 3-5.3: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[38291.333342] usb 3-5.3: Product: USB 2.0 Hub
[38291.334271] hub 3-5.3:1.0: USB hub found
[38291.334313] hub 3-5.3:1.0: 4 ports detected
[38291.399719] usb 3-5.5: new high-speed USB device number 17 using xhci_hcd
[38291.484432] usb 3-5.5: New USB device found, idVendor=2109, idProduct=8888, bcdDevice= 0.01
[38291.484438] usb 3-5.5: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[38291.484440] usb 3-5.5: Product: USB Billboard Device   
[38291.484442] usb 3-5.5: Manufacturer: VIA Labs, Inc.         
[38291.484443] usb 3-5.5: SerialNumber: 0000000000000001
[38291.823086] usb 2-1.3: new SuperSpeed USB device number 7 using xhci_hcd
[38291.836978] usb 2-1.3: New USB device found, idVendor=0bda, idProduct=8153, bcdDevice=31.00
[38291.836981] usb 2-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=6
[38291.836982] usb 2-1.3: Product: USB 10/100/1000 LAN
[38291.836983] usb 2-1.3: Manufacturer: Realtek
[38291.836984] usb 2-1.3: SerialNumber: 001000001
[38291.906604] r8152-cfgselector 2-1.3: reset SuperSpeed USB device number 7 using xhci_hcd
[38291.956741] r8152 2-1.3:1.0 eth0: v1.12.13
[38292.335046] r8152 2-1.3:1.0 enp0s13f0u1u3: renamed from eth0
[38295.385589] r8152 2-1.3:1.0 enp0s13f0u1u3: carrier on
[38342.321212] input: MX Anywhere 2 Keyboard as /devices/virtual/misc/uhid/0005:046D:B01F.000E/input/input62
[38342.321608] input: MX Anywhere 2 Mouse as /devices/virtual/misc/uhid/0005:046D:B01F.000E/input/input63
[38342.322083] hid-generic 0005:046D:B01F.000E: input,hidraw4: BLUETOOTH HID v0.03 Keyboard [MX Anywhere 2] on 20:2b:20:a1:e9:9e
[51204.954310] input: MX Anywhere 2 Keyboard as /devices/virtual/misc/uhid/0005:046D:B01F.000F/input/input65
[51204.954541] input: MX Anywhere 2 Mouse as /devices/virtual/misc/uhid/0005:046D:B01F.000F/input/input66
[51204.954699] hid-generic 0005:046D:B01F.000F: input,hidraw4: BLUETOOTH HID v0.03 Keyboard [MX Anywhere 2] on 20:2b:20:a1:e9:9e
[51281.794692] netfs: FS-Cache loaded
[51281.821502] RPC: Registered named UNIX socket transport module.
[51281.821504] RPC: Registered udp transport module.
[51281.821505] RPC: Registered tcp transport module.
[51281.821505] RPC: Registered tcp-with-tls transport module.
[51281.821505] RPC: Registered tcp NFSv4.1 backchannel transport module.
[51281.859835] Key type dns_resolver registered
[51281.931438] NFS: Registering the id_resolver key type
[51281.931448] Key type id_resolver registered
[51281.931449] Key type id_legacy registered
[51282.382707] Key type cifs.spnego registered
[51282.382727] Key type cifs.idmap registered
[51282.383303] CIFS: enabling forceuid mount option implicitly because uid= option is specified
[51282.383308] CIFS: Attempting to mount //samba.gmmg.lan/public
[70913.141668] xhci_hcd 0000:00:14.0: xHCI host not responding to stop endpoint command
[70913.141702] xhci_hcd 0000:00:14.0: xHCI host controller not responding, assume dead
[70913.141731] xhci_hcd 0000:00:14.0: HC died; cleaning up
[70913.141765] usb 3-2: USB disconnect, device number 2
[70913.141883] xhci_hcd 0000:00:14.0: Timeout while waiting for stop endpoint command
[70913.143632] usb 3-5: USB disconnect, device number 14
[70913.143642] usb 3-5.2: USB disconnect, device number 15
[70913.530229] usb 3-5.3: USB disconnect, device number 16
[70913.530703] usb 3-5.5: USB disconnect, device number 17
[70913.531509] usb 3-10: USB disconnect, device number 3

在此处输入图片描述

kernel
  • 1 个回答
  • 45 Views
Martin Hope
ancoling67
Asked: 2025-02-24 00:14:28 +0800 CST

使用 acls 传输文件时出现 Rsync 错误

  • 5

我有一台 Debian 服务器,它在 nfs 共享 (Truenas) 中 rsync 文件。Nfs
共享使用 systemd 挂载:

192.168.88.162:/mnt/pool3/nfsdataset  /mnt/systemd/nfs/nfsdataset   nfs nofail,x-systemd.automount 0 0

rsync命令为:rsync -a -A -P testfile /mnt/systemd/nfs/nfsdataset
当rsync使用acl传输文件时,返回此错误:

sending incremental file list
testfile
              0 100%    0,00kB/s    0:00:00 (xfr#1, to-chk=0/1)
rsync: [receiver] set_acl: sys_acl_set_file(.testfile.FS8M3I, ACL_TYPE_ACCESS): Operation not supported (95)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1338) [sender=3.2.7]

Truenas 数据集中启用了 Nfs。
可以在 nfs 共享中使用 acl 传输文件吗?

rsync
  • 1 个回答
  • 49 Views
Martin Hope
ancoling67
Asked: 2024-12-29 13:06:27 +0800 CST

仅包含带有 Timeshift 备份的子目录

  • 5

使用 Timeshift,有没有办法只包含子目录?
示例:
排除/var但包含/var/lib/libvirt/images

我尝试了一些组合,但不起作用!
有一个例子:
一个例子

backup
  • 1 个回答
  • 23 Views
Martin Hope
ancoling67
Asked: 2024-12-12 23:57:07 +0800 CST

Alpine Kea dhcp 服务器拒绝未知客户端

  • 5

我检查了整个 conf 文件,但没有找到与 Debian isc-dhcp-server 的“deny unknown-clients”等效的选项。可能吗?

dhcp
  • 1 个回答
  • 29 Views
Martin Hope
cicoria67
Asked: 2024-05-26 13:52:29 +0800 CST

消除输入错误密码后的延迟

  • 6

密码输入错误时的3秒延迟可以取消吗?

示例如下:

su -

命令?

我尝试配置pam_unix和su模块,但它不起作用。

我的/etc/pam.d/system-auth文件:

#%PAM-1.0

#auth       required                    pam_faillock.so      preauth
# Optionally use requisite above if you do not want to prompt for the password on locked accounts.

-auth      [success=2 default=ignore]  pam_systemd_home.so
auth       [success=1 default=bad]     pam_unix.so          try_first_pass nullok nodelay
#auth       [default=die]               pam_faillock.so      authfail
auth       optional                    pam_permit.so
auth       required                    pam_env.so
#auth       required                    pam_faillock.so      authsucc
# If you drop the above call to pam_faillock.so the lock will be done also on non-consecutive authentication failures.

-account   [success=1 default=ignore]  pam_systemd_home.so
account    required                    pam_unix.so
account    optional                    pam_permit.so
account    required                    pam_time.so

-password  [success=1 default=ignore]  pam_systemd_home.so
password   required                    pam_unix.so          try_first_pass nullok shadow
password   optional                    pam_permit.so

-session   optional                    pam_systemd_home.so
session    required                    pam_limits.so
session    required                    pam_unix.so
session    optional                    pam_permit.so

我的/etc/pam.d/su文件:

#%PAM-1.0
auth            sufficient      pam_rootok.so
#Uncomment the following line to implicitly trust users in the "wheel" group.
#auth           sufficient      pam_wheel.so trust use_uid
#Uncomment the following line to require a user to be in the "wheel" group.
#auth           required        pam_wheel.so use_uid
auth            required        pam_unix.so nodelay
account         required        pam_unix.so
session         required        pam_unix.so
password        include         system-auth

当我输入错误的通行证时,会有 2.3 秒的延迟:

[myuser@myhost ~]$ time su -
Password: 
su: Authentication failed

real    0m3,265s
user    0m0,008s
sys     0m0,008s

Bug 或者错误的 pam 配置?

谢谢大家

我的 Manjaro 信息:

Operating System: Manjaro Linux 
KDE Plasma Version: 6.0.4
KDE Frameworks Version: 6.1.0
Qt Version: 6.7.0
Kernel Version: 6.9.0-MANJARO (64-bit)
Graphics Platform: X11
manjaro
  • 1 个回答
  • 54 Views
Martin Hope
cicoria67
Asked: 2024-05-17 01:11:19 +0800 CST

Arch,作为另一个软件包的依赖项被安装

  • 5

我有electron25包...我想知道哪个包需要它...

pacman -Qi electron25

会返回:

[
原因:作为另一个包的依赖项安装
[

我怎样才能找到需要electron25的包呢?

提前感谢

arch-linux
  • 1 个回答
  • 29 Views
Martin Hope
cicoria67
Asked: 2024-04-23 03:16:25 +0800 CST

Dnsmasq 和 dhcp-ignore 选项

  • 4

可以为特定的标签/子网设置

dhcp-ignore=#known

吗?

我有两个子网和两个DHCP范围...局域网(lan)和隔离区(dmz)。

对于隔离区,使用正常的DHCP。

对于局域网,DHCP只对/etc/ethers中的MAC地址生效。

提前感谢

dhcp
  • 1 个回答
  • 27 Views
Martin Hope
cicoria67
Asked: 2024-04-03 16:12:49 +0800 CST

Amavis隔离邮件问题消失

  • 5

我有一个带有Amavis(版本2.13.1)的Postfix服务器。 当我收到垃圾邮件时...Amavis正确地阻止了它,但是...邮件似乎被投递了,但是...被丢弃了?!

这是一条消息的日志:

4月2日 19:28:17 dfs01 amavis[2256237]: (2256237-12) 阻止了垃圾邮件 {DiscardedOutbound,Quarantined}, MYNETS 本地 [127.0.0.1]:54550 [95.110.216.5] <[邮箱]> -> <manuel@localhost>, 队列ID: ADA701200A2, 消息ID: <opec21023.2024
[邮箱]>, 邮件ID: 86Ik0z883qUa, 命中数: 7.381, 大小: 25286, 4421 毫秒
4月2日 19:28:17 dfs01 postfix/smtp[2259343]: ADA701200A2: to=<manuel@localhost>, 中继=127.0.0.1[127.0.0.1]:10024, 延迟=4.5, 延迟=0.05/0/0/4.4, dsn=2.7.0, 状态=已发送 (250 2.7.0 Ok, discarded, id=2256237-12 - spam)
4月2日 19:28:17 dfs01 postfix/qmgr[971]: ADA701200A2: 已移除

第一个问题:这些消息丢失了吗?!:((

第二个问题:可以设置Amavis直接将垃圾邮件发送到用户的垃圾邮件文件夹吗?!

提前感谢所有人 :)

postfix
  • 1 个回答
  • 16 Views
Martin Hope
cicoria67
Asked: 2024-02-16 20:27:10 +0800 CST

23版本中奇观缺失的功能

  • 5

我有奇观 23.08.4

在 22 版本中,我记得可以选择透明颜色并突出显示矩形区域。在23中我在填充选项中找不到透明颜色..(附加屏幕)没关系....我做错了?!

提前致谢 在此输入图像描述

linux
  • 1 个回答
  • 14 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    模块 i915 可能缺少固件 /lib/firmware/i915/*

    • 3 个回答
  • Marko Smith

    无法获取 jessie backports 存储库

    • 4 个回答
  • Marko Smith

    如何将 GPG 私钥和公钥导出到文件

    • 4 个回答
  • Marko Smith

    我们如何运行存储在变量中的命令?

    • 5 个回答
  • Marko Smith

    如何配置 systemd-resolved 和 systemd-networkd 以使用本地 DNS 服务器来解析本地域和远程 DNS 服务器来解析远程域?

    • 3 个回答
  • Marko Smith

    dist-upgrade 后 Kali Linux 中的 apt-get update 错误 [重复]

    • 2 个回答
  • Marko Smith

    如何从 systemctl 服务日志中查看最新的 x 行

    • 5 个回答
  • Marko Smith

    Nano - 跳转到文件末尾

    • 8 个回答
  • Marko Smith

    grub 错误:你需要先加载内核

    • 4 个回答
  • Marko Smith

    如何下载软件包而不是使用 apt-get 命令安装它?

    • 7 个回答
  • Martin Hope
    user12345 无法获取 jessie backports 存储库 2019-03-27 04:39:28 +0800 CST
  • Martin Hope
    Carl 为什么大多数 systemd 示例都包含 WantedBy=multi-user.target? 2019-03-15 11:49:25 +0800 CST
  • Martin Hope
    rocky 如何将 GPG 私钥和公钥导出到文件 2018-11-16 05:36:15 +0800 CST
  • Martin Hope
    Evan Carroll systemctl 状态显示:“状态:降级” 2018-06-03 18:48:17 +0800 CST
  • Martin Hope
    Tim 我们如何运行存储在变量中的命令? 2018-05-21 04:46:29 +0800 CST
  • Martin Hope
    Ankur S 为什么 /dev/null 是一个文件?为什么它的功能不作为一个简单的程序来实现? 2018-04-17 07:28:04 +0800 CST
  • Martin Hope
    user3191334 如何从 systemctl 服务日志中查看最新的 x 行 2018-02-07 00:14:16 +0800 CST
  • Martin Hope
    Marko Pacak Nano - 跳转到文件末尾 2018-02-01 01:53:03 +0800 CST
  • Martin Hope
    Kidburla 为什么真假这么大? 2018-01-26 12:14:47 +0800 CST
  • Martin Hope
    Christos Baziotis 在一个巨大的(70GB)、一行、文本文件中替换字符串 2017-12-30 06:58:33 +0800 CST

热门标签

linux bash debian shell-script text-processing ubuntu centos shell awk ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve