[Samba] Samba and Rsync

Cameron Rangeley cameron.rangeley at turnstone.co.nz
Tue Dec 22 16:15:41 MST 2009


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.

Then I changed my samba from being in share mode to being in user mode and when I was browsing from my windows client test pc it asked for a username and password then no-matter what I entered (I did try root and cambo) it popped the same error message.

Error is

  '/home/storman/carda/email' does not exist or permission denied when connecting to [akemail] Error was Permission denied

Ls /home/folder/folder/folder/

drwxrwxrwx 2 cambo  cambo 4.0K Dec 23 04:01 email

Samba config file:

[global]
	admin users = none 
	create mask = 0666
	server string = Samba %v
	print command = lp -d %p %s
	security = user
	encrypt passwords = yes
	workgroup = CFD
	domain master = no
	local master = no
	preferred master = no
	os level = 0
	default case = lower
	preserve case = no
	browsable = yes

[akemail]
	path = /home/folder/folder/email
	guest ok = yes
	force user = cambo
	read only = no


Any Ideas?

-----Original Message-----
From: samba-bounces at lists.samba.org [mailto:samba-bounces at lists.samba.org] On Behalf Of Cameron Rangeley
Sent: Wednesday, 23 December 2009 11:59 a.m.
To: Lennart Sorensen
Cc: samba at lists.samba.org
Subject: Re: [Samba] Samba and Rsync

Good thought I will check that out thanks!!!!

CR





-----Original Message-----
From: Lennart Sorensen [mailto:lsorense at csclub.uwaterloo.ca] 
Sent: Wednesday, 23 December 2009 11:26 a.m.
To: Cameron Rangeley
Cc: samba at lists.samba.org
Subject: Re: [Samba] Samba and Rsync

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

--
This message was scanned by the Turnstone managed spam filter and is believed to be clean.

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba

--
This message was scanned by the Turnstone managed spam filter and is believed to be clean.



More information about the samba mailing list