posts - 403, comments - 310, trackbacks - 0, articles - 7
            BlogJava :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理

          Arch下配置samba服務

          Posted on 2007-10-17 01:36 ZelluX 閱讀(1957) 評論(3)  編輯  收藏 所屬分類: Linux
          安裝samba服務可以與Windows進行文件的共享
          下面是在Arch下的簡單安裝方法:
          - pacman -Sy samba
          - (root) cp /etc/samba/smb.conf.default /etc/samba/smp.conf
          - (root) vim /etc/samba/smb.conf (或者使用其他的編輯器)

          [globle]選項塊
          workgroup = HOME    # 組名,在Windows中默認是MSHOME或者WORKGROUP
          netbios name = ZelluX  # 在網上鄰居中顯示的機器名
          encrypt passwords = yes  # 應該設為yes。但是如果要在Windows 98/95上訪問你的服務器,得把這個設為no,因為它們不支持密碼的加密傳輸。

          [homes]選項塊
          最簡單的配置(登陸后方可訪問):
          browseable = no
          read only = no   # 或者writable = yes

          匿名可讀,登陸后可以修改:
          public = yes
          writable = yes
          write list = @staff

          如果想讓Windows用戶看到一個清晰的目錄(隱藏.開頭的文件,比如~/.bashrc):
          [homes]
          path = /home/%u/smb
          browseable = no
          read only = no
          同時要在每位用戶的主目錄下建立一個smb目錄。可以通過在/etc/skel目錄下建立smb,從而自動在所有用戶目錄下建立該目錄
          mkdir /etc/skel/smb

          要共享其他的目錄也很容易,只要設置path和valid users屬性即可
          [music]
          path = /mnt/windows/Music/
          browseable = yes
          read only = yes
          valid users = Bryan, Michael, David, Jane
          valid users屬性指定登陸后有權限訪問到這個目錄的用戶

          - (root) 使用 smbpasswd -a 用戶名  增加允許登陸的用戶,并指定他們的登陸密碼
          - (root) /etc/rc.d/samba stop 停止samba服務
          - (root) /etc/rc.d/samba start 啟動samba服務

          評論

          # re: Arch下配置samba服務  回復  更多評論   

          2007-10-19 14:06 by Lee.MaRS
          好東東還是要發到版上去啊-_-b

          # re: Arch下配置samba服務  回復  更多評論   

          2007-10-19 22:52 by ZelluX
          @Lee.MaRS
          只是翻譯了一下wiki上的@@
          既然教主發話,偶就轉過去了 >,<~~

          # re: Arch下配置samba服務  回復  更多評論   

          2013-06-11 16:10 by zhangbear
          我按照你的方法,安裝了SAMBA,但是 /etc/rc.d/samba start 啟動不了samba服務。提示不存在這個文件或目錄的,怎么辦?
          主站蜘蛛池模板: 天峻县| 申扎县| 区。| 久治县| 抚顺县| 双峰县| 江陵县| 上杭县| 吉水县| 青岛市| 昔阳县| 镇原县| 巢湖市| 汽车| 汶川县| 阜平县| 德庆县| 乐都县| 绥中县| 南澳县| 曲靖市| 丰宁| 循化| 广东省| 太保市| 万荣县| 桐城市| 盐城市| 资溪县| 当涂县| 厦门市| 会昌县| 大丰市| 南陵县| 丰台区| 吴堡县| 资源县| 深州市| 易门县| 大宁县| 沐川县|