Hi there,
Is there any method (maybe throught shell ?) to reset user home folder permissions as done for shared folders on gui ?
Actually I’m trying to migrate our company old samba server to a new one with NS7…but when I rsync “old” home directories to new ones, with rsync -a /source /dest, rsync keeps original (old server) owner & group membership.
On the other hand, without the -a flag, rsync set owner and group to root:root and also this is not correct in my scenario.
I would like something to reset home folder permission (and its contents) for a particular user. Otherwise I need everytime to do something like :
find . -type d -exec chmod 770 {} +
find . -type f -exec chmod 660 {} +
and then issue a “chown -R new_user@XXXXXX:domain users@XXXXXX” against new home folder.
Any shortcut ?
Let me know
Finest Regards
Paolo