Not restoring Extended Attributes on Samba share
I may have a serious problem. I have a Linux host Samba sharing a directory for use by Windows workstations. Relevant smb.conf:
Code:
[Users] Code:
drwxrwx---+ 6 BUILTIN\administrators users 4096 2024-02-08 21:07 Administrator/ Code:
getfattr -dR /redirectedFolders /var/lib/samba/sysvol /var/lib/samba/share >/backupATTR.txt Code:
# cd / Problem: this did not set the attributes on the target files/directories: Code:
drwxrwx--- 6 BUILTIN\administrators users 4096 2024-02-08 21:07 Administrator/ I need to figure out a solution before the workers get back on Monday or I'll have to put the old machine back online. :( |
Solved! As it turns out, I didn't back up the acls for that directory. When I looked at my backup script again I saw that the acl backup for redirectedFolders was commented out. I did that over a year ago because the Slackare 14.2, [get|set]facl 2.2.52 could not restore acls properly. I posted a thread on this back then: https://www.linuxquestions.org/quest...ent-4175721430. No one had a solution, so I commented out the acl backup until I found a fix.
The current [get|set]facl 2.3.1 works, so I snagged the acls off the original system, restored them on the new system and voila! All is well. |
All times are GMT -5. The time now is 10:57 AM. |