AIX主机FTP到LINUX服务器

1、SHELL脚本test.sh

#!/usr/bin/ksh

ftp -n<<!

open 192.168.89.10

user oracle oracle

binary

cd /backup/exp/operation

lcd /oratmp/exp

prompt

mput *

close

bye

EOF

2、执行脚本报错

$ ./test.sh

?Invalid command

OOPS: cannot change directory:/home/oracle

Login failed.

OOPS: Not connected.

Local directory now /oratmp/exp

Interactive mode off.

Not connected.

Not connected.

$

3、在LINUX主机上修改参数

[root@L-AP-89-10 operation]# sestatus -b | grep ftp

allow_ftpd_anon_write                       off

allow_ftpd_full_access                      off

allow_ftpd_use_cifs                         off

allow_ftpd_use_nfs                          off

ftp_home_dir                                off

ftpd_connect_db                             off

httpd_enable_ftp_server                     off

tftp_anon_write                             off

[root@L-AP-89-10 operation]# setsebool -P  ftp_home_dir  on

[root@L-AP-89-10 operation]# sestatus -b | grep ftp

allow_ftpd_anon_write                       off

allow_ftpd_full_access                      off

allow_ftpd_use_cifs                         off

allow_ftpd_use_nfs                          off

ftp_home_dir                                on

ftpd_connect_db                             off

httpd_enable_ftp_server                     off

tftp_anon_write                             off

[root@L-AP-89-10 operation]# service vsftpd restart

Shutting down vsftpd:                                      [  OK  ]

Starting vsftpd for vsftpd:                                [  OK  ]

[root@L-AP-89-10 operation]#

4、还报错

P560A:/oratmp/script#./test.sh

Local directory now /oratmp/exp

Interactive mode off.

Could not create file.

5、继续修改参数

[root@L-AP-89-10 ~]# 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 - No SELinux policy is loaded.

#SELINUX=enforcing

SELINUX=disable

# SELINUXTYPE= can take one of these two values:

#     targeted - Targeted processes are protected,

#     mls - Multi Level Security protection.

SELINUXTYPE=targeted

[root@L-AP-89-10 ~]# setsebool -P allow_ftpd_full_access 1

[root@L-AP-89-10 ~]# service vsftpd restart

Shutting down vsftpd:                                      [  OK  ]

Starting vsftpd for vsftpd:                                [  OK  ]

[root@L-AP-89-10 ~]#

6、成功执行

P560A:/oratmp/script#./test.sh

Local directory now /oratmp/exp

Interactive mode off.

P560A:/oratmp/script#

转载于:https://blog.51cto.com/yunlongzheng/1771660

