1.
samba#vi /etc/samba/smb.conf
[global] workgroup=semanticlab server string=date guest ok=yes browseable=yes writeable=yes security=share guest account=crowtlf wins support = no encrypt passwords=no
[date] path = /date available = yes browseable = yes public = yes writable = yes
|
#touch /etc/samba/smbpasswd
#/etc/samba/smbpasswd usrname
passwd:
#/etc/init.d/samba restart
2.
NFS#vi /etc/exports
/home/share 192.168.0.x(rw,sync,no_subtree_check) *(ro)
#/etc/init.d/nfs-kernel-server restart
or:
#exportfs -au //remove all share directory
#exportfs -rv //reload
查看开放的权限
#cat /var/lib/nfs/etab
查看NFS服务器所启动的端口
#lsof -i | grep rpc
其它相关命令:
#rpcinfo -p
#showmount -e *.*.*.*
阅读(597) | 评论(0) | 转发(0) |