LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-08-2017, 02:32 PM   #1
thllgo
Member
 
Registered: Sep 2003
Location: Laurel MD
Posts: 296

Rep: Reputation: 32
Windows can mount a samba share but not write to it


Hello,
I have a samba share that Win 7 can mount but no permission to write.

I have been researching this and have tried everything I can find. I have a linux server CentOS 6.5, I have installed samba 3.6.9

My fstab looks like
Quote:
UUID=46cf...4bc /data ext4 defaults 1 2
My smb.conf file looks like
Quote:
workgroup = WORKGROUP
server string = samba server version %v
netbios name = fileshare
log file = /var/log/samba/log.%m
max log size = 50

security = user
passdb backend = tdbsam

[data]
comment = fileshare data dir
path = /data
browseable = yes
fead only = no
inherit acls = yes
inherit permissions = yes
create mask = 744
valid users = @smbusers
force group = solr
writeable = yes
Note I have also tried valid users = solr
in my smbusers file
Quote:
solr = solr
I have the user solr in my /etc/passwd file
I have run the command
smbpasswd -a solr

smbpasswd and passwd in OS passwd match
in group I have
Quote:
smbusers:x:507:solr
the /data dir is owned by the user solr and the group solr and I have set permissions to 777

from the windows box if I map a drive to \\fileshare\data using the user of fileshare\solr and it's password the drive maps and I can see everything, I just can't write to the share or modify, just browse.
If I look at permissions from the windows side it even says the owner is linux user fileshare\solr

I'm at a loss. I have another system that works just fine. I'm sure I've compared everything I can think of between the two and don't see a difference
Any help will be greatly appreciated, thank you
 
Old 05-08-2017, 04:10 PM   #2
thllgo
Member
 
Registered: Sep 2003
Location: Laurel MD
Posts: 296

Original Poster
Rep: Reputation: 32
Smile

found problem, selinux was turned on. I turned it off and all is well.

Thank you
 
  


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
can't mount samba share and then write to the share calbazon Linux - Software 8 10-10-2010 01:35 AM
mount windows share export to samba share -> improve network performance tuning newuser77 Linux - Server 1 07-23-2008 11:28 AM
Can not write to Samba share from Windows williams402 Linux - Newbie 2 02-27-2007 03:49 PM
Mount samba share at boot with user write permissions Wynd Linux - Software 2 08-21-2006 11:48 PM
Can't write to Samba share from Windows Needlotsahelp Linux - Newbie 3 07-30-2005 08:32 PM

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

All times are GMT -5. The time now is 10:36 AM.

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