fstab mounts to smb shares resond with "File Does Not Exist."

Asked by Brent Plummer

So I put the following in /etc/fstab:

//ServerName/ShareName /mnt/servername cifs credentials=/home/charmo/.smbpasswd,uid=charmo,gid=charmo 0 0

run mount -a and the mount is established correctly. Use Nautilus to browse to /mnt/servername and I can access everything. I can create files, I can delete files and the permissions are set accordingly: charmo.charmo
However, when I try to open a file (any file) it comes back with: "/mnt/servername/filename.doc does not exist"

So I umount the share and write a bash script to mount it manually:

#!/bin/bash
#Server Mount Points
mount -t cifs //Server/ShareName /mnt/servername -o credentials=/home/charmo/.smbpasswd,uid=charmo,gid=charmo

chmod this to 770 and run. It mounts the share but same response to opening the file.

Ironically, I run this command manually:
mount -t cifs //Server/ShareName /mnt/servername -o credentials=/home/charmo/.smbpasswd,uid=charmo,gid=charmo

and it works fine.

So fstab and the bash script mount the share correctly but I can't open files. I run the same exact command manually and all works well. Ironically, I only have this problem with Samba mounts, never with MS mounts. Fstab mounts any MS share and I can open anything from it.

Samba Version: 3.028a-1 (ditto for smbfs).

This is killing me!

Question information

Language:
English Edit question
Status:
Expired
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Launchpad Janitor (janitor) said :
#1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.