How to change FTP home directory in Centos 6
1
vote
1
answer
3650
views
I have created one Linux CentOS 6 instance in Amazon EC2 and installed cPanel on it and started running my websites there. The issue I face was when I try to FTP to the instance with the following config
IP : Instance IP
Username : centos
Password : Blank
Mode : SFTP
SFTP Key : Private KEY (PEM) Provided by Amazon EC2 dashboard
I got to view only
> /home/centos
directory
But I want to view the main directory which is back to home directory
When I tried to click
> ..
in FileZilla it says
> "Permission Denied"
So I tried the following
> vipw /etc/passwd
and changed
> centos:x:1000:1000:Cloud User:/home/centos:/bin/bash
to
> centos:x:1000:1000:Cloud User:/ :/bin/bash
and even to
> centos:x:1000:1000:Cloud User: :/bin/bash
However , after this change FTP stopped logging in
Finally, I reverted back to
> centos:x:1000:1000:Cloud User:/home/centos:/bin/bash
Kindly guide me to achieve this.
Asked by Raja Gopal
(111 rep)
Jul 23, 2015, 05:39 AM
Last activity: Apr 11, 2024, 12:05 PM
Last activity: Apr 11, 2024, 12:05 PM