redhat 5.4 ftp服务器搭建故障处理
来源:互联网 发布:建个网络平台多少钱 编辑:程序博客网 时间:2024/05/21 14:53
请谨记,你的每一步操作都有可能导致系统的文件串改。。
1、能登录不能上传文件
C:\Users\Administrator.WIN-20121228FDJ>ftp 192.168.1.100Connected to 192.168.1.100.220 Welcome to blah FTP service @ forilen .User (192.168.1.100:(none)): anonymous331 Please specify the password.Password:230 Login successful.ftp> cd pub250 Directory successfully changed.ftp> put C:\Users\Administrator.WIN-20121228FDJ\Desktop\config.ini200 PORT command successful. Consider using PASV.553 Could not create file.ftp>解决办法:(1)关闭selinux
[root@localhost ftpuser]# setenforce 0[root@localhost ftpuser]# service vsftpd restartShutting down vsftpd: [ OK ]Starting vsftpd for vsftpd: [ OK ](1)关闭linux同时关闭启动selinux
vi /etc/sysconfig/selinux# This file controls the state of SELinux on the system.# SELINUX= can take one of these three values:# enforcing - SELinux security policy is enforced.# permissive - SELinux prints warnings instead of enforcing.# disabled - SELinux is fully disabled.SELINUX=enforcing#SELINUX=disabled# SELINUXTYPE= type of policy in use. Possible values are:# targeted - Only targeted network daemons are protected.# strict - Full SELinux protection.SELINUXTYPE=targeted2、匿名用户和本地用户家目录及权限问题
根据Linux用户最小权限原则,本地用户登录ftp服务器的家目录可以手动指定,anonymous的默认家目录貌似不能手动指定
本地用户家目录:vi /etc/vsftpd/vsftpd.conf
# Default umask for local users is 077. You may wish to change this to 022,# if your users expect that (022 is used by most other ftpd's)local_umask=022local_root=/var/ftp/pub/ftpuser//本地用户家目录匿名用户家目录:/var/ftp/,但是对于一般情况下,匿名用户如果是通过Windows系统的dos进入ftp服务器,默认路径是不能上传文件的,因为/var/ftp/的权限不够大
3、有时候遇到vsftpd远程开启失败,就需要手动开启
[root@livedvd ~]# setsebool ftp_home_dir 1[root@livedvd ~]# getsebool -a |grep ftpallow_ftpd_anon_write --> offallow_ftpd_full_access --> offallow_ftpd_use_cifs --> offallow_ftpd_use_nfs --> offftp_home_dir --> onftpd_connect_db --> offftpd_use_passive_mode --> offhttpd_enable_ftp_server --> offtftp_anon_write --> off[root@livedvd ~]# service vsftpd restartShutting down vsftpd: [ OK ]Starting vsftpd for vsftpd: [ OK ]如果[root@livedvd vsftpd]# getsebool -a |grep ftp bash: /usr/sbin/getsebool: Input/output error,需要执行yum安装
[root@livedvd ~]# yum provides "*bin/setsebool"Loaded plugins: fastestmirror, refresh-packagekit, securitybase | 3.7 kB 00:00 base/primary_db | 3.4 MB 00:27 extras | 3.5 kB 00:00 extras/primary_db | 19 kB 00:00 updates | 3.4 kB 00:00 updates/primary_db | 4.7 MB 00:40 base/filelists_db | 4.9 MB 00:39 extras/filelists_db | 10 kB 00:00 updates/filelists_db | 3.9 MB 00:32 policycoreutils-2.0.83-19.30.el6.i686 : SELinux policy core utilitiesRepo : baseMatched from:Filename : /usr/sbin/setseboolpolicycoreutils-2.0.83-19.30.el6.i686 : SELinux policy core utilitiesRepo : installedMatched from:Filename : /usr/sbin/setsebool12天倒计时ing ^ _ ^
- redhat 5.4 ftp服务器搭建故障处理
- redhat下搭建ftp服务器
- 在Redhat 上搭建FTP服务器
- redhat Linux6下搭建FTP服务器
- Redhat 5 搭建基于 ftp 的 yum 服务器
- Redhat linux搭建ftp
- RedHat配置FTP服务器
- RedHat配置FTP服务器 .
- redhat ftp服务器设置
- FTP服务器上传故障 排解
- redhat dns服务器搭建
- redhat yum服务器搭建
- Redhat搭建SVN服务器
- RedHat samba服务器搭建
- 判断服务器故障,处理
- Redhat Enterprise Linux中使用vsftpd搭建指定用户指定目录的ftp服务器的方法
- 局域网搭建FTP服务器
- centos 搭建 ftp服务器
- 数组中只出现一次的数字
- 第十四周上机实践项目--------数组的排序
- MongoDB 复制集(二) 选举 自动故障切换
- Android 文件上传,解决NetworkOnMainThreadException问题!
- hdu 3487 Play with Chain (Splay树) 区间切割 插入 翻转
- redhat 5.4 ftp服务器搭建故障处理
- 设计模式之---------状态模式
- javascript之jQuery 性能优化技巧
- RMAN Restore Database/Tablespace
- rpm 包管理器应用指南
- HUST 1328 String KMP 递增思路
- Java读取excel的相关的原理和方法介绍
- 1182C语言--数日子
- OC之【NSString】