国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 服務器 > Linux服務器 > 正文

Linux中samba服務器的基本配置

2024-09-05 23:01:09
字體:
來源:轉載
供稿:網友

#======================= Global Settings =====================================  全局參數配置,設置的是針對所有的資源
[global]

# workgroup = NT-Domain-Name or Workgroup-Name    ----------------------------  工作組的名稱(可以不填,默認就這樣)      
  workgroup = soft

# server string is the equivalent of the NT Description field
   server string = Samba Server ---------------------------------------------   對SMB服務器的簡要說明

hosts allow = 192.168.1. 192.168.2. 127. --------------------------------  設置可訪問SMB服務器的主機(可為IP,主機名,域名)

# Security mode. Most people will want user level security. See
# security_level.txt for details.  ------------------------------ 指定SMB服務器的使用的安全等級。 security = share 指的是當客戶機連入SMB服務器時,不需要帳號密碼就可以訪問資源。
                                                                  security = user   指的是當客戶煉乳SMB服務器時,必須輸入用戶名和密碼才能訪問
 security = user
# Do not enable this option unless you have read those documents
   encrypt passwords = yes
   smb passwd file = /etc/samba/smbpasswd
#============================ Share Definitions ==============================共享資源參數配置
[homes]              -----------------------用戶以帳號和密碼訪問,是否允許進入自己的宿主文件夾
   comment = Home Directories                  (默認就這樣,可以不要修改)
   browseable = no
   writable = yes
   valid users = %S
   create mode = 0664
   directory mode = 0775
[printers] ----------------------------打印機配置
   comment = All Printers
   path = /var/spool/samba
   browseable = no
# Set public = yes to allow user 'guest account' to print
   guest ok = no
   writable = no
   printable = yes
;[myshare]
;   comment = Mary's and Fred's stuff
;   path = /usr/somewhere/shared
;   valid users = mary fred
;   public = no
;   writable = yes
;   printable = no
;   create mask = 0765
[pp]                --------------------以下是我所共享的文件夾
    comment = this is our soft!    共享說明
    path = /www/pp          共享文件夾的路徑
    write list = smb   允許寫入權限的用戶列表,smb用戶允許寫入
    read list =         只讀權限的用戶列表
    public = yes     是否允許發布

    當安全等級為user時,這時我們在本機建立的用戶必須加入到SMB服務器中,命令為 smbpasswd -a 用戶  添加LINUX用戶到SMB服務器中,smbpasswd 用戶名    修改SMB服務器中用戶的口令

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 滦平县| 张家川| 郸城县| 峨山| 彰化县| 洪湖市| 兴和县| 郴州市| 清远市| 交城县| 新昌县| 灵宝市| 耒阳市| 四川省| 南雄市| 枝江市| 湘西| 嘉鱼县| 若尔盖县| 渭南市| 安义县| 乌拉特后旗| 湘潭市| 藁城市| 鹰潭市| 安仁县| 花垣县| 攀枝花市| 柳州市| 安福县| 海城市| 苏尼特右旗| 新龙县| 芦山县| 凤翔县| 瓦房店市| 济源市| 汕尾市| 马关县| 昭觉县| 宜宾县|