Doubts when using samba by the Nethserver panel

sharedfolders

(Douglas Nogueira) #1

How do I share an existing folder, for example the folder /var/www/html/ ???

I need to share some folders from the site and I can not get through the panel as it creates new folders.


(Davide Principi) #2

Quick answer is: you need a template-custom for smb.conf

Now the question is why do you want to share /var/www/html/? In NethServer 7 web sites are supposed to be served by the “Virtual host” module

http://docs.nethserver.org/en/v7/virtual_hosts.html


(Douglas Nogueira) #3

Hello! thanks for the feedback.

On my old server I use it directly in the /var/www/html folder without Virtual Hosts because I have only one site and one domain.

I would like to share to access through NetBeans via Windows mapping. I’ll check out the suggestion to use Virtual Hosts.


(Davide Principi) #4

Uh NetBeans? Are you a Java (and/or PHP) developer?

Please describe how do you want authenticate? Is it for a single user or group? What file/dir permissions are expected?


(Douglas Nogueira) #5

Hello @davidep! Sorry for the delay! lol

Today I have a web server with CentOS 6 pure, without the Nethserver package installed. On this server I share the / www folder for development personnel access through sharing on their own stations. They log on through authenticated users in Samba.

In Nethserver I would like to be able to share via samba an existing system folder, without using the one that will be created inside / ibay. With custom template do I get this?

For example, I create a Virtual Host in Apache and share the folder of this VHost via Samba without the need to access via FTP.


(Davide Principi) #6

Surely it can be achieved with a template-custom for /etc/samba/smb.conf, as documented here

http://docs.nethserver.org/projects/nethserver-devel/en/v7/templates.html#local-site-overrides-templates-custom-and-templates-user-custom