Find the answer to your Linux question:
Results 1 to 2 of 2
Hi If I chmod/chown my files to a specified owner that I have created, then I transfer my files to another system that have the same user with the same ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Apr 2013
    Posts
    70

    file rights question


    Hi

    If I chmod/chown my files to a specified owner that I have created, then I transfer my files to another system that have the same user with the same uid/gid, will the rights on files be kept ?

    chris_inx

  2. #2
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,353
    Quote Originally Posted by chris_inx View Post
    If I chmod/chown my files to a specified owner that I have created, then I transfer my files to another system that have the same user with the same uid/gid, will the rights on files be kept ?
    you could, but it depends on how you transfer it. for example, you could do it if you used rsync as root, as used the '-o' option to preserve file ownership, e.g.:

    Code:
    scp -o file root@remote_host:/tmp
    of course, root is usually not permitted to remotely log in, for security reasons.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •