---------smb
从Linux访问Windows共享的文件
# service smb start
useradd aa
passwd aa
# smbpasswd -a aa
# vi /etc/samba/smb.conf
[aaa]
comment = aaaaaaaaaaaa
path = /aa
valid users =
writable = yes
# useradd Oracle
# passwd oracle
# smbpasswd -a oracle
# smbclient //localhost/legal -U oracle%oracle
# mount //192.168.0.254/share /mnt -o username tom
从Linux访问Linux共享的文件
# smbclient -L localhost -N
# smbclient //192.168.2.1/share
smb: > put /etc/hosts hosts
# man 5 smb.conf
netstat -auntp|grep smbd
------nfs
# service nfs start
# vi /etc/exports
/home/guests 192.168.0.0/255.255.255.0(rw,sync)
if there is 255.255.255.255 whill only specifi to one ip address
显示nfs # showmount -e localhost
