webmin精确管理samba权限


1.服务器yum -y  install samba
systemctl start smb
systemctl enable smb
2.安装webmin
wget  http://prdownloads.sourceforge.net/webadmin/webmin-1.801.tar.gz
tar 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.设置成中文

1.png6.建议samba用户目录web

[root@localhost samba]# ll
total 0
drwxr-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  ituser
New SMB password:
Retype new SMB password:
Added user ituser.
[root@localhost samba]# 
[root@localhost samba]# useradd  netuser   
[root@localhost samba]# smbpasswd -a  netuser
New SMB password:
Retype new SMB password:
Added user netuser.
[root@localhost samba]#

8.增长sama目录bash

2.png

9.权限控制服务器

3.png4.png

10.共享目录加两个用户都加上去网络

11.测试
ide

5.png

6.png

12.用户不一样的用户登陆便可测试测试

13.测试问题不能传文件spa

chmod 777 -R /home/samba.net

14.备注:rest

webmin只是控制samba的权限所以webmin能够中止

相关文章
相关标签/搜索