- 作者:zhaozj
- 发表时间:2020-12-23 11:00
- 来源:未知
使用Server Message Block协议,通过在UNIX上安装samba,就使得UNIX可以同Windows系列计算机之间相互通信,并可以使UNIX机器模拟成Windows机器。 samba的核心是两个守护进程smbd和nmbd程序, Smbd进程的作用是处理到来的SMB软件包,为使用该软件包的资源与Linux进行协商,nmbd进程使其它主机(或工作站)能浏览Linux服务器 图形管理界面: /etc/services: swat 901/tcp swat 901/udp /etc/inetd.conf: swat stream tcp nowait.400 root /usr/local/samba/bin/swat swat 通过http://IP:901管理,输入root帐号 /usr/local/samba/bin/testparm测试配置的程序 添加用户时,帐号必须在系统上存在,SAMBA会加到/usr/local/samba/private/smbpasswd,修改口令,smbpasswd samba用户名 配置文件如下:(/usr/local/samba/lib/smb.conf) # Samba config file created using SWAT # Date: 2002/12/31 11:53:48 # Global parameters [global] client code page = 936 workgroup=workgroup //设定工作组 netbios name = TRANS//设定网络邻居上显示的机器名 server string = donald之家 secrity = user//用户验证方式 encrypt passwords = Yes password level = 3 log file = /var/log/samba/log.%m deadtime = 10 invalid users = root [project] comment = super-ftpd project path = /opt/super-ftpd/super-ftpd项目 admin users = chdonald//管理员 write list = chdonald,test // [public] comment = super-ftpd path = /opt/super-ftpd/public guest account = valid users = chdonald,test admin users = chdonald write list = chdonald [other] comment = others path = /opt/other admin users = chdonald write list = test,test
(完)