Samba. Настройка видимости для разных интерфейсов.
Правила форума
Убедительная просьба юзать теги [code] при оформлении листингов.
Сообщения не оформленные должным образом имеют все шансы быть незамеченными.
Убедительная просьба юзать теги [code] при оформлении листингов.
Сообщения не оформленные должным образом имеют все шансы быть незамеченными.
-
- сержант
- Сообщения: 299
- Зарегистрирован: 2006-06-02 15:38:28
- Откуда: Харьков
Samba. Настройка видимости для разных интерфейсов.
Задача. Есть два интерфейса. Необходимо для каждого из них указать свои папки которые будут видны из сети. Как?
Услуги хостинговой компании Host-Food.ru
Тарифы на хостинг в России, от 12 рублей: https://www.host-food.ru/tariffs/hosting/
Тарифы на виртуальные сервера (VPS/VDS/KVM) в РФ, от 189 руб.: https://www.host-food.ru/tariffs/virtualny-server-vps/
Выделенные сервера, Россия, Москва, от 2000 рублей (HP Proliant G5, Intel Xeon E5430 (2.66GHz, Quad-Core, 12Mb), 8Gb RAM, 2x300Gb SAS HDD, P400i, 512Mb, BBU):
https://www.host-food.ru/tariffs/vydelennyi-server-ds/
Недорогие домены в популярных зонах: https://www.host-food.ru/domains/
Тарифы на виртуальные сервера (VPS/VDS/KVM) в РФ, от 189 руб.: https://www.host-food.ru/tariffs/virtualny-server-vps/
Выделенные сервера, Россия, Москва, от 2000 рублей (HP Proliant G5, Intel Xeon E5430 (2.66GHz, Quad-Core, 12Mb), 8Gb RAM, 2x300Gb SAS HDD, P400i, 512Mb, BBU):
https://www.host-food.ru/tariffs/vydelennyi-server-ds/
Недорогие домены в популярных зонах: https://www.host-food.ru/domains/
- Alex Keda
- стреляли...
- Сообщения: 35469
- Зарегистрирован: 2004-10-18 14:25:19
- Откуда: Made in USSR
- Контактная информация:
-
- проходил мимо
- Сообщения: 4
- Зарегистрирован: 2007-02-02 13:28:41
- Контактная информация:
- kolesya
- сержант
- Сообщения: 191
- Зарегистрирован: 2006-10-17 15:54:01
- Откуда: Украина, Киев
cat smb.conf
======================
...
hide files = /fu1*/fu2*/fu3*/ # делает файлы и папки скрытыми по маске fu1* и т.д.
veto files = /fu1*/fu2*/fu3*/ # запрещает доступ
...
======================
Есть правда косяк:
юзер заганяет файло на шару с именем fu4test.txt
переименовует его в fu3test.txt, при этом получает меседж типа "доступа нима", но файло всеравно переименовуется в fu3test.txt
======================
...
hide files = /fu1*/fu2*/fu3*/ # делает файлы и папки скрытыми по маске fu1* и т.д.
veto files = /fu1*/fu2*/fu3*/ # запрещает доступ
...
======================
Есть правда косяк:
юзер заганяет файло на шару с именем fu4test.txt
переименовует его в fu3test.txt, при этом получает меседж типа "доступа нима", но файло всеравно переименовуется в fu3test.txt
- kolesya
- сержант
- Сообщения: 191
- Зарегистрирован: 2006-10-17 15:54:01
- Откуда: Украина, Киев
блим ман курить нада ...
man smb.conf
/* S в скобках указывает что этот параметр относится к шарам */
======================================
hosts allow (S)
A synonym for this parameter is allow hosts.
This parameter is a comma, space, or tab delimited set of hosts
which are permitted to access a service.
If specified in the [global] section then it will apply to all
services, regardless of whether the individual service has a
different setting.
You can specify the hosts by name or IP number. For example, you
could restrict access to only the hosts on a Class C subnet with
something like allow hosts = 150.203.5.. The full syntax of the
list is described in the man page hosts_access(5). Note that
this man page may not be present on your system, so a brief
description will be given here also.
Note that the localhost address 127.0.0.1 will always be allowed
access unless specifically denied by a hosts deny option.
You can also specify hosts by network/netmask pairs and by net-
group names if your system supports netgroups. The EXCEPT key-
word can also be used to limit a wildcard list. The following
examples may provide some help:
Example 1: allow all IPs in 150.203.*.*; except one
hosts allow = 150.203. EXCEPT 150.203.6.66
Example 2: allow hosts that match the given network/netmask
hosts allow = 150.203.15.0/255.255.255.0
Example 3: allow a couple of hosts
hosts allow = lapland, arvidsjaur
======================================
man smb.conf
/* S в скобках указывает что этот параметр относится к шарам */
======================================
hosts allow (S)
A synonym for this parameter is allow hosts.
This parameter is a comma, space, or tab delimited set of hosts
which are permitted to access a service.
If specified in the [global] section then it will apply to all
services, regardless of whether the individual service has a
different setting.
You can specify the hosts by name or IP number. For example, you
could restrict access to only the hosts on a Class C subnet with
something like allow hosts = 150.203.5.. The full syntax of the
list is described in the man page hosts_access(5). Note that
this man page may not be present on your system, so a brief
description will be given here also.
Note that the localhost address 127.0.0.1 will always be allowed
access unless specifically denied by a hosts deny option.
You can also specify hosts by network/netmask pairs and by net-
group names if your system supports netgroups. The EXCEPT key-
word can also be used to limit a wildcard list. The following
examples may provide some help:
Example 1: allow all IPs in 150.203.*.*; except one
hosts allow = 150.203. EXCEPT 150.203.6.66
Example 2: allow hosts that match the given network/netmask
hosts allow = 150.203.15.0/255.255.255.0
Example 3: allow a couple of hosts
hosts allow = lapland, arvidsjaur
======================================