Help - Search - Members - Calendar
Full Version: Samba and Windows 10
Linuxhelp > Support > Technical Support
Dbrabo
Hi All,

I am both new to Linux and to these forums so please excuse any silly questions that I might ask.

I tried posting this on the Centos forums but got no reply, so I am going to try here. I have a Centos 7 system in my home that I want to use as a local web server just for development and testing purposes, not to actually host web files. I will only access it from computers within the network. For that reason I would like to share the /var/www/html folder with my Windows machines. I have installed Samba and configured it to the best that I know how. Here is my smb.conf file:

CODE
#---------------Global---------------

netbios name = MYSERVER
workgroup = WORKGROUP
security = user
encrypt passwords = yes
wins support = yes
name resolve order = wins lmhosts host bcast
smb passwd file = /etc/samba/smbpasswd
interfaces = 192.168.100.0/20
unix charset = UTF-8
dos charset = CP932
hosts allow = 192.168.100.0/20
map to guest = Bad User
max protocol = smb2
log file = %s.log
log level = 3

[SHARE_html]
comment = shared web hosting directory
path = /var/www/html
writeable = yes
browsable = yes
create mask = 0770
force group = Share
public = yes
force create mode = 0770
valid users = Share DaveB
locking = yes


Here are the permissions for the html file:
CODE
[root@daveb-workgroup html]# ls -alv
total 4
drwxr-xr-x. 2 Share Share 17 Dec  7 12:14 .
drwxr-xr-x. 4 Share Share 31 Dec  7 09:10 ..


I tried to post part of the smb error log here, but my post was to long. I will post it in a reply.

When I try to access Share-html from Windows 10, I can access the computer by its IP address and see the share. I can also login using my credentials, but I get a permissions error if I try to open the shared folder. Windows tells me "You do not have permission to access 192.168.100.4\Share_html". I have been searching Google for the better part of 2 days. One person said they fixed it byt changing how their Workgroup was configured in Windows, but that is as close to an answer as I can find and it really doesn't help me much.

Can anyone here offer any insight?



michaelk
www.linuxquestions.org/questions/ubuntu-63/share-var-www-html-through-samba-4175513926/

This might help.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2017 Invision Power Services, Inc.