查看文件的前几行和后几行

前几行:head -n *.* 后几行:tail -n *.*

trx trx Published on 2016-06-07

虚拟用户个人配置

基本配置 local_root=/var/ftp/P2016M11A-YGXD-002 chroot_local_user=YES 全部权限

trx trx Published on 2016-06-06

vsftpd虚拟用户权限配置

在虚拟用户的个人配置文件中修改: 能上传下载,不能删除: write_enable=YES cmds_allowed=ABOR,CWD,LIST,MDTM,MKD,NLST,PASS,PASV,PORT,PWD,QUIT,RETR,RNFR,RNTO,SIZE,STOR,TYPE,USER,REST

trx trx Published on 2016-06-06

使用createrepo创建yum仓库

首先安装createrepo: 进入到rpm的安装包路径rpm -ivh createrepo依赖包都装上就好了 然后运行命令: createrepo -v 光盘复制文件的目录 完成后再编辑/etc/yum.repos.d/*.repo文件

trx trx Published on 2016-06-05

本地yum源配置

在/etc/yum.repos.d/新建*.repo的文件,添加以下内容: [name] name=centos baseurl=file:///var/yum enabled=1 gpgcheck=0

trx trx Published on 2016-06-05

使用vsftpd中的一些小问题

1、目录权限不能给777 2、属组一定要对 3、开启user_local_enable之后不能登陆在vsftpd.conf中添加allow_writeable_chroot=YES

trx trx Published on 2016-06-03

vsftpd虚拟用户权限配置和本地用户一样

添加virtual_use_local_privs=YES就可以了

trx trx Published on 2016-06-02

vsftpd虚拟用户配置

1、建立虚拟用户: vim /etc/vsftpd/vuser_passwd.txt 输入需要使用的虚拟用户名字和密码 奇数是用户偶数是密码如下 tangrx 111111 2、建立db数据库,同时只有root用户才能读写: db_load -T -t hash -f /etc/vsftpd/vus

trx trx Published on 2016-05-28

实现虚拟用户、加密、端口更改vsftpd配置文件内容

# Example config file /etc/vsftpd/vsftpd.conf # # The default compiled in settings are fairly paranoid. This sample file # loosens things up a bit,

trx trx Published on 2016-05-28

openssl生成证书

通过以下脚本可生成本地证书 #!/bin/bash # 询问用户想要生成哪种类型的证书 echo "请选择证书类型:" echo "1) RSA" echo "2) ECDSA" read -p "选择一个选项(1或2):" CERT_TYPE # 设置证书有效期为10年 VALID_DAYS=

trx trx Published on 2016-05-28
Previous Next