1. Server yum-y Install Sambasystemctl start smbsystemctl enable SMB2. Installing 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 Startup and shutdown Move, close, restart Webmin start:/etc/webmin/start off:/etc/webmin/stop restart:/etc/webmin/restart 4. Browser Browse HTTP://192.168.56.11:10000/5. Set into Chinese
6. Recommended Samba User Directory
[[email protected] samba]# Lltotal 0drwxr-xr-x 2 root root 6 May 20:22 IT #代表IT部门drwxr-xr-x 2 root root 6 May 16 20:22 NETWORK #代表网络部门drwxr-xr-x 2 root root 6 May 21:35 share #代表所有人都可以访问 [[email protected] samba]# Pwd/home/samba[[email p Rotected] samba]#
7. The server builds Samba users
[Email protected] samba]# useradd ituser [[email protected] samba]# smbpasswd-a itusernew SMB password:retype New SM B password:added user Ituser. [Email protected] samba]# [[email protected] samba]# useradd netuser [[email protected] samba]# smbpasswd-a Netusern EW SMB password:retype new SMB password:added user Netuser. [Email protected] samba]#
8. Add Sama Directory
9. Permission Control
10. Shared directory plus two users are added to
11. Testing
12. User login can be tested by different users
13. Test problems cannot be transmitted to files
chmod 777-r/home/samba
14. Remark:
Webmin just controls the permissions of samba so webmin can stop
Webmin accurate management of samba permissions