Cifs 挂载问题

Cifs 挂载问题

嗨,我正在尝试在 Linux NAS 上安装 SMB 共享

地址:192.168.1.183/ODROIDXU4-SHARE

路径:Myfiles-Share

我在用户“rene”下创建了一个文件 .smbcredentials,并对其执行了 chmod 600,如下所示:

username=rene
password=***********

我的 fstab 看起来像这样

 /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
/dev/mapper/ubuntu--vg-root /               ext4    errors=remount-ro 0       1
# /boot/efi was on /dev/sda1 during installation
UUID=0194-4700  /boot/efi       vfat    umask=0077      0       1
/dev/mapper/ubuntu--vg-swap_1 none            swap    sw              0       0

#//192.168.1.183/Myfiles-Share /media/odroidxu4-nasshare cifs credentials=/home/rene/.smbcredentials,iocharset=utf8,sec=ntlm 0 0

//192.168.1.183/Myfiles-Share /media/odroidxu4-nasshare cifs credentials=/home/rene/.smbcredentials,iocharset=utf8,vers=1.0,sec=ntlm 0 0

但是我在 dmesg 中收到以下错误:

[ 2675.630962] CIFS VFS: Send error in SessSetup = -13
[ 2675.630989] CIFS VFS: cifs_mount failed w/return code = -13
[ 2899.179580] Status code returned 0xc000006d NT_STATUS_LOGON_FAILURE
[ 2899.179598] CIFS VFS: Send error in SessSetup = -13
[ 2899.179627] CIFS VFS: cifs_mount failed w/return code = -13

我可以在 Windows 中访问此共享,因此它可以工作/处于活动状态 - 有谁可以解决这个问题?

答案1

我通过这一行让它工作:

 //192.168.1.183/Myfiles-Share /media/odroidxu4-nasshare cifs vers=3.0,credentials=/home/rene/.smbcredentials,iocharset=utf8,file_mode=0777,dir_mode=0777,uid=rene,gid=r$,gid=rene,nofail 0 0 – 

相关内容