成人免费xxxxx在线视频软件_久久精品久久久_亚洲国产精品久久久_天天色天天色_亚洲人成一区_欧美一级欧美三级在线观看

編輯CentOS vsftpd虛擬用戶文件數(shù)據(jù)

系統(tǒng) Linux
編輯這個(gè)CentOS vsftpd虛擬用戶名單文件,在其中加入用戶的用戶名和口令信息。格式很簡(jiǎn)單:“一行用戶名,一行口令”。

特別值得一提的是CentOS vsftpd虛擬用戶有很多值得學(xué)習(xí)的地方,這里我們主要介紹建立CentOS vsftpd虛擬用戶,包括介紹CentOS vsftpd虛擬用戶數(shù)據(jù)庫(kù)文件等方面。

1.先建立CentOS vsftpd虛擬用戶名單文件:
[root@KcentOS5 ~]# touch /etc/vsftpd/virtusers
建立了一個(gè)虛擬用戶名單文件,這個(gè)文件就是來(lái)記錄CentOS vsftpd虛擬用戶的用戶名和口令的數(shù)據(jù)文件,我這里給它命名為virtusers。為了避免文件的混亂,我把這個(gè)名單文件就放置在/etc/vsftpd/下。

2.編輯CentOS vsftpd虛擬用戶名單文件:
[root@KcentOS5 ~]# vi /etc/vsftpd/virtusers
near
123456near
mello
123456mello
編輯這個(gè)CentOS vsftpd虛擬用戶名單文件,在其中加入用戶的用戶名和口令信息。格式很簡(jiǎn)單:“一行用戶名,一行口令”。

3.生成虛擬用戶數(shù)據(jù)文件:
[root@KcentOS5 ~]# db_load -T -t hash -f /etc/vsftpd/virtusers /etc/vsftpd/virtusers.db
這里我順便把這個(gè)命令簡(jiǎn)單說(shuō)明一下
察看db4的db_load命令使用方法:
[root@KSRV2 vsftpd]# db_load
usage: db_load [-nTV] [-c name=value] [-f file]
[-h home] [-P password] [-t btree | hash | recno | queue] db_file
usage: db_load -r lsn | fileid [-h home] [-P password] db_file
解釋在本篇中,db_load命令幾個(gè)相關(guān)選項(xiàng)很參數(shù)

The -T option allows non-Berkeley DB applications to easily load text files into databases.
If the database to be created is of type Btree or Hash, or the keyword keys is specified as set, the input must be paired
lines of text, where the first line of the pair is the key item, and the second line of the pair is its corresponding data
item. If the database to be created is of type Queue or Recno and the keywork keys is not set, the input must be lines of text, where each line is a new data item for the database.
選項(xiàng)-T允許應(yīng)用程序能夠?qū)⑽谋疚募D(zhuǎn)譯載入進(jìn)數(shù)據(jù)庫(kù)。由于我們之后是將CentOS vsftpd虛擬用戶的信息以文件方式存儲(chǔ)在文件里的,為了讓Vsftpd這個(gè)
應(yīng)用程序能夠通過(guò)文本來(lái)載入用戶數(shù)據(jù),必須要使用這個(gè)選項(xiàng)。
If the -T option is specified, the underlying access method type must be specified using the -t option.
如果指定了選項(xiàng)-T,那么一定要追跟子選項(xiàng)-t

Specify the underlying access method. If no -t option is specified, the database will be loaded into a database of the same type as was dumped; for example, a Hash database will be created if a Hash database was dumped.
Btree and Hash databases may be converted from one to the other. Queue and Recno databases may be converted from one to the other. If the -k option was specified on the call to db_dump then Queue and Recno databases may be converted to Btree or Hash, with the key being the integer record number.
子選項(xiàng)-t,追加在在-T選項(xiàng)后,用來(lái)指定轉(zhuǎn)譯載入的數(shù)據(jù)庫(kù)類型。擴(kuò)展介紹下,-t可以指定的數(shù)據(jù)類型有Btree、Hash、Queue和Recon數(shù)據(jù)庫(kù)。這里,接下來(lái)我們需要指定的是Hash型。

