ftp,nfs,samba基本配置

来源:互联网 发布:飞行器发动机 知乎 编辑:程序博客网 时间:2024/05/02 00:05
VSFTP:    
    # vim /etc/vsftpd/vsftpd.conf
anon_upload_enalble=YES  
anon_mkdir_write_enable=YES
    默认目录  /var/ftp/pub
    # chmod  -R ... /var/ftp/pub
    # service vsftpd restart



NFS:
    # vim/etc/exports     /var/nfs *.*(rw,sync)
    # chmod -R ... /var/nfs
    # mount -t nfs IP:/var/nfs  /mnt/nfs

    # service nfs restart



SAMBA:
    关闭防火墙


    关闭SELinux
    # vim /etc/selinux/config     SELINUX=disabled
    # setenforce 0


    # vim /etc/samba/smb.conf    load printers = no
    # service smb restart
    # smbpasswd -a user ;  add a user
    # smbpasswd -x user ;  delete a user
    
TFTP
    # vim /etc/xinetd.d/tftp   
service tftp
{
disable = no
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -s /var/ftp
per_source = 11
cps = 100 2
flags = IPv4
}
 
    # ls /etc/rc.d/init.d/xinetd   确认脚本文件存在
默认目录 /var/lib/tftpboot


    # service xinetd restart


BOOTP


#vi /etc/xinetd.d/bootp
service bootps
{
disable = no
socket_type =dgram
protocol =udp
wait =yes
user =root
server =/usr/sbin/bootpd
}


#vi /etc/bootptab
s3c6410:\
    ht=1:\
    ha=0x089090909090:\
    ip=192.168.0.50:\
    sm=255.255.255.0


原创粉丝点击