Derek Lewis
2010-Jun-17 20:18 UTC
[Samba] Preserve create/modify dates and attributes in samba
I have Samba 3.4.7 running with basic shares under Ubuntu 10.04, though I am interested in configuring Samba to store the Windows file attributes and create/modify dates. I have found some hints to this being done though no details. I have experimented with NTFS and found that most of the attributes and modified/accessed dates are preserved. If Samba 3.4.x will not store the file information, will Samba 3.5?
Jeremy Allison
2010-Jun-21 20:04 UTC
[Samba] Preserve create/modify dates and attributes in samba
On Thu, Jun 17, 2010 at 04:18:40PM -0400, Derek Lewis wrote:> I have Samba 3.4.7 running with basic shares under Ubuntu 10.04, though I am interested in configuring Samba to store the Windows file attributes and create/modify dates. I have found some hints to this being done though no details. I have experimented with NTFS and found that most of the attributes and modified/accessed dates are preserved.Mount the filesystem with extended attributes supported, then set: ea support = yes store dos attributes = yes map readonly = no map archive = no map system = no in the [global] section of your smb.conf. Jeremy.
Derek Lewis
2010-Jul-05 09:43 UTC
[Samba] Preserve create/modify dates and attributes in samba
I have configured Samba 3.4.7 with extended attributes enabled to preserve file create/modify dates. I went ahead and tried to map a network drive, and successfully copied a file over to samba, though the create date is set to the modified date on the copy. For my /etc/fstab, I have set the following options set for a ext4 filesystem: auto,relatime,errors=remount-ro,user_xattr Do I have to change the default kernel configuration for Ubuntu 10.04 or apply a patch to the filesystem to get extended attributes to work? Do I have to upgrade to Samba 3.5? Derek