SAMBA??? - PowerPoint PPT Presentation

1 / 47
About This Presentation
Title:

SAMBA???

Description:

smbstatus jack_at_main-server ~$ smbstatus Samba version 3.0.26a PID Username Group Machine ... – PowerPoint PPT presentation

Number of Views:193
Avg rating:3.0/5.0
Slides: 48
Provided by: tkwuNettk
Category:
Tags: samba | openvms

less

Transcript and Presenter's Notes

Title: SAMBA???


1
(No Transcript)
2
SAMBA???
19
  • 19-1 SAMBA??
  • 19-2 SAMBA????
  • 19-3 ????????
  • 19-4 SWAT????

3
19-1 SAMBA??
4
SMB
  • SMB???CIFS????
  • SMB????????Microsoft?Intel????????
  • SMB????????????
  • ??SMB??Linux?Windows?????,????????????????????????
    ??????????????

5
SMB???
  • ????SMB?????????????????Windows????,????????????,?
    ???????????????????,?????????SMB???,??????UNC?????
    ?

6
SMB???
  • SMB?????????SMB????????,?Ubuntu??SMB?????SAMBA?
  • SAMBA??Andrew Tridgell??????????SMB???,?????Unix?O
    penVMS?Unix-Like?????????SAMBA??,???Unix/Linux????
    ??SMB????,????????????

7
SAMBA??
  • smbd
  • nmbd
  • smbclient
  • testparm
  • smb.conf
  • smbprint

8
??SAMBA?????
apt-get install samba
9
??/??/????SAMBA
  • jack_at_main-server sudo /etc/init.d/samba stop
  • Stopping Samba daemons... ok
  • jack_at_main-server sudo /etc/init.d/samba start
  • Starting Samba daemons... ok
  • jack_at_main-server sudo /etc/init.d/samba
    restart
  • Stopping Samba daemons... ok
  • Starting Samba daemons... ok

service smbd restart service nmbd restart
10
19-2 SAMBA????
11
smb.conf????? (from??)
  • a??????,??Samba?WfWg?Win95?WinNT?Win2k?OS2??
  • d?????????ID?(Process IDentification,PID)
  • D???????
  • gu??????
  • GU??????
  • hSamba????(HOSTNAME)
  • Hu???
  • I???IP??
  • LSamba???NetBIOS??
  • m???NetBIOS??

12
??????
  • workgroup TKWU

13
SAMBA????
  • Share?????
  • User?????
  • Server?????
  • Domain?????

14
??????(?)
  • wins support no
  • wins server w.x.y.z
  • name resolve order lmhosts host wins bcast
  • interfaces 127.0.0.1/8 eth0
  • security share
  • unix password sync no
  • passwd program /usr/bin/passwd u
  • logon path \\N\Profiles\U
  • logon script logon.cmd

15
(No Transcript)
16
(No Transcript)
17
(No Transcript)
18
??????(?)
  • wins support no
  • wins server w.x.y.z
  • name resolve order lmhosts host wins bcast
  • interfaces 127.0.0.1/8 eth0
  • security user
  • unix password sync no
  • passwd program /usr/bin/passwd u
  • logon path \\N\Profiles\U
  • logon script logon.cmd

19
??????????
  • homes
  • comment Home Directories
  • ?????
  • browseable no
  • ???????????????
  • valid users S
  • ?????????????????
  • read only yes / no
  • ?????????
  • create mask 0700
  • ?????????
  • directory mask 0700
  • ?????????

20
(No Transcript)
21
(No Transcript)
22
(No Transcript)
23
??????
24
??????????
  • profiles
  • comment Users profiles
  • path /home/samba/profiles
  • ?????
  • guest ok yes
  • browseable no
  • ??????????
  • create mask 0600
  • directory mask 0700

25
???????
  • printers
  • comment All Printers
  • browseable no
  • ???????????????
  • path /tmp
  • ?????(Spool)??
  • printable yes
  • ??????
  • public no
  • writable no
  • create mode 0700

26
???????????
  • print
  • comment Printer Drivers
  • path /var/lib/samba/printers
  • browseable yes
  • read only yes
  • ?????
  • guest ok no
  • ???guest?????????
  • write list root,_at_ntadmin
  • ??????????????

27
??????
  • cdrom
  • comment Samba server's CD-ROM
  • writable no
  • locking no
  • path /cdrom
  • public yes
  • preexec /bin/mount /cdrom
  • ????
  • postexec /bin/umount /cdrom
  • ????

28
19-3 ????????
29
??????
30
SAMBA???
  • ??????????SAMBA????,?????????SAMBA???
  • jack_at_main-server sudo smbpasswd -a jack
  • New SMB password
  • Retype new SMB password

31
????????
32
SAMBA????
  • Share?????
  • User?????
  • Server?????
  • Domain?????

33
testparm??
  • jack_at_main-server testparm
  • Load smb config files from /etc/samba/smb.conf
  • Processing section "printers"
  • Processing section "print"
  • Loaded services file OK.
  • WARNING passdb expand explicit yes is
    deprecated
  • Server role ROLE_STANDALONE
  • Press enter to see a dump of your service
    definitions

34
smbstatus??
  • jack_at_main-server smbstatus
  • Samba version 3.0.26a
  • PID Username Group Machine
  • --------------------------------------------------
    ----------------------------------
  • 3096 jack jack jack (192.168.0.117)
  • Service pid machine Connected at
  • --------------------------------------------------
    ----------------------------------
  • IPC 8411 jack Wed Jan 31 053713 2007
  • No locked files

35
smbclient??
  • jack_at_main-server smbclient -L ws1 -U win_samba
  • Password
  • DomainJACK OSWindows 5.1 ServerWindows
    2000 LAN Manager
  • Sharename Type Comment
  • ------------- ----- ----------
  • E Disk ????
  • IPC IPC ?? IPC
  • D Disk ????
  • Apps Disk
  • F Disk ????
  • ADMIN Disk ????
  • C Disk ????
  • DomainJACK OSWindows 5.1 ServerWindows
    2000 LAN Manager
  • Server Comment
  • ------------- ----------
  • Workgroup Master

36
19-4 SWAT????
37
SWAT??
  • jack_at_main-server sudo apt-get install swat
    openbsd-inetd

38
??SWAT??
  • SWAT????????
  • http//SAMBA???IP??901

39
SWAT??????
40
HOME????
41
GLOBALS????
42
SHARES????
43
PRINTERS????
44
WIZARD????
45
STATUS????
46
VIEW????
47
PASSWORD????
Write a Comment
User Comments (0)
About PowerShow.com