??xml version="1.0" encoding="utf-8" standalone="yes"?>
## Path: System/Boot
## Description: selects bootsplash graphics theme
## Type: string
## Default: SuSE-SLES
# Choose the bootsplash theme. It should be based in
# /etc/bootsplash/themes/
THEME="SuSE-SLES"
## Path: System/Boot
## Description: enables/disables bootup graphics
## Type: yesno
## Default: yes
#
# SPLASH can be set to "no" to turn off the splash-screen on console 1
# at boot time (after kernel load).
#
# SPLASH=no to disable the splash screen
#
# SPLASH=yes to show the splash screen
#
SPLASH="yes"
自从 0.99.2 版本开始, pure-ftpd 开始支持虚拟用戗虚拟用h式十分类?/span> /etc/passwd Q将用户的相关信息,如口令、姓名?/span> uid 、目录等Q存入文件。但是该文g只适用?/span> FTP ?/span>
q意味着Q可以ؓ FTP 讄虚拟用户Q而不需要在pȝ中添加系l用戗同Ӟ可以些用户单独设|配额?/span> ratio 、带宽等限制。很多虚拟用户可以共享同一个系l用L属性,因此些虚拟用户单独创Z个系l用P从而方便管理?/span>
首先Q可以在pȝ中添加相应的用户和组Q如 ftpuser ?/span> ftpgroup 。如Q?/span>
groupadd ftpgroup
useradd -g ftpgroup -d /dev/null -s /etc ftpuser
可以使用 ”pure-pw?/font> 来创拟用戗虚拟用L信息以每个用户一行的方式存放在相应的文g中,其格式如下所C:
<account>:<password>:<uid>:<gid>:<gecos>:<home directory>:<upload bandwidth>:<download bandwidth>:<upload ratio>:<download ratio>:<max number of connections>:<files quota>:<size quota>:<authorized local IPs>:<refused local IPs>:<authorized client IPs>:<refused client IPs>:<time restrictions>
其中Q除了帐受口令?/span> uid ?/span> gid ?/span> home 目录之外Q其它的可以是空倹{?/span>
接下来,我们来创Z个新的用戗?/span> pure-pw 的语法规范如下:
pure-pw useradd <login> [-f <passwd file>] -u <uid> [-g <gid>]
-D/-d <home directory> [-c <gecos>]
[-t <download bandwidth>] [-T <upload bandwidth>]
[-n <max number of files>] [-N <max Mbytes>]
[-q <upload ratio>] [-Q <download ratio>]
[-r <allow client host>[/<mask>][,<allow client host>[/<mask>]]...]
[-R <deny client host>[/<mask>][,<deny client host>[/<mask>]]...]
[-i <allow local host>[/<mask>][,<allow client host>[/<mask>]]...]
[-I <deny local host>[/<mask>][,<deny local host>[/<mask>]]...]
[-y <max number of concurrent sessions>]
[-z <hhmm>-<hhmm>] [-m]
假设我们要创?/span> joe q样一个虚拟用P则可以用如下命令:
pure-pw useradd joe -u ftpuser -d /home/ftpusers/joe
其中Q?/span> -u 虚拟用?/span> joe 同系l用?/span> ftpuser 兌在一赗?/span> -d 参数?/span> joe 只能讉K?/span> home 目录。而如果想让他讉K整个文gpȝQ可以用 -D 选项?/span>
q时Q如?/span> pure-ftpd 启动时加?/span> -j(--createhome) 选项Q则不需要创?/span> /home/ftpuser/joe 目录。系l会在该用户W一ơ登陆时自动创徏?/span>
-z 选项q用用户在一天当中指定的旉D连接服务器。如 -z 0900-1800 Q则该用户只能在上午 9 点到晚上 6 点之间连接服务器?/span>
-r 选项?/span> -R 选项Q可以限制用户从指定 IP 和掩码连入服务器
-y Q用户同一旉的ƈ发连接数?/span> ’?/font> 或?/span> 0 意味着不限?/span>
-f Q默认虚拟用L信息会被存放?/span> /etc/pureftpd.passwd 文g中,通过该选项可以改变该文件的位置?/span>
用户的口令会Ҏpȝ对加密方式的支持情况Q选择一个最安全的方式进行加密?/span>
?/span> pure-pw adduser 唯一不同的是Q?/span> pure-pw usermod 不是创徏一个用P而是更改已经存在用户的某些属性?/span>
重置某些属性的语法如下Q?/span>
pure-pw usermod <user> -n '' Q禁用文仉?/span>
pure-pw usermod <user> -N '' Q禁用文件大配?/span>
pure-pw usermod <user> -q '' -Q '' Q禁?/span> ratio
pure-pw usermod <user> -t '' Q禁用下载带宽限?/span>
pure-pw usermod <user> -T '' Q禁用上传带宽限?/span>
pure-pw usermod <user> <-i,-I,-r or -R> '' Q禁?/span> IP qo
pure-pw usermod <user> -z '' Q禁用时间段U束
pure-pw usermod <user> -y '' Q禁用ƈ发数限制
删除一个用的命令语法是Q?/span>
pure-pw userdel <login> [-f <passwd file>] [-m]
q时Q用L信息会被从指定的 passwd 文g中删除,但是用户?/span> home 目录会被保留Q需要手工删除?/span>
更改一个用户口令的语法是:
pure-pw passwd <login> [-f <passwd file>] [-m]
/etc/pureftpd.passwd 文g中记录的信息不方便用L阅读Q因?/span> pure-ftpd 提供了显C用户信息的命o。其语法是:
pure-pw show <login> [-f <passwd file>]
可以通过上面提到的命令,或者以手工方式?/span> /etc/pureftpd.passwd 文gq行修改Q从而创建、修改和删除一个虚拟用户信息。但是,只有提交q些更改Ӟ pure-ftpd 讉K才能生效?/span>
提交更改Q意味着pȝ会根?/span> /etc/pureftpd.passwd Q或者指定的其它文gQ来创徏一?/span> pure-ftpd 可读的二q制格式的文?/span> /etc/pureftpd.pdb 。通常Q通过下面的命令:
pure-pw mkdb
可以通过 /etc/pureftpd.passwd 文g自动创徏 /etc/pureftpd.pbd 文g。但是,如果需要指定特定的文gQ可以通过下面的方式来实现Q?/span>
pure-pw mkdb /etc/accounts/myaccounts.pdb -f /etc/accounts/myaccounts.txt
q时Q没有必要去重启 pure-ftpd 服务Q对虚拟用户q行的更改可以更新。同Ӟ也可以通过 -m 选项Q在?/span> /etc/pureftpd.passwd 文gq行修改的时候自动进行提交?/span>
使得 pure-ftpd 支持虚拟用户Q需要在~译的时候加入选项 --with-puredb 。这Ӟ可以通过在启动服务是?/span> ?l?/font> 参数来设|。如Q?/span>
/usr/local/sbin/pure-ftpd -j -lpuredb:/etc/pureftpd.pdb &
可以在后収ͼ以自动创拟用?/span> home 目录Q用 puredb 的方式来支持虚拟用户?/span>
可以通过如下命oQ将pȝ用户转换拟用P
pure-pwconvert
如果?/span> root 用户q行该命令,pȝ用户的口令一q被转入虚拟用户配置文g。如Q?/span>
pure-pwconvert >> /etc/pureftpd.passwd
默认的情况下Q如果指定了环境变量 PURE_PASSWDFILE Q则虚拟用户?/span> passwd 文g位置p变量的值指定。否则,默认?/span> /etc/pureftpd.passwd 。用P PURE_DBFILE 环境变量用来指定 pdb 文g的位|。默认是 /etc/pureftpd.pdb ?/span>
It is important to install exactly the same version of NTFS kernel module as the kernel you have installed. Below are some simple instructions to help you find the file you need.
A quick way to find the version is to use the . Save the file and run it. Then go to the install section.
chmod 700 whichrpm
./whichrpm
![]()
The script, above, just automates what we will do next. First we need to decide which release you have. Run this command:
cat /etc/redhat-release
and you will probably see one of the following responses:
![]()
Fedora Core release 3 (Heidelberg)
Fedora Core release 4 (Stentz)
Fedora Core release 5 (Bordeaux)
Red Hat Linux release 9 (Shrike)
![]()
Next find out your kernel version:
![]()
uname -r
![]()
You should see a response something like one of these:
![]()
2.4.18 - 3
2.4.18 - 17.7 .x
2.4.22 - 1.2115 .nptl
2.6.8 - 1.521
![]()
The version might also have one of the following suffixes:
![]()
smp
bigmem
hugemem
BOOT
![]()
Note: If the result ends with smp then you have a multi-processor computer (you probably already knew that).
Next find out what sort of processor you have. This command will ask which kernel rpm was installed for you.Note: If your version number had a suffix, then use it here, e.g. replace kernel with kernel-smp, or kernel-bigmem.
![]()
rpm -q --queryformat " %{ARCH}\n " kernel
![]()
Most people will have an i686 processor (a recent Pentium computer). Other options are athlon, i586 or i386.
Next download the RPM. Follow the links for
* Fedora 4 (Stentz) * Fedora 3 (Heidelberg) * Fedora 2 (Tettnang) * Fedora 1 (Yarrow) * RedHat Enterprise 4 (Nahant) * RedHat Enterprise 3 (Taroon) * RedHat 9 (Shrike) * RedHat 8.0 (Psyche) * RedHat 7.3 (Valhalla) |
You must be root for the rest of the commands. The examples will continue as if you downloaded kernel-ntfs-2.4.18-14.i686.rpm.Note: Newer NTFS RPMs have names like
kernel-module-ntfs-2.6.8-1.541-2.1.17-0.fc.1.2.i586.rpm
Next install the rpm:
rpm -ihv kernel-ntfs-2.4.18-14.i686.rpm
Preparing... ############################### [100%]
1:kernel-ntfs ############################### [100%]
There should be no errors, just some '#'-charakters.Note: newer NTFS RPMs will also print a message telling you if install succeeded.
If something goes wrong see the Help Section.
This is the only command we actually needed, but we'll go on and test what we have done.
Next load the kernel module
/sbin/modprobe ntfs
There should be no output. If there are a lot of error messages see the Help Section.
The next command, dmesg prints the kernel logs. We search them for NTFS using grep.
dmesg | grep NTFS
NTFS driver v1.1.22 [Flags: R/O MODULE]
We can now check that the kernel really understands NTFS. The output may vary slightly, but you are looking for the entry ntfs.
cat /proc/filesystems
nodev rootfs
nodev bdev
nodev proc
nodev sockfs
nodev tmpfs
nodev shm
nodev pipefs
ext3
ext2
nodev ramfs
nodev devpts
ntfs
Mounting an NTFS Volume is covered in more detail in Section 4 of the Linux-NTFS FAQ (in the Wiki).
First you need to know which device your NTFS Volume is on and you need to create a directory as a mount point.
/sbin/fdisk -l
The output might look like:
Disk /dev/hda: 64 heads, 63 sectors, 4465 cylinders Units = cylinders of 4032 * 512 bytes Device Boot Start End Blocks Id System /dev/hda1 1 2125 4283968+ 07 NTFS/HPFS /dev/hda2 2126 19851 35735616 0f Win95 Ext'd (LBA) /dev/hda5 * 2126 4209 4201312+ 83 Linux /dev/hda6 4210 4465 516064+ 82 Linux swap mkdir /mnt/windows mount /dev/hda1 /mnt/windows -t ntfs -r -o umask=0222 ls -l /mnt/windows ... -r-xr--r-- 1 root root 9719 Aug 24 1996 ansi.sys -r-xr--r-- 1 root root 15252 Aug 24 1996 attrib.exe -r-xr--r-- 1 root root 28096 Aug 24 1996 chkdsk.exe -r-xr--r-- 1 root root 5175 Aug 24 1996 choice.com ...
Hopefully everything is working for you now.Note: Now, please read the NTFS FAQ (Frequently Asked Questions, in the Wiki), especially if you want to know:
* How to change the owner or permissions of the mounted partition (Section 4.9) * How to have Linux mount the partition automatically at boot time (Section 4.10) |
If you wish to remove the NTFS RPM, first list all the RPMs with ntfs in their name. You output might look something like this:
rpm -qa | grep -i ntfs kernel-module-ntfs-2.6.9-1.667smp-2.1.20-0.fc.1.2
Then, cut and paste the name into the rpm erase command:
rpm -e kernel-module-ntfs-2.6.9-1.667smp-2.1.20-0.fc.1.2
-------------------------------------------------------------------------------
*** Helix Server Heartbeat Failure Report
When: 04-Apr-06 14:09:41
Environment: linux-2.2-libc6-i586-server, , 9.0.2.794
* Heartbeat Failure 2 (Step 3)
-------------------------------------------------------------------------------
*** Helix Server Heartbeat Failure Report
When: 04-Apr-06 14:10:04
Environment: linux-2.2-libc6-i586-server, , 9.0.2.794
* Heartbeat Failure 3 (Step 3)
Helix Server not responding normally...
Heartbeat check disabled
* Heartbeat Failure 4 (Step 3)
* Heartbeat Failure 5 (Step 3)
* Heartbeat Failure 6 (Step 3)
* Heartbeat Failure 7 (Step 3)
在网上找了很多相关的资料Q都没解册个问题。后来考虑可能时系l版本的问题Q于是下载了Helix Server 11.0.1.1884。在q个版本自带的文档中介绍了遇Cq问题时Q可以在配置文gl尾加入如下3行代码:
<List Name="IPBindings">?br /> <Var Address_01="any"/>
</List>
其中Qany指得是服务器的IP地址。但是,按照q种方式修改Q在我们的服务器上依然存在上面的问题Q不知道其它版本的Linuxpȝ是否可以解决。遇到相同问题的人可以尝试一下这U办法?br />
?1q个版本中,启动时已l不会出现这个问题了。但是当服务启动了之后,我在本地计算Z无法讉K。但是在服务器上通过localhost可以正常使用。这个问题可能是防火墙的问题Q于是加入了相应的规则,但是依然无法讉K。后来,l过阅资料Q得知如果是服务器上有多个网卡,需要对其进行绑定。否则,只能通过localhost来访问。原来是q样Q在服务器上通过览器,在管理员界面加入了相应的规则。重启服务,哈哈Q终于可以访问了Q?br />
最后,可以在sample面Ҏ持的媒体格式进行测试。在试的时候,q有一些小的插曌Ӏ因为我们现在多Ch用的是暴风媄韻I像我根本没有安装realplayer。所以,开始是出现rmvb格式的媒体无法观看的问题。后来重新安装了realoneplayer之后解决了上q问题。另外一个让我弄了一个多时的问题是Q无法播放MP3格式的文件。最后,把用来播放MP3的插件——mp3fformat.so的文件从Plugins目录UdQ重启系l,再移入,重启pȝ。后来就可以播放了。具体原因还不知道ؓ什么:Q不怎么P最后是大功告成了,可以正常使用了?br />
接下来的d是讄加蝲点,使用ftp目录中的媒体来供教研室的同学讉K了?br />
PSQHelixg不支持中文,所以接下来可能要作一件事情,是如何中文文件名可以被用?/p>