Preserve timestamp on automounted fat32

Advertisement

EOS1V
Guest

Preserve timestamp on automounted fat32

I'm unable to preserve timestamp using winSCP when transferring files to an automounted fat32 partition. The partition was originally created using WinXP and I use it primarily to share between Linux and Windows. Everything works regarding file transfer with the exception of file attribute modification. Here is the error message I get from winSCP while transferring a file with preserving timestamp enabled:

Permission denied.
Error code: 3
Error message from server: Permission denied (?)
Request code: 9

Below is the relevant line from the servers fstab config file for the fat32 automount:

/dev/hda2 /mnt/osshare vfat umask=000 0 0

What am I doing wrong? Any help would definitely be appreciated.

BTW: Preserving timestamp works OK when sending a file to a Linux partition or from the server to the local computer.

Thank

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
27,253
Location:
Prague, Czechia

Re: Preserve timestamp on automounted fat32

I have no idea what may cause this. Can you create a test account for me on the server?
_________________
Martin Prikryl

Reply with quote

EOS1V
Guest

Re: Preserve timestamp on automounted fat32

martin wrote:

I have no idea what may cause this. Can you create a test account for me on the server?
I figured it out. It had nothing to do with WinSCP! The automounted fat and all on it was owned, as defined by default, by root. Permission to change file attributes is strictly forbidden without ownership on my server. I changed ownership by changing the fstab file:

dev/hda2 /mnt/osshare vfat umask=000 0 0
to
/dev/hda2 /mnt/sharedVfat vfat uid=501,umask=000,gid=501 0 0

Reply with quote

Advertisement

You can post new topics in this forum