8 Samba Windows Microsoft Wi n d o w s U N I X Wi n d o w s U N I X Wi n d o w P C Wi n d o w s U N I X Wi n d o w s T C P / I P S a m b a N e t B I O S M i c r o s o f t I B M N e t B E U I T C P / I P T C P / I N e t B I O S W I N S N e t B I O S T C P / I P M i c r o s o f t I n t e r n e t Common Internet File System N e t B I O S S a m b a U N I X T C P / I P N e t B I O S fork ( ) S a m b a S a m b a U N I X Windows NT Red Hat Linux S a m b a S a m b a L i n u x N e t B I O S Red Hat Linix 6.0 S a m b a s a m b a - 2.0.5a-1.i386.rpm S a m b a S a m b a S a m b We b h t t p :// w w w. s a m b a. o rg S a m b a Wi n d o w s 8.1 Samba S a m b a S a m b Windows NT S a m b a Windows NT Service Pa c k 3 S a m b a S a m b a / e t c / p a s s w d / e t c / s h a d o w D E S S a m b a Windows NT Service Pack3 Windows 98
130 Red Hat Linux 6 encrypt passwords = yes smb passwd file = /etc/smbpasswd / e t c / s m b. c o n f 65 6 6 S a m b a /etc/rc.d/init.d/smb restart S a m b a / e t c / s m b p a s s w d l u s e r / e t c / p a s s w d / e t c / s m b p a s s w d / e t c / s m b p a s s w d s m b p a s s w d S a m b a / e t c / s m b p a s s w d / e t c / s m b. c o n f cat /etc/passwd /usr/bin/mksmbpasswd.sh /etc/smbpsswd chmod 600 /etc/smbpasswd / e t c / s m b p a s s w d / e t c / s m b. c o n f update encrypted = yes smb passwd file = /etc/smbpasswd S a m b a /etc/rc.d/init.d/smb restart Windows 95 / e t c / s m b p a s s w d / e t c / s m b. c o n f update encrypted = yes e n c r y p t passwords = yes S a m b a S a m b a
8 S a m b a Wi n d o w s 131 8.2 Windows 95 Windows 98 Windows NT Windows NT Windows 95/98 / Wi n d o w s S a m b a U N I X / e t c / s m b. c o n f 79 username map = /etc/smbusers / e t c / s m b u s e r s Samba RPM / e t c / s m b u s e r s r o o t n o b o d y 8.3 Samba Windows NT B I O S master browser Windows NT Windows NT N T Windows NT Windows NT S a m b a / e t c / s m b. c o n f 8.4 Samba / e t c / s m b. c o n f workgroup = MYGROUP S a m b a L M G O S T S I P Wi n d o w s Windows 95/98 \ w i n d o w s
132 Red Hat Linux 6 N T L M H O S T. S A M L M G O S T S L M G O S T S S a m b a L M H O S T S 1.2.3.4 remotehost # PRE # P R E Wi n d o w s L M H O S T S D O nbtstat -R Wi n d o w s L M H O S T S W I N S a m b a N T D H C P 2 S a m b a W I N S S a m b a S a m b a T C P / I P Wi n d o w s Windows 95 T C P / I P Windows 95/98 S a m b a Wi n d o w s M i c r o s o f t T C P / I P Wi n d o w s 8.4.1 S a m b a H O M E Wi n d o w s \ \ r e m o t e h o s t \ l u s e r r e m o t e h o s t Red Hat Samba l u s e r / e t c / s m b. c o n f / e t c / s m b. c o n f / e t c / g r o u p s t a ff / e t c / p a s s w d U N I X s t a ff
8 S a m b a Wi n d o w s 133 Wi n d o w s Windows 95/98 My Computer Map Network Drive 8-1 8-1 Windows 95/98 8-2 Windows 95/98 8-3 Windows 95/98
134 Red Hat Linux 6 8-2 8-3 Windows NT 8-4 8-4 Windows NT Windows NT Connect As 8-5 Windows 95/98 8-5 Windows NT 8-6 8-6 Windows NT
8 S a m b a Wi n d o w s 135 8.4.2 / e t c / s m b. c o n f S a m b a / e t c / s m b. c o n f / e t c / s m b. c o n f Red Hat RPM S a m b a 8.5 Linux NetBIOS Windows NT L i n u x 8.5.1 N T 9 5 / 98 T C P / I P s m b m o u n t m o u n n t h o s t d a t a / m n t
136 Red Hat Linux 6 smbmount //nhost/data -c 'mount /mnt' / m n t N T r o o t n t h o s t - U smbmount //nthost/data -U luser -c 'mount/mnt' - l I P smbmount //nthost/data -l nthost.com -c 'mount /mnt' N T U N I X N T FAT N T F S U N I X L i n u x 8.5.2 smbmount //nthost/data -U luser -l nthost.com -c 'mount /mnt -u 500 -g 500 -f 644 -d 755' smbmount //nthost/data /mnt -U luser -l nthost.com -u 500 -g 500 -f 644 -d 755 Red Hat Linux 6.0 Wi n d o w s L i n u x X w i n d o w p r i n t t o o l 8-7 8-7 Red Hat Linux A d d 8-8 Lan Manager Printer O K 8-9 O K
8 S a m b a Wi n d o w s 137 8-1 0 O K 8-11 Wi n d o w s lpr-plp0 /etc/passwd N T l p - P 8-8 8-9 8-10 SMB S h e l l Wi n d o w s w i n p r i n t
138 Red Hat Linux 6 8-11 Red Hat Linux w i n p r i n t winprint /etc/passwd /etc/group /etc/hosts S M B S h e l l ""; rm-rf/