Рабочий конфиг Samba для файлпомойки
Dec. 13th, 2009 10:33 am[global]
netbios name = FileServer #собственно то как машина будет видна у клиентов
workgroup = GLAGOL # виндовая рабочая группа в которой находится наш сервер
security = share # какой вариант идентификации пользователей будет юзать samba
display charset = koi8-r
unix charset = koi8-r
dos charset = cp866
#дальше идут папки которые собственно шары))#
[ATM_export]
path = /home/samba/ATM_export # наша папка
comment = ATM_export # комментарий к папке
writeable = yes # разрешение на запись
guest ok = yes # разрешаем гостевой доступ
guest user = nobody # гостевой пользователь.. для шары это nobody
[base]
path = /home/samba/base
comment = base
writeable = yes
guest ok = yes
guest user = nobody
[GP]
path = /home/samba/GP
comment = GP
writeable = yes
guest ok = yes
guest user = nobody
[Jingle]
path = /home/samba/Jingle
comment = Jingle
writeable = yes
guest ok = yes
guest user = nobody
[Music]
path = /home/samba/Music
comment = Music
writeable = yes
guest ok = yes
guest user = nobody[news]
path = /home/samba/news
comment = news
writeable = yes
guest ok = yes
guest user = nobody
[Obiyavlenia]
path = /home/samba/Obiyavlenia
comment = Obiyavlenia
writeable = yes
guest ok = yes
guest user = nobody
[Playlist_aleksandrovsk]
path = /home/samba/Playlist_aleksandrovsk
comment = Playlist_aleksandrovsk
writeable = yes
guest ok = yes
guest user = nobody
[Playlist_blagodarniy]
path = /home/samba/Playlist_blagodarniy
comment = Playlist_blagodarniy
writeable = yes
guest ok = yes
guest user = nobody
[Playlist_budenovsk]
path = /home/samba/Playlist_budenovsk
comment = Playlist_budenovsk
writeable = yes
guest ok = yes
guest user = nobody
[Playlist_ipatovo]
path = /home/samba/Playlist_ipatovo
comment = Playlist_ipatovo
writeable = yes
guest ok = yes
guest user = nobody
[Playlist_izobil]
path = /home/samba/Playlist_izobil
comment = Playlist_izobil
writeable = yes
guest ok = yes
guest user = nobody
[Playlist_neftekumsk]
path = /home/samba/Playlist_neftekumsk
comment = Playlist_neftekumsk
writeable = yes
guest ok = yes
guest user = nobody
[Playlist_Nevino]
path = /home/samba/Playlist_Nevino
comment = Playlist_Nevino
writeable = yes
guest ok = yes
guest user = nobody
[Playlist_novoaleksandrovsk]
path = /home/samba/Playlist_novoaleksandrovsk
comment = Playlist_novoaleksandrovsk
writeable = yes
guest ok = yes
guest user = nobody
[Playlist_piytigorsk]
path = /home/samba/Playlist_piytigorsk
comment = Playlist_piytigorsk
writeable = yes
guest ok = yes
guest user = nobody
[Playlist_stavropol]
path = /home/samba/Playlist_stavropol
comment = Playlist_stavropol
writeable = yes
guest ok = yes
guest user = nobody
[Playlist_svetlo]
path = /home/samba/Playlist_svetlo
comment = Playlist_svetlo
writeable = yes
guest ok = yes
guest user = nobody
[Pogoda]
path = /home/samba/Pogoda
comment = Pogoda
writeable = yes
guest ok = yes
guest user = nobody
[Radio]
path = /home/samba/Radio
comment = Radio
writeable = yes
guest ok = yes
guest user = nobody
[Reklama]
path = /home/samba/Reklama
comment = Reklama
writeable = yes
guest ok = yes
guest user = nobody
[root]
path = /home/samba/root
comment = root
writeable = yes
guest ok = yes
guest user = nobody
[Template_dorojnoe]
path = /home/samba/Template_dorojnoe
comment = Template_dorojnoe
writeable = yes
guest ok = yes
guest user = nobody
[Template_shanson]
path = /home/samba/Template_shanson
comment = Template_shanson
writeable = yes
guest ok = yes
guest user = nobody
[Template_vanya]
path = /home/samba/Template_vanya
comment = Template_vanya
writeable = yes
guest ok = yes
guest user = nobody
[Promo]
path = /home/samba/Promo
comment = Promo
writeable = yes
guest ok = yes
guest user = nobody
[Kstati]
path = /home/samba/Kstati
comment = Kstati
writeable = yes
guest ok = yes
guest user = nobody
Кстати папку /home/samba/* нужно отдать юзеру nobody
делаем
chown -R nobody /home/samba
netbios name = FileServer #собственно то как машина будет видна у клиентов
workgroup = GLAGOL # виндовая рабочая группа в которой находится наш сервер
security = share # какой вариант идентификации пользователей будет юзать samba
display charset = koi8-r
unix charset = koi8-r
dos charset = cp866
#дальше идут папки которые собственно шары))#
[ATM_export]
path = /home/samba/ATM_export # наша папка
comment = ATM_export # комментарий к папке
writeable = yes # разрешение на запись
guest ok = yes # разрешаем гостевой доступ
guest user = nobody # гостевой пользователь.. для шары это nobody
[base]
path = /home/samba/base
comment = base
writeable = yes
guest ok = yes
guest user = nobody
[GP]
path = /home/samba/GP
comment = GP
writeable = yes
guest ok = yes
guest user = nobody
[Jingle]
path = /home/samba/Jingle
comment = Jingle
writeable = yes
guest ok = yes
guest user = nobody
[Music]
path = /home/samba/Music
comment = Music
writeable = yes
guest ok = yes
guest user = nobody[news]
path = /home/samba/news
comment = news
writeable = yes
guest ok = yes
guest user = nobody
[Obiyavlenia]
path = /home/samba/Obiyavlenia
comment = Obiyavlenia
writeable = yes
guest ok = yes
guest user = nobody
[Playlist_aleksandrovsk]
path = /home/samba/Playlist_aleksandrovsk
comment = Playlist_aleksandrovsk
writeable = yes
guest ok = yes
guest user = nobody
[Playlist_blagodarniy]
path = /home/samba/Playlist_blagodarniy
comment = Playlist_blagodarniy
writeable = yes
guest ok = yes
guest user = nobody
[Playlist_budenovsk]
path = /home/samba/Playlist_budenovsk
comment = Playlist_budenovsk
writeable = yes
guest ok = yes
guest user = nobody
[Playlist_ipatovo]
path = /home/samba/Playlist_ipatovo
comment = Playlist_ipatovo
writeable = yes
guest ok = yes
guest user = nobody
[Playlist_izobil]
path = /home/samba/Playlist_izobil
comment = Playlist_izobil
writeable = yes
guest ok = yes
guest user = nobody
[Playlist_neftekumsk]
path = /home/samba/Playlist_neftekumsk
comment = Playlist_neftekumsk
writeable = yes
guest ok = yes
guest user = nobody
[Playlist_Nevino]
path = /home/samba/Playlist_Nevino
comment = Playlist_Nevino
writeable = yes
guest ok = yes
guest user = nobody
[Playlist_novoaleksandrovsk]
path = /home/samba/Playlist_novoaleksandrovsk
comment = Playlist_novoaleksandrovsk
writeable = yes
guest ok = yes
guest user = nobody
[Playlist_piytigorsk]
path = /home/samba/Playlist_piytigorsk
comment = Playlist_piytigorsk
writeable = yes
guest ok = yes
guest user = nobody
[Playlist_stavropol]
path = /home/samba/Playlist_stavropol
comment = Playlist_stavropol
writeable = yes
guest ok = yes
guest user = nobody
[Playlist_svetlo]
path = /home/samba/Playlist_svetlo
comment = Playlist_svetlo
writeable = yes
guest ok = yes
guest user = nobody
[Pogoda]
path = /home/samba/Pogoda
comment = Pogoda
writeable = yes
guest ok = yes
guest user = nobody
[Radio]
path = /home/samba/Radio
comment = Radio
writeable = yes
guest ok = yes
guest user = nobody
[Reklama]
path = /home/samba/Reklama
comment = Reklama
writeable = yes
guest ok = yes
guest user = nobody
[root]
path = /home/samba/root
comment = root
writeable = yes
guest ok = yes
guest user = nobody
[Template_dorojnoe]
path = /home/samba/Template_dorojnoe
comment = Template_dorojnoe
writeable = yes
guest ok = yes
guest user = nobody
[Template_shanson]
path = /home/samba/Template_shanson
comment = Template_shanson
writeable = yes
guest ok = yes
guest user = nobody
[Template_vanya]
path = /home/samba/Template_vanya
comment = Template_vanya
writeable = yes
guest ok = yes
guest user = nobody
[Promo]
path = /home/samba/Promo
comment = Promo
writeable = yes
guest ok = yes
guest user = nobody
[Kstati]
path = /home/samba/Kstati
comment = Kstati
writeable = yes
guest ok = yes
guest user = nobody
Кстати папку /home/samba/* нужно отдать юзеру nobody
делаем
chown -R nobody /home/samba