1.服务器yum -y install sambasystemctl start smbsystemctl enable smb2.安装webminwget http://prdownloads.sourceforge.net/webadmin/webmin-1.801.tar.gztar xf webmin-1.8.0.1.tar.gz cd webmin-1.801./setup.sh ##默认就行记住用户名和密码3.webmin的启动与关闭 启动,关闭,重启webmin 启动:/etc/webmin/start 关闭:/etc/webmin/stop 重启:/etc/webmin/restart 4.浏览器浏览 http://192.168.56.11:10000/ 5.设置成中文
6.建议samba用户目录
[root@localhost samba]# lltotal 0drwxr-xr-x 2 root root 6 May 16 20:22 IT #代表IT部门drwxr-xr-x 2 root root 6 May 16 20:22 NETWORK #代表网络部门drwxr-xr-x 2 root root 6 May 16 21:35 share #代表所有人都可以访问[root@localhost samba]# pwd/home/samba[root@localhost samba]#
7.服务器建立samba用户
[root@localhost samba]# useradd ituser [root@localhost samba]# smbpasswd -a ituserNew SMB password:Retype new SMB password:Added user ituser.[root@localhost samba]# [root@localhost samba]# useradd netuser [root@localhost samba]# smbpasswd -a netuserNew SMB password:Retype new SMB password:Added user netuser.[root@localhost samba]#
8.增加sama目录
9.权限控制
10.共享目录加两个用户都加上去
11.测试
12.用户不同的用户登录即可测试
13.测试问题不能传文件
chmod 777 -R /home/samba
14.备注:
webmin只是控制samba的权限因此webmin可以停止
webmin精确管理samba权限
原文地址:http://blog.51cto.com/wsxxsl/2117592