Обсуждение настройки и работы сервисов, резервирования, сетевых настроек и вопросов безопасности ОС для молодых и начинающих системных администраторов.
Модераторы: SLEDopit , Модераторы разделов
Alex181
Сообщения: 44
ОС: Linux RH
Сообщение
Alex181 » 17.03.2010 15:51
Доброго дня!
Разбираюсь в samba, хочу увидеть на Windows папку Linux server-а.
в логе такое сообщение
Код: Выделить всё
[2010/03/17 09:58:03, 0] smbd/server.c:1085(main) smbd version 3.5.1 started. Copyright Andrew Tridgell and the Samba Team 1992-2010 [2010/03/17 09:58:03.470510, 0] smbd/server.c:466(smbd_open_one_socket) smbd_open_once_socket: open_socket_in: Address already in use [2010/03/17 09:58:03.470942, 0] smbd/server.c:466(smbd_open_one_socket) smbd_open_once_socket: open_socket_in: Address already in use
открытые порты
Код: Выделить всё
Not shown: 993 closed ports
PORT STATE SERVICE
22/tcp open ssh
25/tcp open smtp
111/tcp open rpcbind
139/tcp open netbios-ssn
445/tcp open microsoft-ds
1521/tcp open oracle
2049/tcp open nfs
почему то 2 раза запускается, в чем особенность?
Код: Выделить всё
[root@inet /]# /sbin/service smb start
Starting SMB services: [ OK ]
Starting NMB services: [ OK ]
[root@inet /]#
[root@inet /]# ps -ae | grep smbd
13766 ? 00:00:00 smbd
13772 ? 00:00:00 smbd
[root@inet /]#
[root@inet /]# ps -ae | grep nmbd
13769 ? 00:00:00 nmbd
13770 ? 00:00:00 nmbd
guliver
Сообщения: 38
ОС: debian
Сообщение
guliver » 17.03.2010 16:25
конфиг самбы сюда
Alex181
Сообщения: 44
ОС: Linux RH
Сообщение
Alex181 » 17.03.2010 16:32
Код: Выделить всё
at smb.conf
[global]
workgroup = ALGROUP
printing = cups
printcap name = cups
load printers = yes
netbios name = inet
domain master = yes
domain logons = no
wins support = yes
security = user
[sharename]
path = /home/tom
read only = no
map archive = no
browseable=yes
writable = yes
public = no
writable = yes
printable = no
create mask = 0765
guliver
Сообщения: 38
ОС: debian
Сообщение
guliver » 17.03.2010 16:38
Дай команду netstat -antup | grep 139
netstat -a
guliver
Сообщения: 38
ОС: debian
Сообщение
guliver » 17.03.2010 16:44
выстави в секции global
например
interfaces = eth0
Alex181
Сообщения: 44
ОС: Linux RH
Сообщение
Alex181 » 17.03.2010 16:51
Код: Выделить всё
netstat -antup | grep 139
tcp 0 0 :::139 :::* LISTEN 3656/smbd
Код: Выделить всё
/sbin/service smb restart
Shutting down SMB services: [ OK ]
Shutting down NMB services: [ OK ]
Starting SMB services: [ OK ]
Starting NMB services: [ OK ]
[root@inet /]#
[root@inet /]# testparm
Load smb config files from /etc/samba/smb.conf
rlimit_max: rlimit_max (1024) below minimum Windows limit (16384)
Processing section "[sharename]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions
[global]
workgroup = ALGROUP
interfaces = eth1
printcap name = cups
domain master = Yes
wins support = Yes
[sharename]
path = /home/tom
read only = No
create mask = 0765
map archive = No
[root@inet /]# pwd
/
[root@inet /]# tail var/log/samba/log.smbd
smbd_open_once_socket: open_socket_in: Address already in use
[2010/03/17 16:58:56, 0] smbd/server.c:1085(main)
smbd version 3.5.1 started.
Copyright Andrew Tridgell and the Samba Team 1992-2010
[2010/03/17 16:58:56.820639, 0] smbd/server.c:1131(main)
standard input is not a socket, assuming -D option
[2010/03/17 16:58:56.829641, 0] smbd/server.c:466(smbd_open_one_socket)
smbd_open_once_socket: open_socket_in: Address already in use
[2010/03/17 16:58:56.829923, 0] smbd/server.c:466(smbd_open_one_socket)
smbd_open_once_socket: open_socket_in: Address already in use
guliver
Сообщения: 38
ОС: debian
Сообщение
guliver » 17.03.2010 16:53
остановите самбу и дайте команду
netstat -a
Alex181
Сообщения: 44
ОС: Linux RH
Сообщение
Alex181 » 17.03.2010 17:00
Код: Выделить всё
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 localhost.localdomain:2208 *:* LISTEN
tcp 0 0 *:48993 *:* LISTEN
tcp 0 0 *:nfs *:* LISTEN
tcp 0 0 *:931 *:* LISTEN
tcp 0 0 *:965 *:* LISTEN
tcp 0 0 *:tinc *:* LISTEN
tcp 0 0 *:sunrpc *:* LISTEN
tcp 0 0 *:ncube-lm *:* LISTEN
tcp 0 0 localhost.localdomain:ipp *:* LISTEN
tcp 0 0 *:smtp *:* LISTEN
tcp 0 0 localhost.localdomain:2207 *:* LISTEN
tcp 0 0 *:ssh *:* LISTEN
tcp 0 0 inet.office.macomn:ssh alex.office.macomn:pnbscada ESTABLISHED
udp 0 0 *:nfs *:*
udp 0 0 *:cadview-3d *:*
udp 0 0 *:hello-port *:*
udp 0 0 *:928 *:*
udp 0 0 *:39099 *:*
udp 0 0 *:962 *:*
udp 0 0 *:16601 *:*
udp 0 0 *:mdns *:*
udp 0 0 *:sunrpc *:*
udp 0 0 *:ipp *:*
udp 0 0 inet.office.ma:ntp *:*
udp 0 0 localhost.localdomain:ntp *:*
udp 0 0 *:ntp *:*
udp 0 0 *:mdns *:*
udp 0 0 *:7536 *:*
getnameinfo failed
udp 0 0 [UNKNOWN]:ntp *:*
getnameinfo failed
udp 0 0 [UNKNOWN]:ntp *:*
udp 0 0 *:ntp *:*
Active UNIX domain sockets (servers and established)
Proto RefCnt Flags Type State I-Node Path
unix 2 [ ACC ] STREAM LISTENING 10816 /tmp/.X11-unix/X0
unix 2 [ ACC ] STREAM LISTENING 8041 /tmp/.font-unix/fs7100
unix 2 [ ACC ] STREAM LISTENING 9885 @/tmp/fam-root-
unix 2 [ ACC ] STREAM LISTENING 10788 /tmp/.gdm_socket
unix 2 [ ACC ] STREAM LISTENING 6252 /var/run/multipathd.sock
unix 2 [ ACC ] STREAM LISTENING 6466 /var/run/audispd_events
unix 2 [ ACC ] STREAM LISTENING 7079 /var/run/dbus/system_bus_socket
unix 2 [ ACC ] STREAM LISTENING 7159 /var/run/sdp
unix 2 [ ACC ] STREAM LISTENING 7283 /var/run/pcscd.comm
unix 2 [ ACC ] STREAM LISTENING 8234 @/var/run/hald/dbus-HcZAlxjTX6
unix 2 [ ACC ] STREAM LISTENING 7408 /var/run/acpid.socket
unix 25 [ ] DGRAM 6692 /dev/log
unix 2 [ ACC ] STREAM LISTENING 7524 /var/run/cups/cups.sock
unix 2 [ ACC ] STREAM LISTENING 9869 /var/tmp/.oracle/sEXTPROC1
unix 2 [ ACC ] STREAM LISTENING 7981 /dev/gpmctl
unix 2 [ ACC ] STREAM LISTENING 9871 /var/tmp/.oracle/s#3146.1
unix 2 [ ACC ] STREAM LISTENING 9874 /var/tmp/.oracle/s#3146.2
unix 2 [ ACC ] STREAM LISTENING 8201 /var/run/avahi-daemon/socket
unix 2 [ ACC ] STREAM LISTENING 7829 public/cleanup
unix 2 [ ACC ] STREAM LISTENING 7836 private/tlsmgr
unix 2 [ ACC ] STREAM LISTENING 7840 private/rewrite
unix 2 [ ACC ] STREAM LISTENING 7844 private/bounce
unix 2 [ ACC ] STREAM LISTENING 7848 private/defer
unix 2 [ ACC ] STREAM LISTENING 7852 private/trace
unix 2 [ ACC ] STREAM LISTENING 7856 private/verify
unix 2 [ ACC ] STREAM LISTENING 7860 public/flush
unix 2 [ ACC ] STREAM LISTENING 7864 private/proxymap
unix 2 [ ACC ] STREAM LISTENING 7871 private/smtp
unix 2 [ ACC ] STREAM LISTENING 7875 private/relay
unix 2 [ ACC ] STREAM LISTENING 7879 public/showq
unix 2 [ ACC ] STREAM LISTENING 7883 private/error
unix 2 [ ACC ] STREAM LISTENING 7887 private/discard
unix 2 [ ACC ] STREAM LISTENING 7891 private/local
unix 2 [ ACC ] STREAM LISTENING 7897 private/virtual
unix 2 [ ACC ] STREAM LISTENING 7901 private/lmtp
unix 2 [ ACC ] STREAM LISTENING 7905 private/anvil
unix 2 [ ACC ] STREAM LISTENING 7909 private/scache
unix 2 [ ACC ] STREAM LISTENING 7913 private/maildrop
unix 2 [ ACC ] STREAM LISTENING 7917 private/old-cyrus
unix 2 [ ACC ] STREAM LISTENING 7921 private/cyrus
unix 2 [ ACC ] STREAM LISTENING 7925 private/uucp
unix 2 [ ACC ] STREAM LISTENING 7929 private/ifmail
unix 2 [ ACC ] STREAM LISTENING 7933 private/bsmtp
unix 2 [ ] DGRAM 1459 @/org/kernel/udev/udevd
unix 2 [ ] DGRAM 8243 @/org/freedesktop/hal/udev_event
unix 2 [ ACC ] STREAM LISTENING 8235 @/var/run/hald/dbus-bT4yKGuHT8
unix 2 [ ] DGRAM 11459
unix 3 [ ] STREAM CONNECTED 11398
unix 3 [ ] STREAM CONNECTED 11397
unix 2 [ ] DGRAM 11393
unix 3 [ ] STREAM CONNECTED 11133 /tmp/.X11-unix/X0
unix 3 [ ] STREAM CONNECTED 11132
unix 3 [ ] STREAM CONNECTED 11089 /tmp/.X11-unix/X0
unix 3 [ ] STREAM CONNECTED 11088
unix 3 [ ] STREAM CONNECTED 11065 /tmp/.font-unix/fs7100
unix 3 [ ] STREAM CONNECTED 11064
unix 3 [ ] STREAM CONNECTED 10844 /var/run/pcscd.comm
unix 3 [ ] STREAM CONNECTED 10843
unix 3 [ ] STREAM CONNECTED 10830 /var/run/acpid.socket
unix 3 [ ] STREAM CONNECTED 10829
unix 3 [ ] STREAM CONNECTED 11068 /tmp/.X11-unix/X0
unix 3 [ ] STREAM CONNECTED 10820
unix 2 [ ] DGRAM 10810
unix 3 [ ] STREAM CONNECTED 9888 @/tmp/fam-root-
unix 3 [ ] STREAM CONNECTED 9887
unix 3 [ ] STREAM CONNECTED 9878 /var/run/dbus/system_bus_socket
unix 3 [ ] STREAM CONNECTED 9877
unix 2 [ ] DGRAM 9839
unix 3 [ ] STREAM CONNECTED 9824 /var/run/dbus/system_bus_socket
unix 3 [ ] STREAM CONNECTED 9823
unix 3 [ ] STREAM CONNECTED 9818 /var/run/dbus/system_bus_socket
unix 3 [ ] STREAM CONNECTED 9817
unix 3 [ ] STREAM CONNECTED 9785 /var/run/dbus/system_bus_socket
unix 3 [ ] STREAM CONNECTED 9784
unix 2 [ ] DGRAM 9781
unix 3 [ ] STREAM CONNECTED 9744 /var/run/dbus/system_bus_socket
unix 3 [ ] STREAM CONNECTED 9743
unix 3 [ ] STREAM CONNECTED 9680 @/var/run/hald/dbus-HcZAlxjTX6
unix 3 [ ] STREAM CONNECTED 9679
unix 3 [ ] STREAM CONNECTED 9505 @/var/run/hald/dbus-HcZAlxjTX6
unix 3 [ ] STREAM CONNECTED 9504
unix 3 [ ] STREAM CONNECTED 9484 /var/run/acpid.socket
unix 3 [ ] STREAM CONNECTED 9483
unix 3 [ ] STREAM CONNECTED 9461 @/var/run/hald/dbus-HcZAlxjTX6
unix 3 [ ] STREAM CONNECTED 9460
unix 3 [ ] STREAM CONNECTED 8238 @/var/run/hald/dbus-bT4yKGuHT8
unix 3 [ ] STREAM CONNECTED 8237
unix 3 [ ] STREAM CONNECTED 8204 /var/run/dbus/system_bus_socket
unix 3 [ ] STREAM CONNECTED 8203
unix 3 [ ] STREAM CONNECTED 8198
unix 3 [ ] STREAM CONNECTED 8197
unix 2 [ ] DGRAM 8195
unix 2 [ ] DGRAM 8003
unix 2 [ ] DGRAM 7993
unix 2 [ ] DGRAM 7965
unix 2 [ ] DGRAM 7940
unix 3 [ ] STREAM CONNECTED 7936
unix 3 [ ] STREAM CONNECTED 7935
unix 3 [ ] STREAM CONNECTED 7932
unix 3 [ ] STREAM CONNECTED 7931
unix 3 [ ] STREAM CONNECTED 7928
unix 3 [ ] STREAM CONNECTED 7927
unix 3 [ ] STREAM CONNECTED 7924
unix 3 [ ] STREAM CONNECTED 7923
unix 3 [ ] STREAM CONNECTED 7920
unix 3 [ ] STREAM CONNECTED 7919
unix 3 [ ] STREAM CONNECTED 7916
unix 3 [ ] STREAM CONNECTED 7915
unix 3 [ ] STREAM CONNECTED 7912
unix 3 [ ] STREAM CONNECTED 7911
unix 3 [ ] STREAM CONNECTED 7908
unix 3 [ ] STREAM CONNECTED 7907
unix 3 [ ] STREAM CONNECTED 7904
unix 3 [ ] STREAM CONNECTED 7903
unix 3 [ ] STREAM CONNECTED 7900
unix 3 [ ] STREAM CONNECTED 7899
unix 3 [ ] STREAM CONNECTED 7896
unix 3 [ ] STREAM CONNECTED 7895
unix 3 [ ] STREAM CONNECTED 7890
unix 3 [ ] STREAM CONNECTED 7889
unix 3 [ ] STREAM CONNECTED 7886
unix 3 [ ] STREAM CONNECTED 7885
unix 3 [ ] STREAM CONNECTED 7882
unix 3 [ ] STREAM CONNECTED 7881
unix 3 [ ] STREAM CONNECTED 7878
unix 3 [ ] STREAM CONNECTED 7877
unix 3 [ ] STREAM CONNECTED 7874
unix 3 [ ] STREAM CONNECTED 7873
unix 3 [ ] STREAM CONNECTED 7870
unix 3 [ ] STREAM CONNECTED 7869
unix 3 [ ] STREAM CONNECTED 7863
unix 3 [ ] STREAM CONNECTED 7862
unix 3 [ ] STREAM CONNECTED 7859
unix 3 [ ] STREAM CONNECTED 7858
unix 3 [ ] STREAM CONNECTED 7855
unix 3 [ ] STREAM CONNECTED 7854
unix 3 [ ] STREAM CONNECTED 7851
unix 3 [ ] STREAM CONNECTED 7850
unix 3 [ ] STREAM CONNECTED 7847
unix 3 [ ] STREAM CONNECTED 7846
unix 3 [ ] STREAM CONNECTED 7843
unix 3 [ ] STREAM CONNECTED 7842
unix 3 [ ] STREAM CONNECTED 7839
unix 3 [ ] STREAM CONNECTED 7838
unix 3 [ ] STREAM CONNECTED 7835
unix 3 [ ] STREAM CONNECTED 7834
unix 3 [ ] STREAM CONNECTED 7832
unix 3 [ ] STREAM CONNECTED 7831
unix 3 [ ] STREAM CONNECTED 7828
unix 3 [ ] STREAM CONNECTED 7827
unix 3 [ ] STREAM CONNECTED 7825
unix 3 [ ] STREAM CONNECTED 7824
unix 2 [ ] DGRAM 7800
unix 2 [ ] DGRAM 7638
unix 2 [ ] DGRAM 7584
unix 2 [ ] DGRAM 7566
unix 2 [ ] DGRAM 7434
unix 2 [ ] DGRAM 7365
unix 2 [ ] DGRAM 7313
unix 2 [ ] DGRAM 7282
unix 3 [ ] STREAM CONNECTED 7155 /var/run/dbus/system_bus_socket
unix 3 [ ] STREAM CONNECTED 7154
unix 2 [ ] DGRAM 7127
unix 2 [ ] DGRAM 7117
unix 3 [ ] STREAM CONNECTED 7092
unix 3 [ ] STREAM CONNECTED 7091
unix 3 [ ] STREAM CONNECTED 7039
unix 4 [ ] STREAM CONNECTED 7038
unix 2 [ ] DGRAM 6929
unix 2 [ ] DGRAM 6738
unix 2 [ ] DGRAM 6718
unix 3 [ ] STREAM CONNECTED 6458
unix 3 [ ] STREAM CONNECTED 6457
guliver
Сообщения: 38
ОС: debian
Сообщение
guliver » 17.03.2010 17:05
остановите службу nfs и попробуйте пускануть самбу
Alex181
Сообщения: 44
ОС: Linux RH
Сообщение
Alex181 » 17.03.2010 17:10
не выходит
Код: Выделить всё
tail var/log/samba/log.smbd
smbd_open_once_socket: open_socket_in: Address already in use
[2010/03/17 17:19:14, 0] smbd/server.c:1085(main)
smbd version 3.5.1 started.
Copyright Andrew Tridgell and the Samba Team 1992-2010
[2010/03/17 17:19:14.665070, 0] smbd/server.c:1131(main)
standard input is not a socket, assuming -D option
[2010/03/17 17:19:14.674055, 0] smbd/server.c:466(smbd_open_one_socket)
smbd_open_once_socket: open_socket_in: Address already in use
[2010/03/17 17:19:14.674337, 0] smbd/server.c:466(smbd_open_one_socket)
smbd_open_once_socket: open_socket_in: Address already in use
guliver
Сообщения: 38
ОС: debian
Сообщение
guliver » 17.03.2010 17:15
поставьте SWAT и настройте с него
mieczeslaw
Сообщения: 139
ОС: xubuntu 12.10
Сообщение
mieczeslaw » 22.03.2010 08:48
guliver писал(а): ↑ 17.03.2010 17:15
поставьте SWAT и настройте с него
Или Webmin. Хотя у него функции одной самбой не ограничиваются.