Best way to share wwwroot with samba

Issues related to configuring your network
Post Reply
SomethingWicked
Posts: 1
Joined: 2014/04/20 17:04:30

Best way to share wwwroot with samba

Post by SomethingWicked » 2014/04/21 20:03:06

Hi there.
I'm wondering which is the best way to share my server's apache wwwroot to make my source files accessible from Windows.
These files have to be heavily and repeatedly changed through time from my windows environment.

So far I'm stuck with the config of smb.conf.
I added
[www]
path /var/www
browsable = yes
writable = yes
valid users = myuser //myuser user is a privileged user for whom I added samba password.

For the global - security detail I read in several places to switch
security = user
to
security = share
but in the comment of the sources it is written that it is deprecated...

After that I see that many people simply chmod all the to be shared dir to 777. I guess it is necessary because I have to be able to add files and directories from outside...

Thanks for any reply, I'm pretty new on the scene here and everything that comes up is something new that I learn. :)

Post Reply