1
0
Fork 0
Scripts/un-ntfs.sh
2022-03-29 15:03:11 +02:00

8 lines
210 B
Bash
Executable file

#!/bin/bash
# Brutally reset file permissions to sane defaults for files/folders that have
# been tainted by a poorly mounted NTFS drive (777).
pushd "$1"
fdfind -t f -x chmod 644
fdfind -t d -x chmod 755
popd