当前位置:文档之家› TFTP、NFS、samba服务设置

TFTP、NFS、samba服务设置

TFTP服务

setp1:安装tftp工具
apt-get install tftp-hpa tftpd-hpa xinetd

setp2:配置tftp服务
/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 -c /tftpboot
per_source =11
cps =100 2
flags =IPv4
}

setp3:tftp状态
/etc/init.d/xinetd start 启动
/etc/init.d/xinetd stop 停止
/etc/init.d/xinetd restart 重启
/etc/init.d/xinetd status 查看状态

step4:登陆、上传、下载
tftp <服务器地址>
get <文件名>
put <文件名>


NFS服务

step1:安装
apt-get install nfs-kernel-server

step2:NFS状态
/etc/init.d/nfs-kernel-server start 启动
/etc/init.d/nfs-kernel-server stop 停止
/etc/init.d/nfs-kernel-server restart 重启
/etc/init.d/nfs-kernel-server status 查看状态

step3:NFS服务器的共享资源
设置共享资源
/etc/exports
添加/source/rootfs *(rw,sync,no_subtree_check)
查看共享资源
showmount

step4:挂载NFS文件系统
mount -t nfs : <挂载点>

step5:卸载
umount <挂载点>

samba服务

step1:安装samb软件包
apt-get install samba
apt-get install smbfs

step2:添加linux用户
给samba用户设置密码
smbpasswd –a root


step3:备份/etc/samba/smb.conf
将smb.conf文件拷到/etc/samba/


============/etc/samba/smb.conf============
[global]
workgroup = MSHOME
server string = %h server (Samba, Ubuntu)
dns proxy = no
log file = /var/log/samba/log.%m
max log size = 1000
syslog = 0
panic action = /usr/share/samba/panic-action %d

security = root
# security = share
passdb backend = tdbsam
obey pam restrictions = yes

[printers]
comment = All Printers
browseable = no
path = /var/spool/samba
printable = yes
guest ok = no
read only = yes
create mask = 0700

[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
browseable = yes
read only = yes
guest ok = no

[share]
path = /
available = yes
writable = yes
public = yes
=================================

重启samba服务
/etc/init.d/samba restart

在XP计算机上输入\\192.168.xx.xx即可

相关主题
文本预览
相关文档 最新文档