Hi,
in the process of setting up my NAS I copied a lot of data from different sources into shared folders. Some of these files I copied as root. So now the file owner is root and I cant write on these files in samba shares. Other files have permission settings like 0777. I want to reset the permissions in all of my shared folders and I want to become owner of these files so that I can use them in samba shares.
Before I actually do this, I'd like to ask if this is the proper way or if I am missing something here...?
Code
find . -type d -exec chmod 775 {} \;
find . -type f -exec chmod 664 {} \;
chown -R <userName>:users .
Best,
Aiakos