AIX主机FTP到LINUX服务器其中的磕碰记录相关推荐

  1. linux服务器关机日期,linux服务器last查看关机记录

    1.查看重启记录 last reboot命令 [root@test ~]# last reboot reboot system boot 2.6.-.el6.x Mon May : - : (+:) ...

  2. linux备份文件到ftp上,Linux服务器下用FTP上传下载备份文件

    从linux服务器批量上传/home/test文件夹里面文件到FTP(192.168.1.122)里面wwwroot目录 ##shell脚本如下: updir=/home/test todir=www ...

  3. Linux服务器创建及维护记录

    2019独角兽企业重金招聘Python工程师标准>>> 一.安装Linux系统 由于芯片SDK要求的是Ubuntu12.04,因此直接下载的ubuntu-12.04.5-deskto ...

  4. linux主机数据拷贝,linux 服务器之间拷贝文件

    scp就是secure copy,是用来进行远程文件拷贝的.数据传输使用ssh1,并且和ssh1使用相同的认证方式,提供相同的安全保证.与rcp不同的是,scp会要求你输入密码如果需要的话. 最简单的 ...

  5. spotlight怎么监控linux主机,Spotlight监控Linux服务器

    1.安装 Spotlight on Unix 下载地址:http://worlddownloads.quest.com.edgesuite.net/Repository/www.quest.com/l ...

  6. linux服务器运维实战记录,linux运维好书推荐《高性能Linux服务器运维实战》

    本书整体分为4个篇幅,以Linux运维平台下的开源应用软件为中心,涉及Linux运维的各个方面,主要从系统基础运维(命令.shell编程).系统性能调优.智能运维监控平台构建.运维实战案例四个方面展开 ...

  7. linux服务器last查看关机记录

    1.查看重启记录 last reboot命令 [root@test ~]# last reboot reboot system boot 2.6.32-431.el6.x Mon May 21 16: ...

  8. 服务器名字怎么修改linux,linux服务器修改主机名字

    linux服务器修改主机名字 内容精选 换一换 华为云帮助中心,为用户提供产品简介.价格说明.购买指南.用户指南.API参考.最佳实践.常见问题.视频帮助等技术文档,帮助您快速上手使用华为云服务. 介 ...

  9. 美国Linux服务器系统增强安全的配置

    美国Linux服务器系统可能出现的安全漏洞中,更多是由于不当的系统配置所造成的,用户们可以通过一些适当的安全配置来防止问题的发生.美国Linux服务器系统上运行的服务越多,不当配置的概率也就越高,那么 ...

  10. linux非root上传文件,root账号无法上传文件到Linux服务器

    普通权限的账号,通过ftp工具,可以正常连上Linux服务器,可以正常上传文件.但是root账号却无法上传文件. 网上搜了半天才知道,默认情况下vsftp是不允许root用户登录的,可以通过修改限制来 ...

最新文章

  1. 一步一步指引你在Windows7上配置编译使用Caffe(https://github.com/fengbingchun/Caffe_Test)
  2. 开源中国吸引我来的原因
  3. 【转】Bresenham快速画直线算法
  4. 优酷视频整段代理php,thinkphp仿优酷带数据源码|php仿优酷视频源码带后台功能强大...
  5. Vs Code 配置C/C++ 开发环境
  6. 深度学习修炼(五)——基于pytorch神经网络模型进行气温预测
  7. python字母变成数字怎么办_在Python中将字母转换为数字
  8. Valid Parentheses
  9. 半导体物理与器件pdf施敏_SiC半导体材料的基本性质和应用
  10. Python内置函数一览表
  11. Ipad使用技巧之——打印机
  12. 还原数据库SQL语句
  13. 数理统计实(试)验—双因素方差分析(无交互作用)excel操作分析方差分析表怎么看?
  14. 电脑常用技巧:常用DOS命令大全
  15. 达奇机器人编程学院_Wonder Workshop Dash Robot 达奇STEM编程机器人 中英文双语版
  16. Android Intent Service Usage
  17. 〖Python语法进阶篇⑱〗- 综合实战 - 抽奖系统之admin模块 - 抽奖系统之admin模块 - 实现对奖品的增删改操作
  18. PostgreSQL 技术文档
  19. tomcat支持中文
  20. 【语义分割】类别不平衡损失函数合集

热门文章

  1. Atitit.通过null 参数 反射  动态反推方法调用
  2. 裘慧明:跟世界上最聪明的人博弈
  3. 华夏基金:养老是基金业下一个20年最大风口
  4. 从原子操作走向模板部署,详解云上资源自动化部署新模式
  5. 【图像重建】基于matlab GUI霍夫曼图像重建(带面板)【含Matlab源码 1168期】
  6. 【气动学】基于matlab GPS卫星仿真【含Matlab源码 1094期】
  7. 【图像几何】基于matlab GUI图像空间变换(仿射变换)【含Matlab源码 841期】
  8. 【机械仿真】基于matlab GUI机械臂运动控制【含Matlab源码 063期】
  9. php操作mysql数据_详解PHP操作MySQL数据库
  10. 心公正白壁无瑕什么意思?_人工智能可以编写无瑕的代码后,编码会变得无用吗?