本文共 998 字,大约阅读时间需要 3 分钟。
FTP
tcp/ip:应用层NFS(RPC)cifs/smb/netbios
cifs(common internet file system):通用互联网协议
smb(service message block):服务信息块netbios:(winns)UNC:\ip\shared_pathlinux/unix
netbioscifs/smbwinbindldap(openldap)windows137/udp(netbios),138/udp
139/tcp445/tcp访问Samba服务,采用的是系统用户,但账号密码由Samba来产生,保障了安全
共享权限
文件系统权限安装配置Samba
yum install Samba-client Samba-common Sambanmbd:netbios
smbd:share(文件共享)winbind/etc/init.d/smb
/etc/Samba/smb.conf宏:变量vim /etc/Samba/smb.conf
[global]workgroup = WORKGROUP[share_name]common = path =browsealbe = public =read only =writetable = write list = user1,user2/@group,+groupvalid users = invalid users =smbpasswd -a suer1
smbclient -L netbios_name -U username
smbclient //192.168.1.20 -U user1mount -t cifs //192.168.1.20/share /mnt
vim /etc/fstab
//192.168.1.20/share /mnt cifs criedentials /etc/samba/cred.passwd 0 0Samba:基于IP的访问控制
iptables:139,445137,138Samba
hosts allow = 192.168. 127.Samba-swat
web GUI守护进程:
转载于:https://blog.51cto.com/12406012/2368226