Matthias,
Sorry I should have wrote more details.
I agree with your message and I understand that template12 is not meant to
be a share.
What I tried to say is:
when I have this configuration:
[template12]
writable = yes
browsable = yes
valid users = alex
[alex]
path = /home/alex
copy = template12
I can see this error in /var/log/samba/log/smbd
[2016/04/25 16:44:14.719192, 0]
../lib/param/loadparm.c:966(lpcfg_service_ok)
WARNING: No path in service template12 - making it unavailable!
And I'm unable to access "alex".
But if I don't use "copy", then it works correctly:
[alex]
path = /home/alex
valid users = alex
Alexandre Klein
Tanuki Software, Ltd.
6-18-10-4F Nishi-Kasai, Edogawa-ku
Tokyo 134-0088 Japan
Tel: +81-3-3878-3211
Fax: +81-3-3878-0313
http://www.tanukisoftware.com
On Fri, Apr 22, 2016 at 5:10 PM, mathias dufresne <infractory at
gmail.com>
wrote:
> How to use copy:
> [template12]
> writable = yes
> browsable = yes
> valid users = andy, dave, jay
> [share1]
> path=/path/to/share1
> copy = template12
> [share2]
> path=/path/to/share2
> copy = template12
>
> Here template12 is a template and it used later for declaring shares
> share1 and share2.
>
> template (or in my example template12) is not meant to be used as a share
> because a share is a directory you are sharing. A directory is represented
> by a path. So without path to the directory you want to share, Samba
can't
> share anything because there is nothing to share...
>
>
> 2016-04-21 11:56 GMT+02:00 Alexandre Klein <
> alexandre.klein at tanukisoftware.com>:
>
>> Hello,
>>
>> Is the example for 'copy' (
>> https://www.samba.org/samba/docs/using_samba/ch06.html ) valid?
>> [template]
>> writable = yes
>> browsable = yes
>> valid users = andy, dave, jay
>>
>> When I'm trying a similar configuration, I can't log in and I
have this
>> message in log.smbd:
>> WARNING: No path in service template - making it unavailable!
>>
>> It seems I need to add a path:
>> [template]
>> writable = yes
>> browsable = yes
>> valid users = andy, dave, jay
>> path = /path/somewhere
>>
>> Or maybe there is something with the version of Samba that I'm
using:
>> 2:4.1.6+dfsg-1ubuntu2.14.04.11
>>
>> Regards,
>> Alexandre Klein
>> --
>> To unsubscribe from this list go to the following URL and read the
>> instructions: https://lists.samba.org/mailman/options/samba
>>
>
>