Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-07-2012, 05:39 AM   #1
LQ Newbie
Registered: May 2012
Posts: 2

Rep: Reputation: Disabled
Can't create folders in samba share files with win 7

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

path = /home/integritron/dave
comment = Dave
browseable = yes
writeable = yes
create mask = 0664
directory mask = 0775
Old 05-07-2012, 07:19 AM   #2
LQ Guru
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1, 14.2
Posts: 5,172

Rep: Reputation: 526Reputation: 526Reputation: 526Reputation: 526Reputation: 526Reputation: 526
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
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?
Old 05-07-2012, 07:43 AM   #3
LQ Newbie
Registered: May 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled

thank you
Old 06-13-2013, 01:59 PM   #4
LQ Newbie
Registered: Jun 2013
Posts: 1

Rep: Reputation: Disabled
Talking 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!
Old 02-26-2014, 05:17 PM   #5
LQ Newbie
Registered: Feb 2014
Location: Alberta, Canada
Distribution: Fedora
Posts: 3

Rep: Reputation: Disabled
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:

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:

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_ubject_rublic_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?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
"cannot access files or folders of an NTFS Win XP share if their names contain space" ramanujank Linux - Newbie 2 09-03-2009 03:09 PM
Samba can create new files and folders but access denied in any new folders k.king Linux - Networking 2 01-15-2006 07:14 AM
Cannot create files on samba share jhoderd Linux - Software 2 01-04-2005 09:46 AM
files&folders permissions under SAMBA share shani Linux - Software 2 11-20-2003 12:48 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:17 AM.

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