I used AutoFS on an older version of Ubuntu. It worked fine for years. After upgrading to 16.04 I can no longer access remote drives.
Thus the error I get:
Feb 28 13:50:33 usps-devel kernel: [83512.930685] No dialect specified on mount. Default has changed to a more secure dialect, SMB2.1 or later (e.g. SMB3), from CIFS (SMB1). To use the less secure SMB1 dialect to access old servers which do not support SMB3 (or SMB2.1) specify vers=1.0 on mount.
Feb 28 13:50:33 usps-devel kernel: [83512.936760] CIFS VFS: cifs_mount failed w/return code = -112
In auto.master I have this line:
/fmpcslive/logs /etc/auto.fmpcs/auto.logs --ghost --timeout=0
Then in /etc/auto.fmpcs/auto.logs I have this line:
PSM1_live -fstype=cifs,ro,user,uid=1000,gid=1000,suid,sec=ntlm,credentials=/home/usps/Desktop/fmpcs_programs/winsharecreds.pwd,nocase ://PSM1-fmpcs/stats
And my winsharecreds.pwd looks similar to this:
username=username
password=password
domain=domain
This has worked for several years on the older install. And still works for the 2 CentOS servers.
Thank you for your time and assistance!
Terry
see this post (the last entry). You may have to select smb 1.0/cifs support
https://ubuntuforums.org/showthread.php?t=2333374
I should have included that part. What I’m attaching to is actually a Lynx box with the windows stuff over layed on it. It hasn’t changed.
Thank you though!
Does any one have any ideas?
I assume you have cifs-utils
installed.
Try mounting manually with -v flag so you can see where it gets stuck.
sudo mount -vv -t cifs -o username=X,password=Y,domain=Z //server/share /mnt/share
Yes I have cifs-utils installed. Thank you for checking though.
I do forget things.
Here is the result:
root@devel:/# mount -vv -t cifs -o username=,passwpord=,domain=**** //PSM3/stats /fmpcslive/stats
mount.cifs kernel mount options: ip=10.10.60.203,unc=\PSM3\stats,user=,domain=,pass=********
mount error(112): Host is down
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
I can telnet and ssh to this server. And from windows and an older version of CentOS, can access this directory.
A point of interest, my fresh install of CentOS will not work with cifs either.
can you pass the smb version as a parameter in the mount command, eg.
mount -t cifs //<server_ip>/<share> /mnt/<mountpoint> -o vers=2.0
or vers=3.0 or vers=1.0
I couldn’t get the mount command to work. I could see it trying with vers=1.0, but there were other issues. I’m not sure if I was typing something wrong or it was out of order.
Because I could see it trying, I tried it in autofs. So, I do have it working through autofs now though. The winning combination is:
mnt_point -fstype=cifs,ro,user,uid=1000,gid=1000,suid,credentials=path_to_credentials/winsharecreds.pwd,nocase,file_mode=0777,dir_mode=0777,vers=1.0 ://server/path
Thank you very much for your help!