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
    • 最新
    • 标签
主页 / server / 问题

问题[cifs](server)

Martin Hope
Volker Raschek
Asked: 2022-01-13 01:50:27 +0800 CST

RockyLinux:无法加载 cifs 模块

  • 1

我已经安装了 RockyLinux 8.5 并试图通过 cifs 挂载一个目录。我收到以下错误消息:

# mount -t cifs -o user=<remarked>,domain=<remarked>,password=<remarked> //<remarked>/backups /mnt/backups
mount error: cifs filesystem not supported by the system 
mount error(19): No such device 
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)

RPM 软件包cifs-utils和samba-utils都已安装,但似乎内核无法找到该cifs模块,因为无法加载它:

# find / -name "cifs"
/usr/lib/modules/4.18.0-348.el8.0.2.x86_64/kernel/fs/cifs
# lsmod | grep cifs
# modprobe cifs
modprobe: FATAL: Module cifs not found in directory /lib/modules/4.18.0-348.el8.0.2.x86_64

有谁知道为什么 RockyLinux 无法加载cifs模块?这可能是安装不工作的问题。

这里还有我的dmesg 日志。我找不到任何关于 cifs 的信息。

cifs kernel-modules rocky-linux
  • 2 个回答
  • 601 Views
Martin Hope
alex3025
Asked: 2022-01-07 04:56:48 +0800 CST

Rsync 总是在同一点失败

  • 0

我为我的 Proxmox 主机制作了一个脚本,以将其每日备份复制到另一台机器(运行 Windows Server 2019)。

该脚本挂载 CIFS 共享并运行以下 rsync 命令:

rsync -aqzP --delete --delete-excluded /mnt/raid/ /mnt/backups --exclude "*.log"

它运行了大约 6 分钟,然后当它尝试复制vzdump-qemu-100-2021_05_16-00_00_03.vma.zst文件时,它会抛出一个错误:

rsync: [receiver] close failed on "/mnt/backups/backups/dump/.vzdump-qemu-100-2021_05_16-00_00_03.vma.zst.nrDEvQ": Broken pipe (32)
rsync error: error in file IO (code 11) at receiver.c(871) [receiver=3.2.3]
rsync: [sender] write error: Broken pipe (32)

可能是什么问题呢?

在 Windows 机器上,有复制所需的所有空间。

ubuntu rsync cifs windows-server-2019
  • 2 个回答
  • 265 Views
Martin Hope
Prateek Verma
Asked: 2021-11-15 01:54:21 +0800 CST

在 ntfs 驱动器的 fstab 条目中提供 GID 时是否需要 UID?

  • 1

我在 Raspberry Pi 4 上安装了 Ubuntu Server 20.04。我正在尝试安装一个硬盘驱动器,该硬盘驱动器应该可供两个不同的 samba 用户(user1,uid=1001 和 user2,uid=1002)访问。我创建了一个包含这两个用户 (gid=1007) 的组,并在 fstab 中添加了以下条目

LABEL=WINHDD /mnt/winhdd ntfs-3g defaults,nls=utf8,dmask=077,fmask=177,gid=1007 0 0

我的 smb.conf 将共享列为

[winhdd]
    path = /mnt/winhdd
    read only = no
    browseable = no

但是,我无法从 Windows PC 访问 samba 驱动器(出现错误:当我单击映射的网络驱动器图标时,Windows 无法访问 \piserver\winhdd)。提供 uid 有效(使用与上图相同的掩码),但其他用户无法访问驱动器。如何成功授予两个 samba 用户访问共享的权限?

PS:我看到了几个问题和指南,其中 fstab 条目同时包含 uid 和 gid,通常相同,除了这个问题,但是当我同时使用 uid 和 gid 时,我无法与任何一个用户连接,就好像我没有提供一个uid。

谢谢!

server-message-block fstab cifs ubuntu-20.04
  • 1 个回答
  • 390 Views
Martin Hope
TL_Arwen
Asked: 2021-10-02 09:17:11 +0800 CST

/home 中的 Ubuntu 18.04 多 AD 用户挂载共享

  • 0

我有一个 Ubuntu 18.04 服务器,它加入了我们的 windows 域。我已经进行了设置,因此用户可以使用他们的 AD 凭据登录服务器,效果很好。我还设置了在登录时自动安装 Windows 共享的脚本。

sudo mount -t cifs //tiberius/$1 /home/[email protected]/D -o user=$1,cruid=$1,sec=krb5,uid=$1,gid=domain\ users

这是在登录时运行的脚本。在我的 /etc/bash.bashrc 中,我有这个:

#If ~/D does not exist, create it
if [ ! -d ~/D ]; then
  mkdir ~/D
fi
#Mount D drive to ~/D
if [ "$EUID" -ne 0 ] && [ "$EUID" -ne 1000 ]; then
        sudo /usr/local/bin/mountsamba.sh $USER
fi
#Disconnect mount on session close
finish() {
        sudo /etc/bash.bash_logout
        }
        trap finish SIGHUP


if [ -f /etc/bash.bash_aliases ]; then
        /etc/bash.bash_aliases
fi 

共享似乎很好,这很好,但我在 /var/log/syslog 中收到这些错误:

[1477629.820060] CIFS VFS: Verify user has a krb5 ticket and keyutils is installed
[1477629.820061] CIFS VFS: Send error in SessSetup = -126

这些日志很难看出服务器中是否存在任何大问题。我只是想让这些共享自动挂载,而无需用户在登录时多次输入密码。这应该可以工作,因为服务器已连接到 AD。我猜这与 keytab 以及用户何时更改密码有关?

linux ubuntu ldap cifs kerberos
  • 1 个回答
  • 218 Views
Martin Hope
Kalle Ling
Asked: 2021-04-13 06:29:25 +0800 CST

Linux cifs 共享允许与挂载/屏蔽的 uid 不同的用户执行 cp -p

  • 1

我有一个特定的 linux-server,它在晚上运行多个批处理作业,创建文件并将它们复制到 NAS 上的各个位置,以前使用 NFS 安装,但最近使用 CIFS。

这是因为我们的新 NAS 不支持以适合我们的方式同时将文件系统共享为 nfs 和 cifs(多协议共享)。因此,我将共享安装为 cifs 共享,并在 .smbcredentials 文件中使用 Windows 凭据。

此共享与它自己的时间一样古老,并且可以被许多系统(Linux 服务器和 Windows 服务器)访问。但是他们都有自己的服务器,所以当我将共享作为 cifs 安装在其中一个 Linux 服务器上时,我可以将 fstab 中的 uid 和 gid 设置/屏蔽给他们各自的服务用户,一切都很好。

然而,在我第一次提到的服务器上,有几个系统与他们自己的个人用户在同一台​​服务器上运行。所以我需要掩盖 fstab 中的 uid/gid 看起来像一个用户,但仍然允许其他人做事。

这主要工作但不是 cp -p,保留文件的时间戳。这我似乎无法正常工作。

我可以尝试任何提示吗?我当然已经用谷歌搜索了我的 *ss,尝试了从这里到月球的任何东西......

当然,我也在尝试让开发团队转移到他们自己的服务器上,但这不会很快发生。

linux network-attached-storage cifs
  • 1 个回答
  • 293 Views
Martin Hope
cklm
Asked: 2020-12-03 09:35:41 +0800 CST

apache2 使用 cifs 共享时发送损坏的响应

  • 3

我对 ubuntu-instance (Ubuntu 20.04.1 LTS) 和 apache2 (Apache/2.4.41 (Ubuntu)) 有疑问。一个虚拟主机正在从已安装的 cifs 共享中提供一些 html 文件和文档。cifs-share 工作正常,文件系统上的文件正确。

但是,apache 无法为以二进制形式提供的每种文件类型(如图像、word 文档、pdf ......)生成正确的响应。例如,当我下载图像时image.gif,文件被下载并保存到客户端。在客户端上使用文本编辑器打开文件时,如下所示:

grade, Keep-Alive
Last-Modified: Thu, 12 Nov 2020 10:01:47 GMT
ETag: "b6b-5b3e600040144"
Accept-Ranges: bytes
Content-Length: 2923
Keep-Alive: timeout=5, max=100
Content-Type: image/gif

GIF89av[binary-string starting...]

因此,部分响应标头现在位于下载的文件中,这永远不会发生。我期待下载的文件以GIF89av等等开头。提供基于文本的文件(如 html)不是问题,并且可以按预期工作。但是,当我将同一文件复制到同一服务器上另一个虚拟主机的文档根目录中时,该服务器不使用已安装的 cifs-share,该文件被正确提供(其中没有响应头)。所以我认为,挂载的 cifs-share 和 apache2 的组合存在一些问题,这会导致该错误。

我已经尝试了有关挂载共享的各种选项 - 但我认为这是正确的,因为这些文件直接在没有 apache 的文件系统上运行。

共享安装/etc/fstab如下

//192.168.0.1/share$ /mnt/share cifs username=user,password=pass,dom=contoso.local 0 0

这几乎是最基本的方法。我体验过类似的选项iocharset=utf8,尝试了不同的版本(vers=1.0或vers=3.1),但这并没有改变任何东西。apache 配置也是基本配置,随 ubunutu 20 一起提供,没有什么特别的添加或更改。我对 mime 类型有一些经验,但是 apache 应该能够提供开箱即用的图像。

此外,我在该目录中启动了一个 php-webserver ( php -S 192.168.0.2:8000) 进行测试——它返回正确的二进制文件,这让我很确定,错误在 apache 中的某个地方。

