samba服務器搭建(二)
阿新 • • 發佈:2017-06-29
pin bsp ping fab conf ceshi use 使用 com
搭完了samba服務器之後,正式投入使用。
於是有了具體明確的規劃,需要對文件夾進行權限設定。
先創建相應的文件夾,設置權限為777。前期先這樣,後期可以慢慢根據具體需求改進。
1 [[email protected] share]# ls -l 2 總用量 0 3 drwxrwxrwx 2 root root 6 6月 29 14:47 ceshibu 4 drwxrwxrwx 2 root root 6 6月 29 14:46 chanpinyanfabu 5 drwxrwxrwx 2 root root 6 6月 29 14:47 fazhanbu 6 drwxrwxrwx 2root root 6 6月 29 14:44 guanlizu 7 drwxrwxrwx 2 root root 6 6月 29 14:46 pingtaiyanfabu 8 drwxrwxrwx 2 root root 6 6月 29 14:47 yingjianyanfabu 9 drwxrwxrwx 2 root root 6 6月 29 14:46 zongheguanlibu
接下來配置smb.conf:
1 [管理組] 2 comment=guanlizu 3 path=/home/share/guanlizu 4 browseable=yes 5 valid users=mihaibin6 write list = mihaibin 7 8 [綜合管理部] 9 comment=zongheguanlibu 10 path=/home/share/zongheguanlibu 11 browseable=yes 12 valid users=mihaibin 13 write list = mihaibin 14 15 [產品研發部] 16 comment=chanpinyanfabu 17 path=/home/share/chanpinyanfabu 18 browseable=yes 19 valid users=mihaibin 20 write list = mihaibin21 22 [平臺研發部] 23 comment=pingtaiyanfabu 24 path=/home/share/pingtaiyanfabu 25 browseable=yes 26 valid users=mihaibin 27 write list = mihaibin 28 29 [硬件研發部] 30 comment=yingjianyanfabu 31 path=/home/share/yingjianyanfabu 32 browseable=yes 33 valid users=mihaibin 34 write list = mihaibin 35 36 [測試部] 37 comment=ceshibu 38 path=/home/share/ceshibu 39 browseable=yes 40 valid users=mihaibin 41 write list = mihaibin 42 43 [發展部] 44 comment=fazhanbu 45 path=/home/share/fazhanbu 46 browseable=yes 47 valid users=mihaibin 48 write list = mihaibin
未完待續
samba服務器搭建(二)