Skip to main content
Question

rsync scripting help - changing owner

  • January 22, 2020
  • 1 reply
  • 0 views

Forum|alt.badge.img+17
  • Valued Contributor
  • 178 replies

Hi all,
Trying to get a script put together to move data from one user account to a different one, and critically, update the file owner to the new user. I must be missing something silly, so hoping you all may have been down this road already!

So, I wanna do this:

rsync -rv —chmod=user2+rwX /Users/user1/Desktop/ /Users/user2/Desktop/

What am I doing wrong? Note I want to move the contents of Desktop, and not the whole folder...

Thanks!
Matt

1 reply

Forum|alt.badge.img+17
  • Author
  • Valued Contributor
  • 178 replies
  • January 22, 2020

Okay, so you can't use the --chmod= to change the user - this should have been obvious to me (chmod vs chown) lol :)


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings