1. gzyueqian
      13352868059
      首頁 > 新聞中心 > > 正文

      Fedora Linux 8配置SAMBA服務的詳細過程

      更新時間: 2008-02-04 19:50:05來源: 粵嵌教育瀏覽量:647

         1、使用yum命令來安裝或更新你的SAMBA包。

      yum install samba

      2、samba的配置文件在如下

      /etc/samba/smb.conf

      修改其配置如下:

       

       

      #======================= Global Settings =====================================
                  [global]
                  # ----------------------- Netwrok Related Options -------------------------
                  #
                  # workgroup = NT-Domain-Name or Workgroup-Name, eg: MIDEARTH
                  #
                  # server string is the equivalent of the NT Description field
                  #
                  # netbios name can be used to specify a server name not tied to the hostname
                  #
                  # Interfaces lets you configure Samba to use multiple interfaces
                  # If you have multiple network interfaces then you can list the ones
                  # you want to listen on (never omit localhost)
                  #
                  # Hosts Allow/Hosts Deny lets you restrict who can connect, and you can
                  # specifiy it as a per share option as well
                  #
                  workgroup = robin
                  server string = MYSERVER
                  netbios name = MYSERVER
                  ; hosts allow = 127. 192.168.
                  # --------------------------- Logging Options -----------------------------
                  #
                  # Log File let you specify where to put logs and how to split them up.
                  #
                  # Max Log Size let you specify the max size log files should reach
                  # logs split per machine
                  log file = /var/log/samba/log.%m
                  # max 50KB per log file, then rotate
                  max log size = 50
                  # ----------------------- Standalone Server Options ------------------------
                  #
                  # Scurity can be set to user, share(deprecated) or server(deprecated)
                  #
                  # Backend to store user information in. New installations should
                  # use either tdbsam or ldapsam. smbpasswd is available for backwards
                  # compatibility. tdbsam requires no further configuration.
                  security = share
                  ; encrypt passwords = yes
                  guest ok = yes
                  guest account = root
                  #============================ Share Definitions ==============================
                  [homes]
                  comment = Home Directories
                  browseable = no
                  writable = yes
                  ; valid users = %S
                  ; valid users = MYDOMAIN\%S
                  [printers]
                  comment = All Printers
                  path = /var/spool/samba
                  browseable = no
                  ; guest ok = no
                  ; writable = No
                  printable = yes
                  # Un-comment the following and create the netlogon directory for Domain Logons
                  ; [netlogon]
                  ; comment = Network Logon Service
                  ; path = /var/lib/samba/netlogon
                  ; guest ok = yes
                  ; writable = no
                  ; share modes = no
                  # Un-comment the following to provide a specific roving profile share
                  # the default is to use the user's home directory
                  ; [Profiles]
                  ; path = /var/lib/samba/profiles
                  ; browseable = no
                  ; guest ok = yes
                  # A publicly accessible directory, but read only, except for people in
                  # the "staff" group
                  ; [public]
                  ; comment = Public Stuff
                  ; path = /home/samba
                  ; public = yes
                  ; writable = yes
                  ; printable = no
                  ; write list = +staff
                  [temp]
                  path = /root/temp
                  writeable = yes
                  ; browseable = yes
                  guest ok = yes

       

      3、重啟SAMBA服務

      /etc/init.d/smb restart

       

      4、Enjoy

       

      PS:Fedora Core從V2起都有預裝SELinux,這個不會配置的可以先把她關掉,關閉的方法如下:

       

      修改/etc/selinux/config文件中的SELINUX="" 為 disabled ,然后重啟FC。

      免費預約試聽課

      亚洲另类欧美综合久久图片区_亚洲中文字幕日产无码2020_欧美日本一区二区三区桃色视频_亚洲AⅤ天堂一区二区三区

      
      

      1. 中文字幕第二页在线天堂中文 | 中文亚洲日韩A∨欧美 | 亚洲开心网激情五月 | 在线中文字幕亚洲无线码 | 天天躁日日躁久久 | 亚洲人成在线播放电影 |