NFS:
nfs的组成:rpc.portmapper, rpc.nfsd, rpc.mountd
nfs的安装:sudo aptitude install nfs-kernel-server or nfs-user-server
nfs的启动和停止:sudo /etc/init.d/nfs-kernel-server restart|stop|start
nfs的检查:ps ax | grep nfsd ps -aux | grep portmap
nfs的配置:/etc/exports文件当中
/usr 192.168.1.100 (rw) /home/xp 192.168.1.12(rw,sync) *(ro,async)
选项说明:
no_root_squash 远端root用户对nfs目录具有完全访问权限
rw 读写,默认 ro 只读 sync 同步
配置检查:exportfs -rv
客户端:
查看NFS共享内容: showmount -e 服务器主机名或ip
安装内容:sudo mount 192.168.1.100:/home/share /mnt/nfsdir
卸载内容:sudo umount /mnt/nfsdir
------------------------------
FTP: port:21
安装:sudo aptitude install vsftpd
启动和停止:sudo /etc/init.d/vsftd start|stop|restart
配置文件:/etc/vsftpd.conf
PAM配置:/etc/pam.d/vsftpd
用户访问控制:/etc/vsftpd.ftpusers写在当中的本地用户静止登录 /etc/vsftpd.user_list
设置空闲会话中断时间:idle_session_timeout=600 (second)
设置空闲数据连接的中断时间:data_connection_timeout=120
设置客户端空闲时的自动中断和激活连接时间:accept_timeout=60 connect_timeout=60
vsftpd匿名上传配置:
anon_upload_enable = Yes
anon_mkdir_write_enable = Yes
anon_other_write_enable = Yes
anon_world_readable_only = No
配置速率限制和每用户的连接数限制:
local_max_rate
anon_max_rate
max_per_ip
max_clients
基于本地用户的配置: