Answer the question
In order to leave comments, you need to log in
Samba create folder for allowed ip addresses?
Good day! Tell me, is it possible to create a samba config file on ubuntu, access to a specific folder from a specific ip-address? if so, please tell me what to write. thanks in advance, don't blame me much, I'm new to linux
Answer the question
In order to leave comments, you need to log in
It is impossible to access a specific folder by IP. Access is limited by user.
I haven't tried it, but if I did, I would try it like this:
I would read it here:
https://smb-conf.ru/include-g.html
https://www.samba.org/samba/docs/using_samba/ch06. html
about the "include smb.conf.%I" statements
(Table 6-2. Samba variables in the second link for details)
And create files with configs by IP addresses.
For example, we want to give ip=10.10.10.10 to the [porno] share:
In the main config:
include = smb.conf.%I
Make the file smb.conf.10.10.10.10
[porno]
browsable = yes
read only = yes
path = /usr/ local/samba/porno A
crutch of course, but if you're lucky, it will even work.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question