, .. Windows . , Server Message Block(SMB). Windows ( .. (shared files) (shared printers)). Samba , UNIX - Windows .
Samba e :
Samba
TCP/IP , .
Samba ,
.
Samba ,
IP. ... Samba,
.
Samba :
#whereis smbd
smbd: /usr/sbin/smbd /usr/man/man8/smbd.8.gz /usr/share/man/man8/smbd.8.gz
, Samba . . , . Samba 3.0.2 http://www.samba.org.
Samba :
smbd SMB
,
inetd. ,
, Samba -
. Samba ,
/etc/services
:
netbios-ns 137/tcp nbns
netbios-ns 137/udp nbns
netbios-dgm 138/tcp nbdgm
netbios-dgm 138/udp nbdgm
netbios-ssn 139/tcp nbssn
Samba Slackware, :
#/etc/rc.d/rc.samba start
#/etc/rc.d/rc.samba stop
# etc/rc.d/rc.samba restart ( )
Red Hat /etc/rc.d/init.d/ smb.
Samba, . smb.conf, Slackware /etc/samba. , - /etc/.
smb.conf . , [global], [homes], [printers] ..
[global] , Samba .
[homes] ( ) Linux-. , Windows Windows , . , Linux-.
smb.conf , .
;/etc/smb.conf
[global]
; , ""
; guest account = nobody
log file = /var/log/samba-log.%m
lock directory = /var/lock/samba
workgroup = Class514
netbios name = Server514
server string = Class 514 - server resources
[homes]
comment = Home Directories
browseable = no
read only = no
create mode = 0750
[tmp]
comment = Temporary file space
path = /tmp
read only = no
public = yes