- 论坛徽章:
- 0
|
1、如何配置puer-ftp服务器呢?
首先下载:pure-ftp-1.0.21.tar.gz
安装步骤如下:
# cd /
# mkdir ftp
# cp pure-ftp-1.0.21.tar.gz /ftp
# cd ftp
# ls
pure-ftp-1.0.21.tar.gz
# tar -zxvf pure-ftp-1.0.21.tar.gz
# ls
pure-ftp-1.0.21 pure-ftp-1.0.21.tar.gz
# cd pure-ftp-1.0.21
# ./configure --with-everything --with-paranoidmsg --without-capabilities --with-virtualchroot
# make
# make install
# groupadd ftpgroup
# useradd -g ftpgroup -d /dev/null -s /etc ftpuser
# pure-pw useradd user -u ftpuser -d /home/ftpusers/user
# pure-pw mkdb
# /usr/local/sbin/pure-ftpd -j -H -lpuredb:/etc/pureftpd.pdb &
# lftp 127.0.0.1 -u user
[root@localhost /]# lftp 127.0.0.1 -u user
口令:
lftp user@127.0.0.1:~> ls
lftp user@127.0.0.1:/> mkdir pub
mkdir 成功, 建立 `pub'
lftp user@127.0.0.1:/> ls
drwxr-xr-x 2 501 501 4096 Oct 31 09:27 pub
lftp user@127.0.0.1:/> cd pub/
lftp user@127.0.0.1:/pub> ls
lftp user@127.0.0.1:/pub> pwd
ftp://user@127.0.0.1/pub
lftp user@127.0.0.1:/pub>
注意:要关防火墙,可能到windows 下上传的文件,如果是中文,可能是乱码,这里你就得到
这里
查看帮助了。
2、SMB服务器的配置:
(1)、修改配置文件
[root@localhost /]# vi /etc/samba/smb.conf
[global]
# 1. Server Naming Options:
# workgroup = NT-Domain-Name or Workgroup-Name
workgroup = Mshome
netbios name = localhost <-----改这里为你本机名字
# server string is the equivalent of the NT Description field
# server string = Samba Server %v
server string = This is elephant`s samba Server <----这里可以由你自己改
………………
map to guest = bad user
# Security mode. Most people will want user level security. See
# security_level.txt for details.
security = share <----这里可以改为user 或 share
# This is an example for french users:
# dos charset = 850
# unix charset = ISO8859-1
# 找到上面这两行 改为下面的三行;
unix charset = utf8
display charset = ISO8859-1
dos charset = 850
#下面的自己加的 所要供享的目录:
[elephant]
comment = Temporary file space
path = /home/xiang/windows
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/73539/showart_1355195.html |
|