I have this fstab entry to allow a tomcat app to read/write on a Windows Samba shared folder://dc/docs    /media/docs      cifs       credentials=...,rw,nounix,iocharset=utf8,file_mode=0777,dir_mode=0777,sec=ntlm,uid=tomcat7,gid=tomcat7,dir_mode=0770,file_mode=0770 0 0Problem is it keeps unmounting after a certain amount of time -- not a Windows failure, I can access the share elsewhere$ sudo ls /media/docsfinance  postsale  repository#after e.g. 10 minutes...$ sudo ls /media/docs[sudo] password for user:ls: cannot access '/media/docs': Connection reset by peer#this takes ages to complete$ sudo umount /media/docs#this fails immediately after, succedes after about 5/10 seconds$ sudo mount /media/docsmount error(112): Host is downRefer to the mount.cifs(8) manual page (e.g. man mount.cifs)$ sudo mount /media/docsmount error(104): Connection reset by peerRefer to the mount.cifs(8) manual page (e.g. man mount.cifs)$ sudo mount /media/docs$ sudo ls /media/docsfinance  postsale  repositoryHow do I debug this or prevent from dropping?Tomcat app users have no rights to remount so everytime they need to rise a ticket to IT.Please note this mount on the same share does not drop (only difference I spot is user is a sudoer while tomcat7 above is not)://dc/share       /media/share     cifs       credentials=....credentials,rw,nounix,iocharset=utf8,file_mode=0777,dir_mode=0777,sec=ntlm,uid=user,gid=user,dir_mode=0770,file_mode=0770 0 0UPDATE:Folder /var/log/samba is empty -- how do I set logging for samba?If I keep on listing the folder it does not drop:while true; do date; ls /media/docs; sleep 5; doneUPDATE 2:Here the mount output://fs-mxp/ZZZshare on /media/share type cifs (rw,relatime,vers=1.0,sec=ntlm,cache=strict,username=XXX,domain=YYY-it,uid=1000,forceuid,gid=1000,forcegid,addr=10.39.52.6,file_mode=0770,dir_mode=0770,nounix,serverino,mapposix,rsize=61440,wsize=65536,actimeo=1)//fs-mxp/ftp on /media/ftp type cifs (rw,relatime,vers=1.0,sec=ntlm,cache=strict,username=XXX,domain=YYY-it,uid=1000,forceuid,gid=1000,forcegid,addr=10.39.52.6,file_mode=0770,dir_mode=0770,nounix,serverino,mapposix,rsize=61440,wsize=65536,actimeo=1)//sql-mxp/C$ on /media/sql type cifs (rw,relatime,vers=1.0,sec=ntlm,cache=strict,username=administrator,domain=YYY-it,uid=1000,forceuid,gid=1000,forcegid,addr=10.39.52.11,file_mode=0770,dir_mode=0770,nounix,serverino,mapposix,rsize=61440,wsize=65536,actimeo=1)//fs-mxp/ZZZdocs on /media/docs type cifs (rw,relatime,vers=1.0,sec=ntlm,cache=strict,username=YYYdoc,domain=YYY-it,uid=113,forceuid,gid=123,forcegid,addr=10.39.52.6,file_mode=0770,dir_mode=0770,nounix,serverino,mapposix,rsize=61440,wsize=65536,actimeo=1)//fs-mxp/ZZZshare/ASTE on /home/esales/aste type cifs (rw,relatime,vers=1.0,sec=ntlm,cache=strict,username=XXX,domain=YYY-it,uid=1001,forceuid,gid=1002,forcegid,addr=10.39.52.6,file_mode=0770,dir_mode=0770,nounix,serverino,mapposix,rsize=61440,wsize=65536,actimeo=1)//fs-mxp/ftp/YYYvendor on /home/esales/YYYvendor type cifs (rw,relatime,vers=1.0,sec=ntlm,cache=strict,username=XXX,domain=YYY-it,uid=1001,forceuid,gid=1002,forcegid,addr=10.39.52.6,file_mode=0770,dir_mode=0770,nounix,serverino,mapposix,rsize=61440,wsize=65536,actimeo=1)
cifs mounted folder keeps disconnecting (ubuntu server)
debian;mount;cifs