LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Can't create folders in samba share files with win 7 (https://www.linuxquestions.org/questions/linux-newbie-8/cant-create-folders-in-samba-share-files-with-win-7-a-943641/)

BOTES 05-07-2012 04:39 AM

Can't create folders in samba share files with win 7
 
Hi
I am having trouble creating new folders on my samba shared folders. I'm working on windows 7 and when I try to create a new directory it says: You need permission to perform this action.

this is the folder I tried



[Dave]
path = /home/integritron/dave
comment = Dave
browseable = yes
writeable = yes
create mask = 0664
directory mask = 0775

camorri 05-07-2012 06:19 AM

I do not see any obvious problem with the part of the smb.conf file you posted.

Have a look at the ownership and permissions of the
Quote:

path = /home/integritron/dave
directory on the samba server. Sicne this is in /home, usually only the owner will have access. So it matters what samba user is trying to make the folder in 'dave'.

What security settings have you made in smb.conf?

BOTES 05-07-2012 06:43 AM

thank you

shashii82 06-13-2013 12:59 PM

No write permission on Samba share from Win7. Error: you need permission to perform this action.
 
Hello All,
It was really frustrating when I was not able to write or create folder in the Samba server share from windows 7. Reason SELINUX policies (^_^)

If you create a new directory you want to share you should mark it as
"samba_share_t" so that selinux will let you write into it. So, please make changes to your share i.e. something like below:

#chcon -t samba_share_t /path (where /path is your shared path on the server). Hope this will helps to all. Thanks!

conor999 02-26-2014 04:17 PM

Sorry for dragging up an old subject, but it is the closest I've found to my issue.

In my office, we have two windows 7 laptops, and a desktop that we've installed LAMP, and Samba on for sharing files and testing codes, runs Fedora 20.

We have two shares, one works flawlessly, but having trouble creating / deleting from the other.

We have an "s_user" that we created the true share under. configured in samba as:

[s_user]
path = /home/s_user
writeable = yes
create mode = 0770
directory mode = 0770
guest ok = no
valid users = usr1 usr2
force group = s_user

works flawlessly. Second share is www, and we are trying to use it to write php/sql scripts for a test server. set is up in /www rather than kicking around in /var/www, it is configured as:

[www]
path = /www
writeable = yes
create mode = 777
directory mode = 777
guest ok = no
valid users = usr1 usr2
force group = s_user

ls -Z shows the folder as:
drwxrwsrwx. root s_user system_u:object_r:public_content_rw_t:s0 www

however, from windows, we can't create / delete directories. Every time I drag a file over, I have to SSH into the FC20 desktop and chmod it to allow Apache to read it. I thought the "public_content_rw_t" allowed Samba and Apache to read the same directory?


All times are GMT -5. The time now is 02:34 PM.