- Joined
- Apr 19, 2014
- Messages
- 30
I'm currently trying to permanently map CIFS shares from my FreeNAS box (version FreeNAS-11.0-RELEASE (a2dc21583)) on a Ubuntu 16.04 Server virtual machine. Just for the record, the VM host is different hardware than my FreeNAS box. So far I've pretty much followed the MountWindowsSharesPermanently guide from the Ubuntu Wiki verbatim, I've just not had very much luck so far and both my Linux-fu (crude) and Google-fu aren't helping me out.
I've tested my FreeNAS machine's shares from a different machine and they all seem to be working just fine. From a different box (Windows), I can pull up the shares in question using the same credentials without any issues.
Here's an the applicable lines from my /etc/fstab file:
And here's the contents of the /root/.smbcredentials file:
Any time I try the sudo mount -a command, this is what I get back in return:
Running dmesg provides a little, but not much, verbosity to the errors:
Whatever the issue is, is likely to be related to my credentials file somehow. With one of the shares, I experimented with passing the username and password right there in the /etc/fstab and that appears to work fine. But trying to use the credentials file isn't generating much luck. I've tried a few things:
I'd really, really, really rather not leaving the username and password in clear text right there in /etc/fstab, can you help me figure out what's going on here?
I've tested my FreeNAS machine's shares from a different machine and they all seem to be working just fine. From a different box (Windows), I can pull up the shares in question using the same credentials without any issues.
Here's an the applicable lines from my /etc/fstab file:
//drteeth/isos /drteeth/isos cifs credentials=/root/.smbcredentials,iocharset=utf8,sec=ntlm 0 0
//drteeth/backups /drteeth/backups cifs credentials=/root/.smbcredentials,iocharset=utf8,sec=ntlm 0 0
//drteeth/homes /drteeth/homes cifs credentials=/root/.smbcredentials,iocharset=utf8,sec=ntlm 0 0
//drteeth/media /drteeth/media cifs credentials=/root/.smbcredentials,iocharset=utf8,sec=ntlm 0 0
And here's the contents of the /root/.smbcredentials file:
username=<FreeNAS share's username goes here>
password=<FreeNAS share's password goes here>
Any time I try the sudo mount -a command, this is what I get back in return:
brian@fozzie:/drteeth$ sudo mount -a
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
Running dmesg provides a little, but not much, verbosity to the errors:
[ 4491.653814] Status code returned 0xc000006d NT_STATUS_LOGON_FAILURE
[ 4491.653842] CIFS VFS: Send error in SessSetup = -13
[ 4491.654028] CIFS VFS: cifs_mount failed w/return code = -13
[ 4491.673715] Status code returned 0xc000006d NT_STATUS_LOGON_FAILURE
[ 4491.673724] CIFS VFS: Send error in SessSetup = -13
[ 4491.673986] CIFS VFS: cifs_mount failed w/return code = -13
[ 4491.693268] Status code returned 0xc000006d NT_STATUS_LOGON_FAILURE
[ 4491.693278] CIFS VFS: Send error in SessSetup = -13
[ 4491.694946] CIFS VFS: cifs_mount failed w/return code = -13
[ 4491.712772] Status code returned 0xc000006d NT_STATUS_LOGON_FAILURE
[ 4491.712780] CIFS VFS: Send error in SessSetup = -13
[ 4491.714463] CIFS VFS: cifs_mount failed w/return code = -13
Whatever the issue is, is likely to be related to my credentials file somehow. With one of the shares, I experimented with passing the username and password right there in the /etc/fstab and that appears to work fine. But trying to use the credentials file isn't generating much luck. I've tried a few things:
- Deleting/recreating the file by hand to try and avoid any weird file-type or invisible characters.
- Updating the user's password so it's comprised of alphabetic and numeric characters only (to avoid any issues with special characters needing to be escaped out)
- Used chown to make sure that the root user has the ability.
- Moved the credentials file out of my home directory and into a directory that root owns
I'd really, really, really rather not leaving the username and password in clear text right there in /etc/fstab, can you help me figure out what's going on here?