Форум обсуждения систем  

Вернуться   Форум обсуждения систем "Умный дом", проектов Ардуино, OpenWRT и других DIY устройств > Форум умного дома > Сделай сам > OpenWRT/LEDE

Ответ
 
Опции темы Поиск в этой теме Опции просмотра
Старый 11.02.2013, 20:54   #1
grevtsev
Junior Member
 
Регистрация: 10.02.2013
Сообщений: 10
Вес репутации: 0
grevtsev is an unknown quantity at this point
По умолчанию samba

помогите с конфигурацией

какая секция в каком фале отвечает за доступ записи на диск

а то читать получается а записать фиг
grevtsev вне форума   Ответить с цитированием
Старый 12.02.2013, 06:15   #2
andr128
Senior Member
 
Аватар для andr128
 
Регистрация: 16.09.2012
Адрес: Irkutsk
Сообщений: 555
Вес репутации: 1604
andr128 has a reputation beyond reputeandr128 has a reputation beyond reputeandr128 has a reputation beyond reputeandr128 has a reputation beyond reputeandr128 has a reputation beyond reputeandr128 has a reputation beyond reputeandr128 has a reputation beyond reputeandr128 has a reputation beyond reputeandr128 has a reputation beyond reputeandr128 has a reputation beyond reputeandr128 has a reputation beyond repute
По умолчанию

тык

Код:
.....
config 'sambashare'
        option 'name' 'Shares_NAS'
        option 'path' '/mnt/sdb1' 
        option 'guest_ok' 'yes'
        option 'create_mask' '0777'
        option 'dir_mask' '0777'
        option 'read_only' 'no'
....
Код:
/etc/init.d/samba stop
chmod -R 777 /mnt/sdb1
chown -R nobody /mnt/sdb1
/etc/init.d/samba start
andr128 вне форума   Ответить с цитированием
Старый 14.01.2014, 21:51   #3
Dimonchik
Member
 
Регистрация: 04.11.2013
Сообщений: 40
Вес репутации: 0
Dimonchik is an unknown quantity at this point
По умолчанию Re: samba

Доброго времени суток!
Кому не трудно будет скинуть конфиги на рабочей Samba,3й день долбусь,без толку
Dimonchik вне форума   Ответить с цитированием
Старый 05.01.2015, 23:44   #4
amod-cccp
Senior Member
 
Аватар для amod-cccp
 
Регистрация: 05.01.2013
Адрес: Беларусь
Сообщений: 241
Вес репутации: 633
amod-cccp has a reputation beyond reputeamod-cccp has a reputation beyond reputeamod-cccp has a reputation beyond reputeamod-cccp has a reputation beyond reputeamod-cccp has a reputation beyond reputeamod-cccp has a reputation beyond reputeamod-cccp has a reputation beyond reputeamod-cccp has a reputation beyond reputeamod-cccp has a reputation beyond reputeamod-cccp has a reputation beyond reputeamod-cccp has a reputation beyond repute
По умолчанию Re: samba

Приветствую всех!
Периодически появляются "трояны" на расшаренном USB HDD в виде файла с названием, таким же как папка. Как победить или прописать права на USB HDD? Дабы эта хрень не лезла!
__________________
Моя солянка на основе TL-MR3020.
amod-cccp вне форума   Ответить с цитированием
Старый 06.01.2015, 02:39   #5
melsem
Moderator
 
Регистрация: 19.10.2013
Сообщений: 479
Вес репутации: 599
melsem has much to be proud ofmelsem has much to be proud ofmelsem has much to be proud ofmelsem has much to be proud ofmelsem has much to be proud ofmelsem has much to be proud ofmelsem has much to be proud ofmelsem has much to be proud of
По умолчанию Re: samba

Только для чтения ставил?
Код:
config sambashare
	option name 'Media'
	option guest_ok 'yes'
	option create_mask '0644'
	option dir_mask '0777'
	option path '/home'
	option read_only 'yes'
melsem вне форума   Ответить с цитированием
Старый 06.01.2015, 20:31   #6
amod-cccp
Senior Member
 
Аватар для amod-cccp
 
Регистрация: 05.01.2013
Адрес: Беларусь
Сообщений: 241
Вес репутации: 633
amod-cccp has a reputation beyond reputeamod-cccp has a reputation beyond reputeamod-cccp has a reputation beyond reputeamod-cccp has a reputation beyond reputeamod-cccp has a reputation beyond reputeamod-cccp has a reputation beyond reputeamod-cccp has a reputation beyond reputeamod-cccp has a reputation beyond reputeamod-cccp has a reputation beyond reputeamod-cccp has a reputation beyond reputeamod-cccp has a reputation beyond repute
По умолчанию Re: samba

Вот мой:
Код:
config 'samba'
        option 'name' 'openwrt'
        option 'workgroup' 'openwrt'
        option 'description' 'openwrt'

config 'sambashare'
        option 'name' 'Shares_NAS' # Имя шары
        option 'path' '/mnt/sdb1'    # 2-я флэшка автомонтируется сюда*
#       option 'users' 'andrey'
        option 'guest_ok' 'yes'
        option 'create_mask' '0777'
        option 'dir_mask' '0777'
        option 'read_only' 'no' # or yes
__________________
Моя солянка на основе TL-MR3020.
amod-cccp вне форума   Ответить с цитированием
Старый 06.01.2015, 20:38   #7
melsem
Moderator
 
Регистрация: 19.10.2013
Сообщений: 479
Вес репутации: 599
melsem has much to be proud ofmelsem has much to be proud ofmelsem has much to be proud ofmelsem has much to be proud ofmelsem has much to be proud ofmelsem has much to be proud ofmelsem has much to be proud ofmelsem has much to be proud of
По умолчанию Re: samba

Для основного:
option read_only 'yes'
и вложенным:
option 'dir_mask' '0644'

Последний раз редактировалось melsem; 06.01.2015 в 20:44.
melsem вне форума   Ответить с цитированием
Ответ


Здесь присутствуют: 1 (пользователей: 0 , гостей: 1)
 

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.

Быстрый переход


Текущее время: 12:22. Часовой пояс GMT +3.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd. Перевод: zCarot
Яндекс.Метрика