是什么导致了 apache 的这种损坏响应,我该如何解决?

cifs apache2
  • 2 个回答
  • 872 Views
Martin Hope
Chris Owen
Asked: 2020-11-02 18:49:39 +0800 CST

Apache 使用网络连接共享 /mount 存储网页的位置。这使用xampp ugh。现在使用 ubuntu

  • 0

那么这个页面apache 中的 /var/www/ 或 /var/www/html/ 中的网页应该放在哪里呢?类似于我要问的。规则不允许我提出加入问题以扩展该讨论。还有其他几个关于 /mount 和 fstab 的问题有点像这个问题。这是在使用 ubuntu 服务器的超术语 vm 上,它也从 nas 加载。nas 是 freenas 并且有一个 6T raid 1 阵列,因为我有几个 SSD 驱动器在没有警告的情况下很快发生故障。

所以我清理了,这是第一次运行 vhost-Errorlog:我认为某些内容可能会呈现给知情人士。这是对 index.html 页面的一次调用。使用 file:/// 页面在 Firefox 中完全正确加载...?

所以我试图发布错误列表,但被拒绝了。

我不确定我在这里读的是什么,但每个链接都有一个与其对应的文件,因为这些文件确实存在,所以如果我正在阅读没有意义的 404 错误。450 在那里,但我在文件夹和文件上运行 chown -r www-data:www-data ......但是浏览页面时仍然有损坏的图像,日志也显示 200 ......我很困惑使用错误日志数据,

error.log 相当长,但如果需要可以发布。我确实看到了一些我安装并尝试删除的 wordpress 不存在,因为我对它没有印象。如果有的话,不确定这可能会对 apache 造成什么影响。

我正在使用 irc 房间,用户的建议导致我不得不重新安装 apache,然后当我向房间询问另一种意见时,被同一用户欺负。在另一个房间里,一位用户在这里提出了建议,并没有欺负我,所以我试图在这里找到解决方案。

这是一个相当有趣的问题。主要工作,但我认为这可能是权限问题???我确实发现了一个实际的拼写错误问题,并通过一些帮助解决了大部分 /mount 问题。

https://pastebin.com/bDfE23gt错误日志

virtual-machines fstab cifs apache-2.4 ubuntu-20.04
  • 1 个回答
  • 65 Views
Martin Hope
uli
Asked: 2020-08-27 05:35:39 +0800 CST

挂载 Windows 共享失败并显示 STATUS_TRUSTED_RELATIONSHIP_FAILURE

  • 0

我定期在 Linux 机器 (OpenSUSE Tumbleweed) 上从 Windows 2012R2 服务器安装共享驱动器。自上周四在 Windows 服务器上安装更新以来,安装失败并显示错误消息

Aug 26 11:45:27 <linux server> kernel: CIFS: Attempting to mount //<windows server>/<share>
Aug 26 11:45:27 <linux server> kernel: CIFS: Status code returned 0xc000018d STATUS_TRUSTED_RELATIONSHIP_FAILURE
Aug 26 11:45:27 <linux server> kernel: CIFS: VFS: \\a-store Send error in SessSetup = -5
Aug 26 11:45:27 <linux server> kernel: CIFS: VFS: cifs_mount failed w/return code = -2

我尝试了不同的挂载选项(vers=2.0、2.1、3.0、sec=ntlm、ntlmssp)和不同的用户——结果都一样。linux 服务器可以从其他服务器挂载共享,并且 windows 服务器上的共享可以从(几乎所有)其他计算机访问。我试图在两台机器上再次加入域,但没有效果。

目前我会说 Windows 服务器上的更新之一是问题的原因。我们还有其他在 2012R2 上运行的服务器,它们仍然运行良好,并且在星期四也得到了更新。唯一的区别是操作系统的语言(德语/英语)。

有没有办法获得有关该问题的更多信息?关于“STATUS_TRUSTED_RELATIONSHIP_FAILURE”的文档并不完全有帮助。

linux cifs windows-server-2012-r2
  • 2 个回答
  • 9083 Views
Martin Hope
Frank Rueter
Asked: 2020-06-29 21:54:01 +0800 CST

挂载点更改时登录失败

  • 0

我正在通过/etc/fstab在 Centos 7 机器上安装 Windows 10 共享,如下所示:

//10.11.11.7/shared_folder   /path/to/mount_point  cifs  user,rw,suid,uid=0,gid=1111,username=win_user,password=win_user,file_mode=0755,dir_mode=0777,vers=3.0   0 0

当我使用属于权限组 1111 的用户登录时,登录过程被中断,我被踢回登录屏幕。如果我使用 1111 组之外的用户登录,则登录成功(当然,安装的文件夹无法访问)。

如果我创建一个名为“mount_point_new”的新文件夹并相应地调整 fstab,一切正常,即:

