Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a directory, /root/backup, that I mount and run a bunch of rysnc scripts against to backup my box. I'm running into a very recent problem where when I run this command:
I believe this is what is causing my rsync scripts to fail (they only copy over directories and not the files in those directorys and I get a lot of permissions failed errors)
sorry to reply to my own post - I have figured out the rsync issue - for some reason, centos didn't like the -xahP (works on my ubuntu laptop) but changing it to -xr copies the files (before the 'r', it still copied the entire directory structure recursively, just not the files).
So the mount showing up as a different user doesnt seem to affect this, but I am still curious why it changes owners when mounted...
I had thought about setting up one with less power, but then I ran into the issue that that user still needed a lot of power so that I can back up all of the users, root (I have some scripts I want preserved), and parts of some directories like rc, etc, httpd, etcetera...
But as the /mount/procs showed, it has the correct uid (0) but the mount ownership per the ls command is showing up as a different user, which had me concerned.
is the problem.
I think your system is choosing a different uid. I don't know why "www" is used as you posted before.
You should give "uid=0,gid=0,forceuid,forcegid".
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.