[SOLVED] FTP

General support questions
Post Reply
gdolidze
Posts: 4
Joined: 2015/06/29 16:14:56

[SOLVED] FTP

Post by gdolidze » 2015/06/29 16:19:08

I am trying to setup a FTP server.

I have followed these directions

Configuring ftp server on Centos 6:
Step 1 » Vsftpd is a lightweight FTP server package for Centos (linux) . Start installing package by issuing below command.
[root@leela ~]# yum -y install vsftpd

Step 2 » After installation, Open the file /etc/vsftpd/vsftpd.conf which is the config file for vsftpd ( I mean FTP server ) .
Replace YES to NO in the below line.
anonymous_enable=NO

Find and Uncomment the below lines
local_enable=YES

write_enable=YES

and uncomment this line to limit the users to their home directories.
chroot_local_user=YES

Step 3 » Create a folder where you want to store FTP data. In my case i’m going to create in / ( root folder ) like below .
[root@leela ~]# mkdir /ftp

Step 4 » Now start creating users for accessing ftp server .
[root@leela ~]# useradd -d /ftp/krizna krizna
[root@leela ~]# passwd krizna
Changing password for user krizna.
New password:

You just created username krizna with home directory /ftp/krizna .

Step 5 » Start vsftpd service by issuing the below command.
[root@leela ~]# service vsftpd start

and type this below command to start ftp server service automatically while booting.
[root@leela ~]# chkconfig --levels 235 vsftpd on

Step 6 » That’s it, Now we can check the FTP access .Create some files in /ftp/krizna folder

[root@leela ~]# touch /ftp/krizna/test


But i keep getting this on the ftp site.
Attachments
This is on google chrome
This is on google chrome
Capture.JPG (29.59 KiB) Viewed 740 times

aks
Posts: 3073
Joined: 2014/09/20 11:22:14

Re: FTP

Post by aks » 2015/06/29 18:16:42

Check the ownership/permissions on /ftp/krizna/test?

gdolidze
Posts: 4
Joined: 2015/06/29 16:14:56

Re: FTP

Post by gdolidze » 2015/06/29 18:24:59

I got it to work thinks it was the SElinux.

aks
Posts: 3073
Joined: 2014/09/20 11:22:14

Re: [SOLVED] FTP

Post by aks » 2015/06/30 16:51:00

Please mark the posting solved then.

Post Reply