sakuya_su
asked on
fstab with SMBFS?
hi I have this problem:
//SERVER/C /home/USER/C smbfs rw,username=***,password=* **,uid=500 ,gid=100,d mask=770,f mask=770 0 0
this is the line in my fstab.
now I can use it all fine and everything, but after each file copy I get a Warning: Could not change File permission? can anyone tell me what I should do?
Also, if I want to delete a file from the mount, it tries to copy it to my local rubish bin 1st then delete it, so big files i can delete them remotely, anyone have any suggestions on that as well??
Thanks very much in advanced
//SERVER/C /home/USER/C smbfs rw,username=***,password=*
this is the line in my fstab.
now I can use it all fine and everything, but after each file copy I get a Warning: Could not change File permission? can anyone tell me what I should do?
Also, if I want to delete a file from the mount, it tries to copy it to my local rubish bin 1st then delete it, so big files i can delete them remotely, anyone have any suggestions on that as well??
Thanks very much in advanced
ASKER
the samba server is a windows machine, so i dont think i can do anything, removing dmask=770,fmask=770 cause my drive to mount as read only for some reason dispite the fact i have rw flag
In which case, I suspect that the windows share that you are mounting is on a FAT32 partition? FAT32 has no concept of rwx for ugo, and attempting to do it will give you an error similar to that reported. The solution is to migrate the share to an NTFS partition.
HTH:)
HTH:)
I'm trying to find what matches a FAT32 set of permissions. You could try:
fmask=664,dmask=775
and see what happens? Otherwise I suspect that you may have to live with this or possibly convert the partition:
http://www.microsoft.com/technet/prodtechnol/winxppro/maintain/convertfat.mspx
Obviously back up everything before doing this!
fmask=664,dmask=775
and see what happens? Otherwise I suspect that you may have to live with this or possibly convert the partition:
http://www.microsoft.com/technet/prodtechnol/winxppro/maintain/convertfat.mspx
Obviously back up everything before doing this!
You might want to move from SMBFS to CIFS as SMBFS is no longer maintained and has some bugs.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
With respect to the file being copied to you rubbish bin, this behaviour is a function of how the samba daemon is configured. Do you have the ability to alter the smb.conf on the server? Depending on how that is set up, you may find that removing uid=500,gid=100 helps.
HTH:)