no write access to subfolders of samba share
Hi.
I am using samba t share my files.I am sharing /media/MEDIA folder. it is a ntfs partition mounted with ntfs-3g with write/read access from linux. I can see and browse my shares and also create files in the root of this partition, ie /media/MEDIA, but in its subfolders i do not have write permissions. here is my samba.conf Code:
#======================= Global Settings ======================= another interesting thing is that i have permission to create directory and delete files everywhere and in any folder, subfolder but when trying to create files i get not enough free disk space error. any clues? by the way i dont know if this config file is correct, i find as template in internet. tnx |
well, i'm wondering is there a reason that you are using an NTFS partition for this? Samba can work just as easily with ext3?
|
Well. I just moved from windows to linux, so all my datas are in ntfs partitions.
And i want to share them with my network and also my virtual machine with windows xp guest. And as i still require somethimes to boot into my xp machine, converting ntfs partitions into ext3/ext4 are not a solution for me. PS. so does this mean my shares look ok? thanks. |
Hmm, your SAMBA file is a little heavy on the global definitions, and light on the share. I'm interested to know who would be allowed access to your share, since no-one is listed?
|
Code:
[docs-dave-laptop] |
thank you.
maybe the reason for my globals being this much is that i wanted to allow every user have access to my shares. i will try with yours and see what happens is there anyway i can find why samba rejected to copy files? ie any log files? the intresting thing is that i can copy small size files, like under 1kb but no more than that. also copying other files always give me not enough disk space error in windows. so it seems samba wrongly think disk space is limited. |
Quote:
and the put the following into your [DriveD] parameters: create mask = 0777 directory mask = 0777 security mask = 0777 directory security mask = 0777 Everyone can certainly jump in the pool to read write and execute once this is set. HTH |
In big multi-user shares it's useful to use the force group option. Otherwise directories created by a user will default to their default group*. Here's a quick example for users in a PICTURES group. To get access to the share users would have to be in the PICTURES group, and any files they wrote or saved would default to being owned by that group. The create mask and directory mask take care of the rest (as suggested above), ensuring everyone in that group has access to read & write the files. The execute bit is setup because samba likes it**.
[PICTURES] comment = Company Pictures path = /export/PICTURES valid users = @PICTURES public = no force group = PICTURES writable = yes create mask = 0770 directory mask = 2770 *Blatant oversimplification. **Blatant oversimplification. Look at the samba docs about unix to windows permissions if you really want to know. |
Hi again Roozbeh, I hope you got some good info from the other posts here. For me, if I was starting with a samba server like this, the first thing I would do is leave the global settings at default and slowly add features. The simplest way to allow everyone access to a share is to use
Code:
security = share Code:
map to guest = Bad User BTW, you have specified in the first line of your global section where your log file is, Quote:
|
All times are GMT -5. The time now is 03:44 AM. |