[Samba] Issue with file permissions when mounting a windows share in linux

Puyal Tolosa, Noé npuyal at valls.cat
Fri Jul 29 06:13:07 MDT 2011


Good morning
 
I'm migrating the folders under a Windows 2003 Standard share to a Linux Samba server. I have mounted the Windows share configuring it in /etc/fstab this way:

//fitxers/personal /import/personal-antic smbfs username=domuser,password=userpassword 0 0

The mount is performed perfectly and the backup script works fine on most files, but there is a considerable percent of files under the shared resource that I cannot operate them because file permissions don't exist.
 
I append the output from ls (which is the same when I try to tar them into a file, or chown them) based on two samba versions, the issued one and a version that everything is working fine:

ISSUED SAMBA 3.4.7:
ls -laht
ls: cannot access DESCRIPCI? VEHICLE 4x4.doc: No such file or directory
ls: cannot access DESCRIPCI? VEHICLE SCENIC.doc: No such file or directory
total 0
drwxr-xr-x 1 root root 0 2011-07-26 12:40 ..
drwxr-xr-x 1 root root 0 2010-10-01 12:42 .
-????????? ? ?    ?    ?                ? DESCRIPCI? VEHICLE 4x4.doc
-????????? ? ?    ?    ?                ? DESCRIPCI? VEHICLE SCENIC.doc
 
SAMBA 3.0.28: 
ls -laht
total 216K
drwxrwxrwx 1 root root    0 2011-07-26 12:40 ..
drwxrwxrwx 1 root root    0 2010-10-01 12:42 .
-rwxrwSrwx 1 root root 108K 2010-07-08 09:11 DESCRIPCI? VEHICLE SCENIC.doc
-rwxrwSrwx 1 root root 108K 2010-07-08 09:09 DESCRIPCI? VEHICLE 4x4.doc

 
Thanks in advance
 


More information about the samba mailing list