//10.11.11.7/shared_folder   /path/to/mount_point_new  cifs  user,rw,suid,uid=0,gid=1111,username=win_user,password=win_user,file_mode=0755,dir_mode=0777,vers=3.0   0 0

“mount_point”和“mount_point_new”都具有相同的预挂载权限。我真的很想使用原始名称(“mount_point”)作为路径在某些配置中使用。我不是专业管理员,而是单人家庭办公室设置,所以我真的很想了解问题并解决它,而不是通过使用新的挂载点名称来避免它。

以下是登录失败后/var/log/messages的片段:

Jun 29 17:20:17 spiff dbus[1239]: [system] Activating via systemd: service name='net.reactivated.Fprint' unit='fprintd.service'
Jun 29 17:20:17 spiff systemd: Starting Fingerprint Authentication Daemon...
Jun 29 17:20:17 spiff dbus[1239]: [system] Successfully activated service 'net.reactivated.Fprint'
Jun 29 17:20:17 spiff systemd: Started Fingerprint Authentication Daemon.
Jun 29 17:20:36 spiff systemd-logind: New session 3 of user frank.
Jun 29 17:20:36 spiff systemd: Started Session 3 of user frank.
Jun 29 17:20:38 spiff gnome-session: gnome-session-binary[2825]: WARNING: Application 'org.gnome.SettingsDaemon.Housekeeping.desktop' killed by signal 15
Jun 29 17:20:38 spiff gnome-session-binary[2825]: WARNING: Application 'org.gnome.SettingsDaemon.Housekeeping.desktop' killed by signal 15
Jun 29 17:20:38 spiff gnome-session: gnome-session-binary[2825]: WARNING: Application 'org.gnome.SettingsDaemon.Mouse.desktop' killed by signal 15
Jun 29 17:20:38 spiff gnome-session: gnome-session-binary[2825]: WARNING: Application 'org.gnome.SettingsDaemon.Rfkill.desktop' killed by signal 15
Jun 29 17:20:38 spiff gnome-session: gnome-session-binary[2825]: WARNING: Application 'org.gnome.SettingsDaemon.ScreensaverProxy.desktop' killed by signal 15
Jun 29 17:20:38 spiff gnome-session: gnome-session-binary[2825]: WARNING: Application 'org.gnome.SettingsDaemon.Sharing.desktop' killed by signal 15
Jun 29 17:20:38 spiff gnome-session: gnome-session-binary[2825]: WARNING: Application 'org.gnome.SettingsDaemon.Smartcard.desktop' killed by signal 15
Jun 29 17:20:38 spiff gnome-session: gnome-session-binary[2825]: WARNING: Application 'org.gnome.SettingsDaemon.Sound.desktop' killed by signal 15
Jun 29 17:20:38 spiff gnome-session-binary[2825]: WARNING: Application 'org.gnome.SettingsDaemon.Mouse.desktop' killed by signal 15
Jun 29 17:20:38 spiff gnome-session: gnome-session-binary[2825]: WARNING: Lost name on bus: org.gnome.SessionManager
Jun 29 17:20:38 spiff gnome-session-binary[2825]: WARNING: Application 'org.gnome.SettingsDaemon.Rfkill.desktop' killed by signal 15
Jun 29 17:20:38 spiff gnome-session-binary[2825]: WARNING: Application 'org.gnome.SettingsDaemon.ScreensaverProxy.desktop' killed by signal 15
Jun 29 17:20:38 spiff gnome-session-binary[2825]: WARNING: Application 'org.gnome.SettingsDaemon.Sharing.desktop' killed by signal 15
Jun 29 17:20:38 spiff gnome-session-binary[2825]: WARNING: Application 'org.gnome.SettingsDaemon.Smartcard.desktop' killed by signal 15
Jun 29 17:20:38 spiff gnome-session-binary[2825]: WARNING: Application 'org.gnome.SettingsDaemon.Sound.desktop' killed by signal 15
Jun 29 17:20:38 spiff gnome-session-binary[2825]: WARNING: Lost name on bus: org.gnome.SessionManager
Jun 29 17:20:38 spiff journal: GChildWatchSource: Exit status of a child process was requested but ECHILD was received by waitpid(). See the documentation of g_child_watch_source_new() for possible causes.
Jun 29 17:20:38 spiff journal: Cannot open display: 
Jun 29 17:20:38 spiff gdm: Failed to remove greeter program access to the display. Trying to proceed.
Jun 29 17:20:39 spiff com.redhat.imsettings: [ 1593408039.137374]: IMSettings-Daemon[6377]: INFO: Starting imsettings-daemon...
Jun 29 17:20:39 spiff com.redhat.imsettings: [ 1593408039.139154]: IMSettings-Daemon[6377]: INFO:   [HOME=/mnt/home/frank/.config/imsettings]
Jun 29 17:20:39 spiff com.redhat.imsettings: [ 1593408039.140495]: IMSettings-Daemon[6377]: INFO:   [XINPUTRCDIR=/etc/X11/xinit/]
Jun 29 17:20:39 spiff com.redhat.imsettings: [ 1593408039.141764]: IMSettings-Daemon[6377]: INFO:   [XINPUTDIR=/etc/X11/xinit/xinput.d/]
Jun 29 17:20:39 spiff com.redhat.imsettings: [ 1593408039.143115]: IMSettings-Daemon[6377]: INFO:   [MODULEDIR=/usr/lib64/imsettings]
Jun 29 17:20:39 spiff com.redhat.imsettings: [ 1593408039.144508]: IMSettings-Daemon[6377]: INFO:   [MODULES=gsettings, qt]
Jun 29 17:20:45 spiff com.redhat.imsettings: [ 1593408045.764493]: IMSettings-Daemon[6377]: INFO: Release the ownership of com.redhat.imsettings
Jun 29 17:20:45 spiff com.redhat.imsettings: Exiting...
Jun 29 17:20:45 spiff com.redhat.imsettings: [ 1593408045.767041]: GLib-GIO[6377]: CRITICAL **: Error while sending AddMatch() message: The connection is closed
Jun 29 17:20:45 spiff com.redhat.imsettings: [ 1593408045.768427]: GLib-GIO[6377]: CRITICAL **: Error while sending AddMatch() message: The connection is closed
Jun 29 17:20:45 spiff com.redhat.imsettings: [ 1593408045.769742]: IMSettings-Daemon[6377]: INFO: Unloading imesttings module: qt
Jun 29 17:20:45 spiff com.redhat.imsettings: [ 1593408045.770996]: IMSettings-Daemon[6377]: INFO: Unloading imesttings module: gsettings
Jun 29 17:20:45 spiff com.redhat.imsettings: [ 1593408045.772340]: IMSettings-Daemon[6377]: INFO: imsettings-daemon is shut down.
Jun 29 17:20:47 spiff systemd-logind: New session c2 of user gdm.
Jun 29 17:20:47 spiff systemd: Started Session c2 of user gdm.
Jun 29 17:20:47 spiff org.a11y.Bus: Activating service name='org.a11y.atspi.Registry'
Jun 29 17:20:47 spiff org.a11y.Bus: Successfully activated service 'org.a11y.atspi.Registry'
Jun 29 17:20:47 spiff org.a11y.atspi.Registry: SpiRegistry daemon is running with well-known name - org.a11y.atspi.Registry
Jun 29 17:20:47 spiff gnome-session: generating cookie with syscall
Jun 29 17:20:47 spiff gnome-session: generating cookie with syscall
Jun 29 17:20:47 spiff gnome-session: generating cookie with syscall
Jun 29 17:20:47 spiff gnome-session: generating cookie with syscall
Jun 29 17:20:47 spiff gnome-session: gnome-session-binary[6605]: WARNING: Could not parse desktop file orca-autostart.desktop or it references a not found TryExec binary
Jun 29 17:20:47 spiff gnome-session-binary[6605]: WARNING: Could not parse desktop file orca-autostart.desktop or it references a not found TryExec binary
Jun 29 17:20:47 spiff dbus[1239]: [system] Activating service name='org.fedoraproject.Setroubleshootd' (using servicehelper)
Jun 29 17:20:48 spiff dbus[1239]: [system] Successfully activated service 'org.fedoraproject.Setroubleshootd'
Jun 29 17:20:48 spiff dbus[1239]: [system] Activating via systemd: service name='org.freedesktop.locale1' unit='dbus-org.freedesktop.locale1.service'
Jun 29 17:20:48 spiff systemd: Starting Locale Service...
Jun 29 17:20:48 spiff dbus[1239]: [system] Successfully activated service 'org.freedesktop.locale1'
Jun 29 17:20:48 spiff systemd: Started Locale Service.
Jun 29 17:20:48 spiff setroubleshoot: Exception during AVC analysis: must be encoded string without NULL bytes, not str
Jun 29 17:20:48 spiff setroubleshoot: Exception during AVC analysis: must be encoded string without NULL bytes, not str
Jun 29 17:20:49 spiff dbus[1239]: [system] Activating via systemd: service name='org.freedesktop.GeoClue2' unit='geoclue.service'
Jun 29 17:20:49 spiff systemd: Starting Location Lookup Service...
Jun 29 17:20:49 spiff journal: Failed to connect to avahi service: Daemon not running
Jun 29 17:20:49 spiff dbus[1239]: [system] Successfully activated service 'org.freedesktop.GeoClue2'
Jun 29 17:20:49 spiff systemd: Started Location Lookup Service.
Jun 29 17:20:49 spiff journal: No permission to trigger offline updates: Polkit.Error: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Action org.freedesktop.packagekit.trigger-offline-update is not registered
Jun 29 17:20:49 spiff spice-vdagent[6825]: Cannot access vdagent virtio channel /dev/virtio-ports/com.redhat.spice.0
Jun 29 17:20:49 spiff gnome-session-binary[6605]: WARNING: App 'spice-vdagent.desktop' exited with code 1
Jun 29 17:20:49 spiff gnome-session: gnome-session-binary[6605]: WARNING: App 'spice-vdagent.desktop' exited with code 1
Jun 29 17:20:49 spiff gnome-session-binary: Entering running state
Jun 29 17:20:49 spiff spice-streaming-agent[6827]: Failed to open the streaming device "/dev/virtio-ports/org.spice-space.stream.0": 2 - No such file or directory
Jun 29 17:20:49 spiff dbus[1239]: [system] Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service'
Jun 29 17:20:49 spiff systemd: Starting Hostname Service...
Jun 29 17:20:49 spiff dbus[1239]: [system] Successfully activated service 'org.freedesktop.hostname1'
Jun 29 17:20:49 spiff systemd: Started Hostname Service.
Jun 29 17:20:49 spiff dbus[1239]: [system] Activating via systemd: service name='net.reactivated.Fprint' unit='fprintd.service'
Jun 29 17:20:49 spiff systemd: Starting Fingerprint Authentication Daemon...
Jun 29 17:20:49 spiff dbus[1239]: [system] Successfully activated service 'net.reactivated.Fprint'
Jun 29 17:20:49 spiff systemd: Started Fingerprint Authentication Daemon.
Jun 29 17:20:49 spiff journal: Some code accessed the property 'AuthList' on the module 'authList'. That property was defined with 'let' or 'const' inside the module. This was previously supported, but is not correct according to the ES6 standard. Any symbols to be exported from a module must be defined with 'var'. The property access will work as previously for the time being, but please fix your code anyway.
Jun 29 17:20:49 spiff dbus[1239]: [system] Activating via systemd: service name='org.freedesktop.realmd' unit='realmd.service'
Jun 29 17:20:49 spiff systemd: Starting Realm and Domain Configuration...
Jun 29 17:20:49 spiff dbus[1239]: [system] Successfully activated service 'org.freedesktop.realmd'
Jun 29 17:20:49 spiff systemd: Started Realm and Domain Configuration.
Jun 29 17:20:49 spiff journal: Error looking up permission: GDBus.Error:org.freedesktop.portal.Error.NotFound: No entry for geolocation
Jun 29 17:20:49 spiff org.gnome.Shell.desktop: Window manager warning: "XF86RFKill" is not a valid accelerator
Jun 29 17:20:49 spiff journal: JS WARNING: [resource:///org/gnome/shell/ui/layout.js 29]: reference to undefined property "MetaWindowX11"
Jun 29 17:20:50 spiff journal: Screen lock is locked down, not locking
Jun 29 17:20:52 spiff journal: driver/gl/cogl-framebuffer-gl.c:1558: GL error (1282): Invalid operation
Jun 29 17:21:15 spiff systemd-logind: Removed session 3.

以下是成功登录后来自/var/log/messages的片段:

Jun 29 17:22:09 spiff dbus[1239]: [system] Activating via systemd: service name='net.reactivated.Fprint' unit='fprintd.service'
Jun 29 17:22:09 spiff systemd: Starting Fingerprint Authentication Daemon...
Jun 29 17:22:09 spiff dbus[1239]: [system] Successfully activated service 'net.reactivated.Fprint'
Jun 29 17:22:09 spiff systemd: Started Fingerprint Authentication Daemon.
Jun 29 17:22:11 spiff systemd-logind: New session 4 of user frank.
Jun 29 17:22:11 spiff systemd: Started Session 4 of user frank.
Jun 29 17:22:14 spiff gnome-session-binary[6605]: WARNING: Application 'org.gnome.SettingsDaemon.A11ySettings.desktop' killed by signal 15
Jun 29 17:22:14 spiff gnome-session: gnome-session-binary[6605]: WARNING: Application 'org.gnome.SettingsDaemon.A11ySettings.desktop' killed by signal 15
Jun 29 17:22:14 spiff gnome-session: gnome-session-binary[6605]: WARNING: Application 'org.gnome.SettingsDaemon.Housekeeping.desktop' killed by signal 15
Jun 29 17:22:14 spiff gnome-session: gnome-session-binary[6605]: WARNING: Application 'org.gnome.SettingsDaemon.Mouse.desktop' killed by signal 15
Jun 29 17:22:14 spiff gnome-session: gnome-session-binary[6605]: WARNING: Application 'org.gnome.SettingsDaemon.PrintNotifications.desktop' killed by signal 15
Jun 29 17:22:14 spiff gnome-session: gnome-session-binary[6605]: WARNING: Application 'org.gnome.SettingsDaemon.Rfkill.desktop' killed by signal 15
Jun 29 17:22:14 spiff gnome-session: gnome-session-binary[6605]: WARNING: Application 'org.gnome.SettingsDaemon.ScreensaverProxy.desktop' killed by signal 15
Jun 29 17:22:14 spiff gnome-session: gnome-session-binary[6605]: WARNING: Application 'org.gnome.SettingsDaemon.Sharing.desktop' killed by signal 15
Jun 29 17:22:14 spiff gnome-session: gnome-session-binary[6605]: WARNING: Application 'org.gnome.SettingsDaemon.Smartcard.desktop' killed by signal 15
Jun 29 17:22:14 spiff gnome-session-binary[6605]: WARNING: Application 'org.gnome.SettingsDaemon.Housekeeping.desktop' killed by signal 15
Jun 29 17:22:14 spiff gnome-session: gnome-session-binary[6605]: WARNING: Lost name on bus: org.gnome.SessionManager
Jun 29 17:22:14 spiff gnome-session-binary[6605]: WARNING: Application 'org.gnome.SettingsDaemon.Mouse.desktop' killed by signal 15
Jun 29 17:22:14 spiff gnome-session-binary[6605]: WARNING: Application 'org.gnome.SettingsDaemon.PrintNotifications.desktop' killed by signal 15
Jun 29 17:22:14 spiff gnome-session-binary[6605]: WARNING: Application 'org.gnome.SettingsDaemon.Rfkill.desktop' killed by signal 15
Jun 29 17:22:14 spiff gnome-session-binary[6605]: WARNING: Application 'org.gnome.SettingsDaemon.ScreensaverProxy.desktop' killed by signal 15
Jun 29 17:22:14 spiff gnome-session-binary[6605]: WARNING: Application 'org.gnome.SettingsDaemon.Sharing.desktop' killed by signal 15
Jun 29 17:22:14 spiff gnome-session-binary[6605]: WARNING: Application 'org.gnome.SettingsDaemon.Smartcard.desktop' killed by signal 15
Jun 29 17:22:14 spiff gnome-session-binary[6605]: WARNING: Lost name on bus: org.gnome.SessionManager
Jun 29 17:22:14 spiff journal: GChildWatchSource: Exit status of a child process was requested but ECHILD was received by waitpid(). See the documentation of g_child_watch_source_new() for possible causes.
Jun 29 17:22:14 spiff journal: GChildWatchSource: Exit status of a child process was requested but ECHILD was received by waitpid(). See the documentation of g_child_watch_source_new() for possible causes.
Jun 29 17:22:14 spiff journal: Cannot open display: 
Jun 29 17:22:14 spiff gdm: Failed to remove greeter program access to the display. Trying to proceed.
Jun 29 17:22:14 spiff systemd-logind: Removed session c2.
Jun 29 17:22:14 spiff com.redhat.imsettings: [ 1593408134.779897]: IMSettings-Daemon[8077]: INFO: Starting imsettings-daemon...
Jun 29 17:22:14 spiff com.redhat.imsettings: [ 1593408134.781320]: IMSettings-Daemon[8077]: INFO:   [HOME=/mnt/home/frank/.config/imsettings]
Jun 29 17:22:14 spiff com.redhat.imsettings: [ 1593408134.782272]: IMSettings-Daemon[8077]: INFO:   [XINPUTRCDIR=/etc/X11/xinit/]
Jun 29 17:22:14 spiff com.redhat.imsettings: [ 1593408134.783187]: IMSettings-Daemon[8077]: INFO:   [XINPUTDIR=/etc/X11/xinit/xinput.d/]
Jun 29 17:22:14 spiff com.redhat.imsettings: [ 1593408134.784091]: IMSettings-Daemon[8077]: INFO:   [MODULEDIR=/usr/lib64/imsettings]
Jun 29 17:22:14 spiff com.redhat.imsettings: [ 1593408134.784952]: IMSettings-Daemon[8077]: INFO:   [MODULES=gsettings, qt]
Jun 29 17:22:17 spiff dbus[1239]: [system] Activating service name='org.kde.powerdevil.backlighthelper' (using servicehelper)
Jun 29 17:22:18 spiff org.kde.powerdevil.backlighthelper: no kernel backlight interface found
Jun 29 17:22:18 spiff dbus[1239]: [system] Successfully activated service 'org.kde.powerdevil.backlighthelper'
Jun 29 17:22:23 spiff NetworkManager[1478]: <info>  [1593408143.1494] agent-manager: req[0x55c9e6008650, :1.112/org.kde.networkmanagement/1001]: agent registered
Jun 29 17:22:27 spiff rtkit-daemon[1354]: Successfully made thread 8504 of process 8504 (/usr/bin/pulseaudio) owned by '1001' high priority at nice level -11.
Jun 29 17:22:28 spiff com.redhat.imsettings: [ 1593408148.095736]: IMSettings-Daemon[8077]: WARNING **: Child process exited with code 1
Jun 29 17:22:28 spiff com.redhat.imsettings: [ 1593408148.100009]: IMSettings-Qt backend[8077]: WARNING **: Unable to obtain the DefaultInputMethod: Key file does not have group ?Qt?
Jun 29 17:22:28 spiff spice-vdagent[8524]: Cannot access vdagent virtio channel /dev/virtio-ports/com.redhat.spice.0
Jun 29 17:22:28 spiff spice-streaming-agent[8523]: Failed to open the streaming device "/dev/virtio-ports/org.spice-space.stream.0": 2 - No such file or directory
Jun 29 17:22:28 spiff com.redhat.imsettings: [ 1593408148.263348]: IMSettings-Daemon[8077]: INFO: Attempting to switch IM to none [lang=en_NZ.UTF-8, update=false]
Jun 29 17:22:28 spiff com.redhat.imsettings: [ 1593408148.321061]: IMSettings-Daemon[8077]: WARNING **: Child process exited with code 1
Jun 29 17:22:28 spiff com.redhat.imsettings: [ 1593408148.322752]: IMSettings-Daemon[8077]: INFO:   no need to invoke any auxiliary process for none
Jun 29 17:22:28 spiff com.redhat.imsettings: [ 1593408148.324006]: IMSettings-Daemon[8077]: INFO:   no need to invoke any main process for none
Jun 29 17:22:28 spiff org.a11y.Bus: Activating service name='org.a11y.atspi.Registry'
Jun 29 17:22:28 spiff rtkit-daemon[1354]: Successfully made thread 8578 of process 8504 (/usr/bin/pulseaudio) owned by '1001' RT at priority 5.
Jun 29 17:22:28 spiff org.a11y.Bus: Successfully activated service 'org.a11y.atspi.Registry'
Jun 29 17:22:28 spiff org.a11y.atspi.Registry: SpiRegistry daemon is running with well-known name - org.a11y.atspi.Registry
Jun 29 17:22:28 spiff rtkit-daemon[1354]: Successfully made thread 8591 of process 8504 (/usr/bin/pulseaudio) owned by '1001' RT at priority 5.
Jun 29 17:22:28 spiff com.redhat.imsettings: [ 1593408148.372124]: IMSettings-Qt backend[8077]: INFO: Setting up xim as Qt immodule
Jun 29 17:22:28 spiff com.redhat.imsettings: [ 1593408148.374189]: IMSettings-GSettings backend[8077]: INFO: Setting up gtk-im-context-simple:xim as gtk+ immodule
fstab cifs centos7
  • 1 个回答
  • 1088 Views
Martin Hope
Alexander L. Belikoff
Asked: 2020-05-18 14:53:44 +0800 CST

NAS 驱动器安装 RW(在 Linux 中),但某些子目录是只读的

  • 0

我在我的 Linux 机器(Ubuntu 20.04)上安装了一组 NAS 驱动器,大多数驱动器似乎一切正常:

sudo mount -t cifs //mynas/mydrive /mnt/mydrive -o \
    credentials=/etc/samba/nas.creds,file_mode=0600,dir_mode=0700,uid=myuid,gid=mygid

也就是说,驱动器已安装,它们具有正确的 umask,它们可由我的用户写入。

这些驱动器之一上的子文件夹除外。它以完全相同的方式安装,具有完全相同的凭据,并且顶级目录是可写的。但是,我不能写入任何子目录!

顶级目录是可写的:

$ ls -ld /mnt/mydrive
drwx------ 2 myuid mygid 0 May 17 18:22 /mnt/mydrive
$ touch /mnt/mydrive/aaa
$ ls -l /mnt/mydrive/aaa 
-rw------- 1 myuid mygid 0 May 17 18:39 /mnt/mydrive/aaa

子目录不是

$ ls -ld /mnt/mydrive/new
drwx------ 2 myuid mygid 0 Mar 10  2019 /mnt/mydrive/new
$ touch /mnt/mydrive/new/aaa
touch: cannot touch '/mnt/mydrive/new/aaa': Permission denied

NAS 是 QNAP(Linux/Samba for OS 的衍生产品),所有共享都具有相同的凭据集和 R/W 访问权限。这些文件夹最初是通过 Windows 创建的(以防万一),但它适用于所有驱动器上的所有相关文件夹 - 但只有该驱动器显示此行为。

我是不是忘记了什么?我必须考虑另一种 ACL 机制吗?任何帮助,将不胜感激!

linux mount network-attached-storage server-message-block cifs
  • 1 个回答
  • 368 Views

Sidebar

Stats

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

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

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

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve