位置: 编程技术 - 正文

ubuntu服务器安装proftpd ftp服务器步骤(ubuntu服务器安装matlab2014a环境配置)

编辑:rootadmin

推荐整理分享ubuntu服务器安装proftpd ftp服务器步骤(ubuntu服务器安装matlab2014a环境配置),希望有所帮助,仅作参考,欢迎阅读内容。

文章相关热门搜索词:ubuntu服务器安装libreoffice,ubuntu服务器安装中文,ubuntu服务器安装图形界面,ubuntu服务器安装图形界面,ubuntu服务器安装中文,ubuntu服务器安装桌面,ubuntu服务器安装图形界面,ubuntu服务器安装教程20.04,内容如对您有帮助,希望把文章链接给更多的朋友!

一、安装

复制代码代码如下:sudo apt-get install proftpd

安装过程中会让选择运行模式:Standalone和Inetd,前者是单一服务器模式,后者是超级服务器模式,我选的Standalone。

二、配置

复制代码代码如下:sudo vim /etc/shells

加入如下代码复制代码代码如下:/bin/false

新建用户ftpuser1和用户组ftp并设置密码,此用户不需要有效的shell(更安全),所以选择/bin/false给fptuser1复制代码代码如下:sudo groupadd ftpsudo useradd ftpuser1 -p pass -g ftp -d /home/ftp -s /bin/false

在/home/ftp目录下新建upload和download目录并修改权限复制代码代码如下:cd /home/ftpsudo mkdir downloadsudo mkdir uploadcd /homesudo chmod ftpcd /home/ftpsudo chmod downloadsudo chmod upload

三、修改proftpd核心配置文件proftpd.conf

ubuntu服务器安装proftpd ftp服务器步骤(ubuntu服务器安装matlab2014a环境配置)

复制代码代码如下:sudo vim /etc/proftpd/proftpd.conf## /etc/proftpd/proftpd.conf -- This is a basic ProFTPD configuration file.# To really apply changes reload proftpd after modifications.## Includes DSO modulesInclude /etc/proftpd/modules.conf# Set off to disable IPv6 support which is annoying on IPv4 only boxes.UseIPv6 off # 我们不需要IPv6,所以offServerName "xiaoyigeng's FTP Server" # 修改服务器名ServerType standalone # 服务器运行模式,这里填standalone,也可以选inetdDeferWelcome on # 用户登陆时是否显示欢迎信息MultilineRFC onDefaultServer onShowSymlinks onTimeoutNoTransfer TimeoutStalled # 可以降到TimeoutIdle # 发呆超时DisplayLogin welcome.msg # 如果上边DeferWelcom设置成on,则显示welcome.msg中的内容DisplayFirstChdir .message # 更改目录时显示的内容ListOptions "-l"DenyFilter *.*/# Use this to jail all users in their homes DefaultRoot /home/ftp # ftp用户被限制在这个目录中# Users require a valid shell listed in /etc/shells to login.# Use this directive to release that constrain.# RequireValidShell off # 匿名用户要选on# Port is the standard FTP port.Port # 服务运行的端口# In some cases you have to specify passive ports range to by-pass# firewall limitations. Ephemeral ports can be used for that, but# feel free to use a more narrow range.# PassivePorts # PASV模式下用到的端口# If your host was NATted, this option is useful in order to# allow passive tranfers to work. You have to use your public# address and opening the passive ports used on your firewall as well.# MasqueradeAddress 1.2.3.4# To prevent DoS attacks, set the maximum number of child processes# to . If you need to allow more than concurrent connections# at once, simply increase this value. Note that this ONLY works# in standalone mode, in inetd mode you should use an inetd server# that allows you to limit maximum number of processes per service# (such as xinetd)MaxInstances # Set the user and group that the server normally runs at.User nobody # 服务器运行在nobody用户下Group nobody # 服务器运行在nobody组下# Umask is a good standard umask to prevent new files and dirs# (second parm) from being group and world writable.Umask # 默认新建文件的权限# Normally, we want files to be overwriteable.AllowOverwrite on # 文件可以被覆盖# Uncomment this if you are using NIS or LDAP to retrieve passwords:# PersistentPasswd off# Be warned: use of this directive impacts CPU average load!# Uncomment this if you like to see progress and transfer rate with ftpwho# in downloads. That is not needed for uploads rates.## UseSendFile off# Choose a SQL backend among MySQL or PostgreSQL.# Both modules are loaded in default configuration, so you have to specify the backend # or comment out the unused module in /etc/proftpd/modules.conf.# Use 'mysql' or 'postgres' as possible values.##<IfModule mod_sql.c># SQLBackend mysql#</IfModule>TransferLog /var/log/proftpd/xferlog # 传送文件日志SystemLog /var/log/proftpd/proftpd.log # 系统运行日志<IfModule mod_tls.c>TLSEngine off</IfModule><IfModule mod_quota.c>QuotaEngine on</IfModule><IfModule mod_ratio.c>Ratios on</IfModule></p><p># Delay engine reduces impact of the so-called Timing Attack described in# <a href=" It is on by default. <IfModule mod_delay.c>DelayEngine on</IfModule><IfModule mod_ctrls.c>ControlsEngine onControlsMaxClients 2ControlsLog /var/log/proftpd/controls.logControlsInterval 5ControlsSocket /var/run/proftpd/proftpd.sock</IfModule><IfModule mod_ctrls_admin.c>AdminControlsEngine on</IfModule># A basic anonymous configuration, no upload directories.# <Anonymous ~ftp># User ftp# Group nogroup# # We want clients to be able to login with "anonymous" as well as "ftp"# UserAlias anonymous ftp# # Cosmetic changes, all files belongs to ftp user# DirFakeUser on ftp# DirFakeGroup on ftp# # RequireValidShell off# # # Limit the maximum number of anonymous logins# MaxClients # # # We want 'welcome.msg' displayed at login, and '.message' displayed# # in each newly chdired directory.# DisplayLogin welcome.msg# DisplayFirstChdir .message# # # Limit WRITE everywhere in the anonymous chroot# <Directory *># <Limit WRITE># DenyAll# </Limit># </Directory># # # Uncomment this if you're brave.# # <Directory incoming># # # Umask is a good standard umask to prevent new files and dirs# # # (second parm) from being group and world writable.# # Umask # # <Limit READ WRITE># # DenyAll# # </Limit># # <Limit STOR># # AllowAll# # </Limit># # </Directory># # </Anonymous># Valid Logins # 以下部分为设置用户权限部分<Limit LOGIN> AllowUser ftpuser1 DenyAll</Limit><Directory /home/ftp> Umask AllowOverwrite off <Limit MKD STOR DELE XMKD RNRF RNTO RMD XRMD> DenyAll </Limit></Directory><Directory /home/ftp/download/> Umask AllowOverwrite off <Limit MKD STOR DELE XMKD RNEF RNTO RMD XRMD> DenyAll </Limit></Directory><Directory /home/ftp/upload/> Umask AllowOverwrite on <Limit READ RMD DELE> DenyAll </Limit> <Limit STOR CWD MKD> AllowAll </Limit></Directory>

四、启动、停止、重启服务器

复制代码代码如下:sudo /etc/init.d/proftpd startsudo /etc/init.d/proftpd stopsudo /etc/init.d/proftpd restart

五、维护

可以到/var/log/proftpd目录查看日志

查看ftp服务器负载命令 ftptop查看什么认登陆服务器 ftpwho

PS:proftpd中Limit的使用介绍

我们用到的比较多的可能是Limit的使用,Limit大致有以下动作,基本能覆盖全部的权限了。

CMD:Change Working Directory 改变目录MKD:MaKe Directory 建立目录的权限RNFR: ReName FRom 更改目录名的权限DELE:DELEte 删除文件的权限RMD:ReMove Directory 删除目录的权限RETR:RETRieve 从服务端下载到客户端的权限STOR:STORe 从客户端上传到服务端的权限READ:可读的权限,不包括列目录的权限,相当于RETR,STAT等WRITE:写文件或者目录的权限,包括MKD和RMDDIRS:是否允许列目录,相当于LIST,NLST等权限,还是比较实用的ALL:所有权限LOGIN:是否允许登陆的权限针对上面这个Limit所应用的对象,又包括以下范围AllowUser 针对某个用户允许的LimitDenyUser 针对某个用户禁止的LimitAllowGroup 针对某个用户组允许的LimitDenyGroup 针对某个用户组禁止的LimitAllowAll 针对所有用户组允许的LimitDenyAll 针对所有用户禁止的Limit

关于限制速率的参数为:TransferRate STOR|RETR 速度(Kbytes/s) user 使用者

