You are not logged in.
I'm trying to connect to a shared drive at work (primarily a windows facility). I have no previous experience with samba, so I may be missing something obvious, but the error message I'm getting is not very informative:
$ sudo mount -t cifs //FILESERVER/Public /mnt/work -o username=jessem,domain=redacted.com,iocharset=utf8
[sudo] password for jmcclure:
Password for jessem@//FILESERVER/Public:
mount error(2): No such file or directory
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
(note "redacted.com" is in place of the actual domain, all else is actual command and output)
The mount point exists:
$ stat /mnt/work/
File: /mnt/work/
Size: 4096 Blocks: 8 IO Block: 4096 directory
Device: 802h/2050d Inode: 1585017 Links: 2
Access: (0755/drwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2019-08-30 11:54:12.000000000
Modify: 2019-08-30 11:54:12.000000000
Change: 2019-08-30 11:54:12.000000000
And my password is correct as I get results from smbclient with the password (first output below), but not if I intentionally use a worng password (second output):
$ smbclient -L FILESERVER -U jessem -W redacted.com
Unable to initialize messaging context
Enter REDACTED.COM\jessem's password:
Sharename Type Comment
--------- ---- -------
Academy Disk
Accounting Disk
ADMIN$ Disk Remote Admin
C$ Disk Default share
IPC$ IPC Remote IPC
M4 Disk
Public Disk
Quickbooks Disk Shared this folder to access QuickBooks files OverNetwork
Scans Disk
Reconnecting with SMB1 for workgroup listing.
Server Comment
--------- -------
Workgroup Master
--------- -------
$ smbclient -L FILESERVER -U jessem -W redacted.com
Unable to initialize messaging context
Enter REDACTED.COM\jessem's password:
session setup failed: NT_STATUS_LOGON_FAILURE
So I can list the shares, but mounting fails with the message "No such file or directory". Adding the verbose flag doesn't seem to provide much more:
$ sudo mount -t cifs //FILESERVER/Public /mnt/work -o username=jessem,domain=redacted.com,iocharset=utf8 --verbose
Password for jessem@//FILESERVER/Public:
mount.cifs kernel mount options: ip=192.168.10.97,unc=\\FILESERVER\Public,iocharset=utf8,user=jessem,domain=redacted.com,pass=********
mount error(2): No such file or directory
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
Are there other diagnostics I could collect?
Last edited by Trilby (2019-09-03 17:45:14)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Waht does
ping FILESERVER
yield?
Did you try it's IP address instead of the NetBIOS host name?
Edit: Did you also try to use an explicit version?
Last edited by schard (2019-08-30 18:19:16)
Inofficial first vice president of the Rust Evangelism Strike Force
Offline
Thanks for that link, I'm not sure how I missed it. I'll have to try some of that tomorrow when I'm back on the network. I never tried `ping FILESERVER` directly, but I was able to ping the ip address that is listed in the verbose output for that server.
(edit: I didn't bring my computer in today, so I'll have to check back on Tuesday)
EDIT: pinging works:
$ ping -c 3 FILESERVER
PING FILESERVER (192.168.10.97): 56 data bytes
64 bytes from 192.168.10.97: seq=0 ttl=128 time=3.084 ms
64 bytes from 192.168.10.97: seq=1 ttl=128 time=3.127 ms
64 bytes from 192.168.10.97: seq=2 ttl=128 time=3.056 ms
--- FILESERVER ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 3.056/3.089/3.127 ms
Following the link above, though, I found it was the "vers" option, but in my case (discovered through trial and error) I needed to add "vers=1.0" to the mount options. Thanks!
Last edited by Trilby (2019-09-03 17:45:01)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
I can also confirm setting vers=1 solves the issue
Offline
I'm glad this thread was useful, and welcome to the forums. But for future refernece, we'd prefer to not bump a slightly old SOLVED thread with no new information.
Feel free to check out our community guidelines:
https://wiki.archlinux.org/index.php/Code_of_conduct
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline