I messed up one of my partitions with chmod and setfacl commands . I want to undo all these commands .
I need normal ntfs volume default permissions . I'm running dual boot win10-lubuntu .
Chmod no longer works . Probably cause of chmod g+s .
root@nec-PC:/mnt# chmod 755 -c 01CFD131F13B1EE0
mode of '01CFD131F13B1EE0' changed from 0777 (rwxrwxrwx) to 0755 (rwxr-xr-x)
root@nec-PC:/mnt# chmod 755 -c 01CFD131F13B1EE0
mode of '01CFD131F13B1EE0' changed from 0777 (rwxrwxrwx) to 0755 (rwxr-xr-x)
root@nec-PC:/mnt# chmod 755 -c 01CFD131F13B1EE0
mode of '01CFD131F13B1EE0' changed from 0777 (rwxrwxrwx) to 0755 (rwxr-xr-x)
root@nec-PC:/mnt#
and on , and on but doesn't change anything .
edit: target partition has no OS installed .
History:
276 chmod 755 01CFD131F13B1EE8
277 chmod 755 01CFD131F13B1EE0
278 ls
279 cd 01CFD131F13B1EE0
280 ls
281 cd New folder
282 ls
283 cd ..
284 cd mnt
285 ls
286 chmod 755 -R 01CFD131F13B1EE0
287 man ls
288 ls
289 chmod g+s 01CFD131F13B1EE0
290 setfacl
291 setfacl -d -m g::rwx
292 setfacl -d -m g::rwx 01CFD131F13B1EE0
293 setfacl -d -m o::rx 01CFD131F13B1EE0
294 getfacl 01CFD131F13B1EE0
295 ls
296 sudo setfacl -d -m o::rx 01CFD131F13B1EE0
297 getfacl 01CFD131F13B1EE0
298 chmod g+s 01CFD131F13B1EE0
299 setfacl -d -m g::rwx 01CFD131F13B1EE0
300 setfacl -d -m o::rx 01CFD131F13B1EE0
301 getfacl 01CFD131F13B1EE0
This is pretty much it . As you may have noticed i'm not very good at these stuff .
sudo mount -t ntfs -o rw,auto,user,fmask=0022,dmask=0000 /dev/whatever /mnt/whatever
i tried this one both ways , no errors but no help either permission for files stuck 777 cannot get it back to 755 i need to undo chmod g+s somehow