Hi Guys I am running two RHEL boxes, each day I am rsyncing some data from my primary server to my secondary server, the secondary server will be activated in a DR situation. I am rsyncing the entire /home partition. On my primary server there are about 8 samba shares for data that the clients can access all the samba shares point to various sub-directories within /home. My issue is that on my secondary server I cant connect to the shares from a windows workstation. My smb.conf file is the same as my primary server and to test I have created a test mount in /mnt/test and I can connect to that fine. It appears that the issue is all around the fact that these directories that have been created with rsync. My rsync command is: rsync -arzgopulv --delete /home root at 192.168.9.2:/ My smbd.log file says: '/home/folder/folder/folder does not exist or permission denied when connecting to [folder] Error was Permission denied. I can see the folder in samba I have forced the user as root and I have chmodded the folder to 777. Access from the console to these files and folders works fine. Has anyone got any other ideas that I can try? Thanks Cameron
On Wed, Dec 23, 2009 at 10:54:04AM +1300, Cameron Rangeley wrote:> I am running two RHEL boxes, each day I am rsyncing some data from my primary server to my secondary server, the secondary server will be activated in a DR situation. > > I am rsyncing the entire /home partition. > > On my primary server there are about 8 samba shares for data that the clients can access all the samba shares point to various sub-directories within /home. My issue is that on my secondary server I cant connect to the shares from a windows workstation. > > My smb.conf file is the same as my primary server and to test I have created a test mount in /mnt/test and I can connect to that fine. It appears that the issue is all around the fact that these directories that have been created with rsync. > > My rsync command is: rsync -arzgopulv --delete /home root at 192.168.9.2:/-a implies -r and -p (among others) so that's redundant.> My smbd.log file says: '/home/folder/folder/folder does not exist or permission denied when connecting to [folder] Error was Permission denied. > > I can see the folder in samba I have forced the user as root and I have chmodded the folder to 777. Access from the console to these files and folders works fine. > > Has anyone got any other ideas that I can try?ACL problem maybe? If you use posix ACLs then rsync -A will transfer those too. If you store ACL info in a samba database, you will have to transfer that somehow. -- Len Sorensen
Yes the user cambo is a man :) and is a member of several groups. I set the group just as a test to make this as open as possible, it dosent need to be there. CR -----Original Message----- From: Tom Peters [mailto:tpeters at mixcom.com] Sent: Wednesday, 23 December 2009 12:16 p.m. To: Cameron Rangeley Subject: Re: [Samba] Samba and Rsync At 12:15 PM 12/23/2009 +1300, you wrote:>So I added a new user names cambo then forced that user on the folder. Not >working > >I chown'ed cambo:cambo on my folder and still no go so as a last resort I >did a chmod 777 on the folder still not working.Wait, you have a user named cambo but also a GROUP named cambo?? Why? Do a cat /etc/group and see what group or groups your man (woman?) cambo is really in. ----- 719. [Romance] Men always want to be a woman's first love. Women have a more subtle instinct: What they like is to be a man's last romance. --Oscar Wilde --... ...-- -.. . -. ----. --.- --.- -... tpeters at nospam.mixcom.com (remove "nospam") N9QQB (amateur radio) "HEY YOU" (loud shouting) WEB: http://www.mixcom.com/tpeters 43? 7' 17.2" N by 88? 6' 28.9" W, Elevation 815', Grid Square EN53wc WAN/LAN/Telcom Analyst, Tech Writer, MCP, CCNA, Registered Linux User 385531 -- This message was scanned by the Turnstone managed spam filter and is believed to be clean.
Hi, are the unix and samba password data bases in sync on the two servers? I.e. do the same users (name:uid) exist in /etc/passwd and do the same users exist in Samba's password database (compare output of "pdbedit -L"). If the answer is no, you might run into problems with just syncing the data areas. Note that rsync (unless called with "--numeric-ids") tries to copy ownership of files by the owner's name. Read the section on "--numeric-ids" in the rsync man page for mor information. Cheers - Michael Cameron Rangeley wrote:> Hi Guys > > > > I am running two RHEL boxes, each day I am rsyncing some data from my primary server to my secondary server, the secondary server will be activated in a DR situation. > > > > I am rsyncing the entire /home partition. > > > > On my primary server there are about 8 samba shares for data that the clients can access all the samba shares point to various sub-directories within /home. My issue is that on my secondary server I cant connect to the shares from a windows workstation. > > > > My smb.conf file is the same as my primary server and to test I have created a test mount in /mnt/test and I can connect to that fine. It appears that the issue is all around the fact that these directories that have been created with rsync. > > > > My rsync command is: rsync -arzgopulv --delete /home root at 192.168.9.2:/ > > > > My smbd.log file says: '/home/folder/folder/folder does not exist or permission denied when connecting to [folder] Error was Permission denied. > > > > I can see the folder in samba I have forced the user as root and I have chmodded the folder to 777. Access from the console to these files and folders works fine. > > > > Has anyone got any other ideas that I can try? > > > Thanks > > > Cameron > > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba-------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 206 bytes Desc: not available URL: <http://lists.samba.org/pipermail/samba/attachments/20091229/a57bd4ac/attachment.pgp>