LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-28-2009, 05:18 AM   #1
joh42231
LQ Newbie
 
Registered: Feb 2009
Distribution: ubuntu
Posts: 1

Rep: Reputation: 0
Question samba share denies permission to random files while copying


Hi

I have home server on CentOS 5.2 with Samba 3.0.28-1.el5_2.1 for sharing files on my network (WinXP and Ubuntu).

I have r/w permission to home share, I can create directory and copy files to the share, the problem is when I copy a whole directory from my Ubuntu box I get the following error (from Nautilus):

The folder "xxxxxx" cannot be copied because you do not have permissions to create it in the destination.

Even tough I have permission and I can create it, just doesn't happen when copying.

The same thing happens when I copy to /public share where "only guest = yes", and all files are owned by nobody. I don't think the problem is with the CentOS because if I do the same thing from a WinXP everything works fine.

this is how I have my shares defined:
Code:
	security = user
	passdb backend = tdbsam

[homes]
	comment = Home Directories
	browseable = yes
	writable = yes
	valid users = %S

[public]
	comment = Public Stuff
	path = /home/public
	public = yes
	writable = yes
	only guest = yes
my /etc/fstab on Ubuntu:
Code:
//192.168.0.1/public	/media/atompublic	smbfs credentials=/etc/samba/credentials3,uid=1000,rw 0 0
//192.168.0.1/ziga	/media/atomziga		smbfs credentials=/etc/samba/credentials3,uid=ziga,gid=ziga,file_mode=0777,dir_mode=0777,rw 0 0
thx for the help
 
Old 03-02-2009, 07:29 AM   #2
chitambira
Member
 
Registered: Oct 2008
Location: Online
Distribution: RHEL, Centos
Posts: 373
Blog Entries: 1

Rep: Reputation: 51
Are you running winbindd ? If you are the username is actually DOMAIN\user which won't match. You would need to do something like 'valid users = %D+%S'.

f you decide to use a path = line in your [homes] section, it may be useful to use the %S macro. For example:

path = /home/%S

is useful if you have different home directories for your PCs than for UNIX access.

This is a fast and simple way to give a large number of clients access to their home directories with a minimum of fuss.

A similar process occurs if the requested section name is “homes”, except that the share name is not changed to that of the requesting user. This method of using the [homes] section works well if different users share a client PC.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cant delete files from samba share from vista machine get permission error Elnegro8 Linux - Server 3 02-20-2009 07:17 AM
Samba Shares on Ubuntu 8.04 - Random Disconnects and Slow copying Zabzoo Linux - Server 1 12-11-2008 03:35 PM
Samba - dont have permission to browse samba share. Scrag Linux - Software 4 11-28-2006 01:42 AM
Help - My Samba share changes the timestamp when copying files to it.. Preserve Time. hheejj Linux - Software 2 06-28-2005 09:34 AM
Preserve file permissions when copying from NTFS to a Samba share? somedude Linux - Software 4 06-11-2004 09:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration