The most important thing for us NOOBS in a guide is a "tire jack and spare" for us to type when we get things screwed up, like we have with this CIFS/Samba3/Samba4.
Is there a command I can enter that will restore all permissions for Windows? Anything that I can use to restore sanity to my dataset is appreciated. I am also confused as to what flags/permissions need to be set/fixed.
I don't quite understand what the syntax represents and Google/Forums is sparse on the topic. I posted my failed experiments on another thread:
winacl -a reset -rp /mnt/tank
trying to reset everything recursively in tank
result: able to change some permissions and copy some files and folders, but not all: "you will need to provide administrative permission..."
winacl - add -rp /mnt/tank
not sure what "add" command is
result: same
[root@freenas ~]# winacl -a add -rp /mnt/windowsbackup/backup-password
winacl: invalid action
[root@freenas ~]# winacl -a update -rp /mntwindowsbackup/backup-password
[root@freenas ~]#
result: same problem
[root@freenas ~]# winacl -a reset -rxp /mnt/windowsbackup/backup-password
[root@freenas ~]#
result: same problem
[root@freenas ~]#
[root@freenas ~]# rsync -a /mnt/windowsbackup/backup-password/ /mnt/test2/datase
t2
result:
No files transferred, just the directory structure. Folders still "read only." Windows does not allow me to change permission to delete. Unable to delete dataset from FreeNAS GUI for several minutes "Busy" error. Finally worked.
Shell
es/Spain 2011/.Spain 2011 990.jpg.myZKTl" failed: Operation not permitted (1)
rsync: mkstemp "/mnt/test2/dataset2/backup2/jack dell 610/My Documents/My Pictur
es/Spain 2011/.Spain 2011 991.jpg.WUoYEA" failed: Operation not permitted (1)
rsync: mkstemp "/mnt/test2/dataset2/backup2/jack dell 610/My Documents/My Pictur
es/Spain 2011/.Spain 2011 992.jpg.1yOfMy" failed: Operation not permitted (1)
rsync: mkstemp "/mnt/test2/dataset2/backup2/jack dell 610/My Documents/My Pictur
es/Spain 2011/.Spain 2011 993.jpg.2u5ik8" failed: Operation not permitted (1)
rsync: mkstemp "/mnt/test2/dataset2/backup2/jack dell 610/My Documents/My Pictur
es/Spain 2011/.Spain 2011 994.jpg.TFbejz" failed: Operation not permitted (1)
rsync: mkstemp "/mnt/test2/dataset2/backup2/jack dell 610/My Documents/My Pictur
es/Spain 2011/.Spain 2011 995.jpg.FeillE" failed: Operation not permitted (1)
rsync: mkstemp "/mnt/test2/dataset2/backup2/jack dell 610/My Documents/My Pictur
es/Spain 2011/.Spain 2011 996.jpg.X96kf0" failed: Operation not permitted (1)
rsync: mkstemp "/mnt/test2/dataset2/backup2/jack dell 610/My Documents/My Pictur
es/Spain 2011/.Spain 2011 997.jpg.Pj2wt2" failed: Operation not permitted (1)
rsync: mkstemp "/mnt/test2/dataset2/backup2/jack dell 610/My Documents/My Pictur
es/Spain 2011/.Spain 2011 998.jpg.7bIkqJ" failed: Operation not permitted (1)
rsync: mkstemp "/mnt/test2/dataset2/backup2/jack dell 610/My Documents/My Pictur
es/Spain 2011/.Spain 2011 999.jpg.tylgQt" failed: Operation not permitted (1)
rsync: mkstemp "/mnt/test2/dataset2/backup2/jack dell 610/My Documents/My Pictur
es/Spain 2011/.Thumbs.db.NMExe4" failed: Operation not permitted (1)
rsync error: some files/attrs were not transferred (see previous errors) (code 2
3) at main.c(1053) [sender=3.0.9]
[root@freenas ~]#
[root@freenas ~]# rsync -rtl /mnt/windowsbackup/backup-password/backup2/ /mnt/te
st2/dataset2a/backup2/
[root@freenas ~]#
result: files transfer over but I am unable to change permissions on new dataset
[root@freenas ~]# cp -RL /mnt/windowsbackup/backup-password/backup2/ /mnt/test2/
dataset2a/backup2/
[root@freenas ~]#
result: files transfer but unable to to change permissions on new dataset
Any advice would be appreciated. For my situation it doesn't matter if I fix permissions in existing dataset or as the result of moving data to new volume/dataset.