admin管理员组

文章数量:1550655

今天用xftp连接了一下 自己创建得系统

发现使用怎么也创建不了文件

原因是 你使用得账号权限不够!!!

除了home下 得权限是自己得 其他权限都是root

这个时候想要创建文件只能使用root账号登录

但是默认情况下 是不允许直接使用root账号登录

使用root账号登录

1、编辑vim /etc/ssh/sshd_config文件

把PermitRootLogin Prohibit-password 添加#注释掉
新添加:PermitRootLogin yes
更改PermitEmptyPasswords为 no (这个可能已经是no)

2、然后重启ssh服务

service ssh restart(或者执行:/etc/init.d/ssh restart)

3、重启服务器

shutdown -r now

这样就可以直接使用root账号登录

但是如果还没有对root账号设置登录密码 可以先使用xshell通过

sudo passwd root 命令来设置密码

本文标签: 文件夹XFTP