syncing ownership and groups
Hello,
Recently, I was a complete doofus and changed all the ownership and group of all files in the home directory to a particular user and group. Luckily however I have a backup, but it is slightly old so there probably is some changes. So what I would like to do is to be able to "sync" the ownership and groups. Does anyone know of the best way to do this?
My current thinking is:
1) Use find to get all files in backup
2) Find the user and group
3) Apply this to the actual file
Not sure on the implementation though.
Thanks
Dan
|