我有一个用户有一个符号链接到计算机中的某个地方,如下所示:
# ls -ltr /home/guirec0
total 4
lrwxrwxrwx 1 root root 24 Jan 9 17:56 int -> /disk2/clients/optik/int
drwxr-xr-x 2 guirec0 guirec0 4096 Jan 9 18:13 blabla
Run Code Online (Sandbox Code Playgroud)
我使用 sftp 连接到这个用户。我有这个设置/etc/ssh/sshd_config
:
Subsystem sftp internal-sftp
Match Group sftpgroup
ChrootDirectory %h
ForceCommand internal-sftp
X11Forwarding no
AllowTcpForwarding no
Run Code Online (Sandbox Code Playgroud)
所以根被改变了,并且/disk2/clients/optik/int
forroot
和 for不一样了guirec0
。
有没有一种方法,以允许访问/disk2/clients/optik/int
的guirec0
?
chrooting 的目的是限制用户的访问。
我有两个扬声器。第一个连接到 PCI 卡,第二个通过蓝牙连接。声音在 PCI 卡上播放得更早一些,所以我想增加一些延迟。我下载了脉冲音频 GUI,我有这个:
如您所见,我在“音频互联网”(PCI 卡)上添加了 2 秒的偏移量。
我检查了命令pactl list cards
,我有这个用于内部卡:
Card #1
Name: alsa_card.pci-0000_00_1b.0
Driver: module-alsa-card.c
Owner Module: 8
Properties:
alsa.card = "0"
alsa.card_name = "HDA Intel PCH"
alsa.long_card_name = "HDA Intel PCH at 0xf7f10000 irq 27"
alsa.driver_name = "snd_hda_intel"
device.bus_path = "pci-0000:00:1b.0"
sysfs.path = "/devices/pci0000:00/0000:00:1b.0/sound/card0"
device.bus = "pci"
device.vendor.id = "8086"
device.vendor.name = "Intel Corporation"
device.product.id = "1e20"
device.product.name = "7 Series/C216 Chipset Family High Definition Audio Controller"
device.form_factor = "internal"
device.string = "0" …
Run Code Online (Sandbox Code Playgroud)