4.察看生成的CentOS vsftpd虛擬用戶數(shù)據(jù)文件
[root@KcentOS5 ~]# ll /etc/vsftpd/virtusers.db
-rw-r--r-- 1 root root 12288 Sep 16 03:51 /etc/vsftpd/virtusers.db
需要特別注意的是,以后再要添加虛擬用戶的時(shí)候,只需要按照“一行用戶名,一行口令”的格式將新用戶名和口令添加進(jìn)虛擬用戶名單文件。但是光這樣做還不夠,不會(huì)生效的哦!還要再執(zhí)行一遍“ db_load -T -t hash -f 虛擬用戶名單文件CentOS vsftpd虛擬用戶數(shù)據(jù)庫(kù)文件.db ”的命令使其生效才可以!

【編輯推薦】

  1. CentOS Vsftpd配置文件服務(wù)調(diào)整
  2. 簡(jiǎn)介CentOS vsftpd使用安裝與配置問(wèn)題
  3. minicom軟件在CentOS系統(tǒng)中使用
  4. CentOS vsftp系統(tǒng)帳戶安裝建立
  5. Centos設(shè)置靜態(tài)IP及修改Centos配置文件
責(zé)任編輯:佚名 來(lái)源: csdn
相關(guān)推薦

2010-02-22 18:27:14

CentOS vsft

2010-02-22 17:07:16

CentOS vsft

2010-01-13 16:13:38

centos vsft

2011-02-24 09:14:37

vsFTPd虛擬用戶

2011-03-04 10:05:10

Vsftpd虛擬用戶

2011-03-04 14:47:58

Vsftpd虛擬用戶

2011-03-03 17:02:50

Vsftpd

2010-12-27 13:26:25

FreeBSDvsftpd虛擬用戶

2011-02-21 17:32:37

Vsftpd

2010-02-04 13:43:26

Linux vsFTP

2010-07-01 13:29:08

vsftpd

2010-02-22 17:45:50

CentOS VSFT

2010-01-14 17:44:17

CentOS vsft

2010-01-13 13:50:53

CentOS Vsft

2011-08-23 17:26:05

2017-05-23 14:56:49

MySQLvsftpd虛擬用戶

2011-03-04 09:59:41

Vsftpd匿名用戶

2010-05-20 12:57:38

2015-08-25 14:34:20

LinuxvsftpdFTP

2011-03-04 13:26:08

Vsftpd虛擬賬號(hào)
點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號(hào)

主站蜘蛛池模板: 国产激情精品 | 91婷婷韩国欧美一区二区 | 在线视频一区二区三区 | 亚洲久草视频 | 亚洲免费观看 | 欧美1区| 亚洲免费在线 | 免费视频一区 | 亚洲天堂999 | 国产在线二区 | 亚洲精品中文在线 | 亚洲欧美综合精品久久成人 | 久久人体视频 | 成人国产在线视频 | 国产亚洲一区二区三区在线观看 | 亚洲第一福利网 | 羞羞的视频在线观看 | 欧美亚洲高清 | 久久精品亚洲欧美日韩精品中文字幕 | 精品久久电影 | 黄a大片 | 国产做a爱片久久毛片 | 国内精品久久久久久影视8 最新黄色在线观看 | 亚洲三区在线观看 | 99爱在线 | www.99热这里只有精品 | 在线 丝袜 欧美 日韩 制服 | se婷婷| 欧美精品久久久 | 国产精品国产精品国产专区不片 | 日韩精品免费视频 | 欧美精品一区二区三区在线播放 | 亚洲iv一区二区三区 | 亚洲成在线观看 | 久操伊人 | 中文字幕亚洲精品 | 亚洲成人精品 | 国产欧美日韩一区二区三区在线 | 国产一区二区精品在线观看 | 日韩中文字幕一区 | 国产欧美一级 |