搭完了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 2 root 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=mihaibin 6 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 = mihaibin 21 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
未完待续
时间: 2024-11-08 22:47:09