ubuntu系统上svn服务器搭建步骤分享 想在一台Ubuntu上搭建SVN服务,在网上看到的教程都需要安装Apache,但我已经安装了Nginx了,不想仅仅为了SVN再多装一个Apache。经过一番摸索,终于搞定了

ubuntu.误删dpkg文件夹的解决方法 错误如下:复制代码代码如下:正在读取软件包列表...有错误!E:无法打开文件/var/lib/dpkg/status-open(2没有该文件或目录)E:无法解析或打开软件包的列表或是

Ubuntu电脑基础入门知识:新建文件夹 1、打开主文件夹1)在上面板栏中点菜单位置-主文件夹,打开自己的主文件夹窗口;2)在文件夹空白处点右键,选择第一个创建文件夹(F)命令;3)这时出来一

标签: ubuntu服务器安装matlab2014a环境配置

本文链接地址:https://www.jiuchutong.com/biancheng/356490.html 转载请保留说明!

上一篇:ubuntu12.10安装配置freeradius步骤(安装ubuntu 20.10)

下一篇:ubuntu系统上svn服务器搭建步骤分享(ubuntu server snap)

  • 应纳税额与应纳税所得额的比率
  • 离境退税政策文件
  • 固定资产一次性计入费用的账务处理
  • 季末资产总额的计算
  • 私企招残疾人可以辞职吗
  • 单位车辆交强险赔付流程
  • 出差回来报销差旅费,补付现金的会计分录
  • 企业所得税逾期申报怎么补报
  • 处置子公司的收益
  • 委托加工合同如何标注多个地址
  • 投资项目非股权比例
  • 企业发生什么
  • 减免税款期末有余额吗
  • 汇算清缴后如何进行调帐处理
  • 施工企业建账指的是什么
  • 企业职工不稳定,还能享受小微企业所得税优惠吗?
  • 注册资金怎么提出来
  • 应纳税所得额是开票金额吗
  • 事业单位事业收入和经营收入要上缴财政
  • 税务总局关于四流一致解答
  • 投资性房地产的后续计量从成本模式转为公允价值模式的
  • 动漫软件公司的发展前景
  • 出口业务怎么做分录
  • 什么是资产减值准备计提
  • 产负债表的负债项目,显示了企业所负担债务的
  • win7系统中病毒怎么办
  • 个税返还的会计处理方法
  • PHP:sys_getloadavg()的用法_misc函数
  • 德纳里山
  • 收回贷款本息是包含本金吗
  • 使用的英文
  • 企业之间是什么意思
  • 小企业会计科目表
  • 完美解决索尼电视arc无声音
  • 开出增值税发票一定要确认收入吗?
  • 前端网页设计的三大技术
  • vue技术解密
  • 2022年最新公务员职务职级对照表
  • Php数组转json 参数不带引号
  • 会议费需要纳税调整吗
  • 现金劳务收入会计分录
  • 基于python语言
  • rust基础操作
  • 企业车辆年检费多少钱
  • 劳务派遣公司必须有劳务派遣证吗
  • 新的会计制度
  • 小企业会计准则2023电子版
  • 增值税进项发票是什么意思
  • 公司员工报销没有发票挂内账有风险吗
  • 一般销售商品收入怎么算
  • 无法收回离职员工合法吗
  • 支付利息的账务处理
  • 坏账损失记入
  • 记账凭证可以先做贷方吗
  • 会计结账一般都是谁做
  • rsync如何同步隐藏文件和排除文件?rsync同步隐藏文件和排除文件的方法
  • centos6.10配置网络
  • winxp系统介绍
  • xp系统进程
  • linux操作系统常用操作命令
  • macbook外接多个显示器
  • Slackware Linux init 进程
  • 注册表 windows
  • windows 10预览版
  • unity自带的代码编辑器
  • js数据的基本类型有哪些
  • css标准规范
  • Node.js中的事件循环是什么
  • python算法怎么用
  • jquery渐变效果
  • Unity for Absolute Beginners(一)
  • HttpClient.execute() 阻塞问题
  • 广西公安厅有几个处长
  • 山东省税务局网上办税服务厅
  • 北京户籍网官方网站
  • 电子税务局报表报送在哪里
  • 2018年小微企业所得税优惠政策
  • 税务逾期未申报是什么意思
  • 国税发票如何查询真伪
  • 地税是什么时候开始征收耕地的呢
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

    网站地图: 企业信息 工商信息 财税知识 网络常识 编程技术

    友情链接: 武汉网站建设