ls: Login failed: 530 Permission denied.

1. ls: Login failed: 530 Permission denied.

(1)问题描述

# ftp服务本身是对本地用户权限开放的,可是此处报530的错误

[kiosk@foundation78 Desktop]$ lftp 172.25.254.138 -u westos
Password: lftp westos@172.25.254.138:~> ls      
 ls: Login failed: 530 Permission denied. 

(2)排错

 # 在服务端
 [root@localhost ftp]# systemctl status vsftpd  # 查看服务有没有开启

在这里插入图片描述

 [root@localhost ftp]# firewall-cmd --list-all  #看ftp服务添加到策略里没有

在这里插入图片描述

[root@localhost vsftpd]# cat ftpusers  # 查看用户是否在永久黑名单里,发现没有	 

在这里插入图片描述

[root@localhost vsftpd]# cat ftpusers  # 查看用户是否在永久黑名单里,发现没有

在这里插入图片描述

[root@localhost vsftpd]# cat user_list  # 查看用户是否在临时黑名单里,果然在

在这里插入图片描述
(3)取消westos用户的黑名单即可

2.mkdir: Access failed: 550 Create directory operation failed. (file1)

(1)问题描述

lftp westos@172.25.254.138:~> put /etc/inittab
put: Access failed: 553 Could not create file. (inittab)
lftp westos@172.25.254.138:~> mkdir file1
mkdir: Access failed: 550 Create directory operation failed. (file1)

(2)在服务端查错

[root@localhost vsftpd]# ll /home  # 我发现westos对自己没有写的权限
total 8
drwx------.  3 linux   linux     74 Oct 29 19:37 linux
drwx------. 14 student student 4096 Oct 27 22:39 student
dr-xr-xr-x.  5 westos  westos  4096 Nov  4 00:18 westos
[root@localhost vsftpd]# chmod 700 /home/westos/
[root@localhost vsftpd]# ll /home
total 8
drwx------.  3 linux   linux     74 Oct 29 19:37 linux
drwx------. 14 student student 4096 Oct 27 22:39 student
drwx------.  5 westos  westos  4096 Nov  4 00:18 westos 

(3)问题解决

  • 1
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
登录失败的原因是权限被拒绝。根据引用\[1\]和引用\[2\]的描述,登录FTP时出现530 Permission denied错误可能是由于用户权限设置不正确导致的。在引用\[3\]中,登录FTP时出现530 Login incorrect错误可能是由于密码输入错误导致的。 要解决这个问题,可以尝试以下几个步骤: 1. 确保用户名和密码输入正确。请检查用户名和密码是否正确输入,并确保没有输入错误的字符或空格。 2. 检查FTP服务器的用户权限设置。请确保FTP服务器的用户权限设置正确,并且允许指定的用户访问FTP服务。 3. 检查FTP服务器的配置文件。请检查FTP服务器的配置文件,确保没有设置任何限制或错误的配置。 4. 检查防火墙设置。如果您的系统上启用了防火墙,请确保FTP服务的端口已经打开,并且允许FTP连接通过防火墙。 如果以上步骤都没有解决问题,建议您查阅FTP服务器的文档或联系系统管理员以获取更详细的帮助。 #### 引用[.reference_title] - *1* [ls: Login failed: 530 Permission denied.](https://blog.csdn.net/wzt888_/article/details/83758010)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item] - *2* *3* [root登陆530 Permission denied530 Login incorrect解决](https://blog.csdn.net/weixin_43670802/article/details/104861184)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item] [ .reference_list ]
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值