Имеется минимальный конфиг:
[server@dga-serv ~]$ cat /etc/samba/smb.conf
[global]
workgroup = WORKGROUP
security = user
[Pomoika]
path = /mnt/p1/
guest ok = yes
read only = No
проверяем конфиг:
[server@dga-serv ~]$ testparm -s /etc/samba/smb.conf
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[Pomoika]"
Loaded services file OK.
Server role: ROLE_STANDALONE
[global]
idmap config * : backend = tdb
[Pomoika]
path = /mnt/p1/
read only = No
guest ok = Yes
запускаем:
sudo systemctl start smbd nmbd
проверяем:
[server@dga-serv ~]$ ps -ef | grep smbd
root 1485 1 0 17:38 ? 00:00:00 /usr/bin/smbd -D
root 1488 1485 0 17:38 ? 00:00:00 /usr/bin/smbd -D
server 1616 1150 0 17:58 pts/0 00:00:00 grep smbd
[server@dga-serv ~]$ ps -ef | grep nmbd
root 1483 1 0 17:38 ? 00:00:00 /usr/bin/nmbd -D
server 1628 1150 0 17:59 pts/0 00:00:00 grep nmbd
Проверяем Samba:
[server@dga-serv ~]$ smbclient -L localhost -U%
protocol negotiation failed: NT_STATUS_CONNECTION_DISCONNECTED
Не работает :( Подскажите что я делаю не так?
Логи:
[server@dga-serv ~]$ sudo ss -npl | grep .mbd
u_str LISTEN 0 5 /var/run/samba/nmbd/unexpected 482754 * 0 users:(("nmbd",8515,28))
u_dgr UNCONN 0 0 * 482795 * 5805 users:(("smbd",8517,29))
tcp UNCONN 0 0 192.168.0.255:137 *:* users:(("nmbd",8515,25))
tcp UNCONN 0 0 192.168.0.1:137 *:* users:(("nmbd",8515,24))
tcp UNCONN 0 0 192.168.2.255:137 *:* users:(("nmbd",8515,21))
tcp UNCONN 0 0 192.168.2.1:137 *:* users:(("nmbd",8515,20))
tcp UNCONN 0 0 10.14.24.255:137 *:* users:(("nmbd",8515,17))
tcp UNCONN 0 0 10.14.24.244:137 *:* users:(("nmbd",8515,16))
tcp UNCONN 0 0 10.26.23.255:137 *:* users:(("nmbd",8515,13))
tcp UNCONN 0 0 10.26.23.78:137 *:* users:(("nmbd",8515,12))
tcp UNCONN 0 0 *:137 *:* users:(("nmbd",8515,10))
tcp UNCONN 0 0 192.168.0.255:138 *:* users:(("nmbd",8515,27))
tcp UNCONN 0 0 192.168.0.1:138 *:* users:(("nmbd",8515,26))
tcp UNCONN 0 0 192.168.2.255:138 *:* users:(("nmbd",8515,23))
tcp UNCONN 0 0 192.168.2.1:138 *:* users:(("nmbd",8515,22))
tcp UNCONN 0 0 10.14.24.255:138 *:* users:(("nmbd",8515,19))
tcp UNCONN 0 0 10.14.24.244:138 *:* users:(("nmbd",8515,18))
tcp UNCONN 0 0 10.26.23.255:138 *:* users:(("nmbd",8515,15))
tcp UNCONN 0 0 10.26.23.78:138 *:* users:(("nmbd",8515,14))
tcp UNCONN 0 0 *:138 *:* users:(("nmbd",8515,11))
tcp LISTEN 0 50 *:139 *:* users:(("smbd",8516,34))
tcp LISTEN 0 50 *:445 *:* users:(("smbd",8516,33))
tcp LISTEN 0 50 :::139 :::* users:(("smbd",8516,32))
tcp LISTEN 0 50 :::445 :::* users:(("smbd",8516,31))
[server@dga-serv ~]$ ls -l /mnt/
итого 16
drwxrwxrwx 2 root root 4096 мар 14 21:21 MEDIA
drwxrwxrwx 10 root root 4096 авг 11 18:55 mediateka
drwxrwxrwx 14 root root 4096 авг 20 15:53 p1
drwxrwxrwx 3 root root 4096 мар 13 18:38 tmp
[server@dga-serv ~]$ sudo cat /var/log/samba-log.smbd
[2013/08/20 17:03:32.950061, 0] ../source3/printing/print_cups.c:151(cups_connect)
Unable to connect to CUPS server /var/run/cups/cups.sock:631 - Нет такого файла или каталога
[2013/08/20 17:03:32.953251, 0] ../source3/printing/print_cups.c:528(cups_async_callback)
failed to retrieve printer list: NT_STATUS_UNSUCCESSFUL
[2013/08/20 17:04:32.827566, 0] ../source3/printing/print_cups.c:151(cups_connect)
Unable to connect to CUPS server /var/run/cups/cups.sock:631 - Нет такого файла или каталога
[2013/08/20 17:04:32.831894, 0] ../source3/printing/print_cups.c:528(cups_async_callback)
failed to retrieve printer list: NT_STATUS_UNSUCCESSFUL
ещё логи: log.nmbd: http://paste.ubuntu.com/6006451/
log.smbd: http://paste.ubuntu.com/6006464/
samba-log__1: http://paste.ubuntu.com/6006468/
samba-log.smbd: http://paste.ubuntu.com/6006472/
Все логи: http://yadi.sk/d/q94qDyz787Wpe