LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Unifying permissions between two servers (CentOS + Webmin/CentOs +Cpanel) and rsync (https://www.linuxquestions.org/questions/linux-server-73/unifying-permissions-between-two-servers-centos-webmin-centos-cpanel-and-rsync-779270/)

d60eba 01-01-2010 12:47 PM

Unifying permissions between two servers (CentOS + Webmin/CentOs +Cpanel) and rsync
 
Hi,

I have two servers, both running CentOS, but one running Cpanel as the control panel and the other running Webmin.

I would like to sync the web folders using rsync. However, when I sync the files from the Cpanel host the permissions look as follows:

Code:

drwxr-x---  15 ecommend nobody  4.0K Nov 29 14:56 public_html
but that doesn't work on the Webmin server which needs the following:

Code:

drwxr-x--- 16 ecommend ecommend 4.0K Jan  1 18:32 public_html
It seems the Cpanel install has the group as 'nobody' whilst webmin has it the same as the file owner. I can fix this by running:

Code:

chown -R ecommend:ecommend
but as the file transfers will be frequent, I don't want the files to be inaccessible until chown is run.

So, what I really want to know is - how can I change things on the 'webmin' server so that files with ownership owner:nobody will run?

Thanks!

EricTRA 01-01-2010 12:55 PM

Hello,

I'm not sure if it's possible with rsync but I use Unison to synchronize files between servers and in my personal opinion it's a lot easier to use and has a lot more options. In my opinion worth to take a look at it.

Kind regards,

Eric


All times are GMT -5. The time now is 06:52 PM.