Link to home
Start Free TrialLog in
Avatar of sakuya_su
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,dmask=770,fmask=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
Avatar of pjedmond
pjedmond
Flag of United Kingdom of Great Britain and Northern Ireland image

The reason is that permissions on the remote server do not allow you to change the file permissions as required by the fstab entry. Removing the dmask=770,fmask=770 in the fstab will correct this. Alternatively, you can change the configuration of the samba server to allow this.

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:)
Avatar of sakuya_su
sakuya_su

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:)
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!
You might want to move from SMBFS to CIFS as SMBFS is no longer maintained and has some bugs.
ASKER CERTIFIED SOLUTION
Avatar of pjedmond
pjedmond
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial