HOW TO UPLOAD FILE ON VSFTPD SERVER

3,740 views
Skip to first unread message

Rakesh Mevada

unread,
Apr 26, 2012, 7:46:22 AM4/26/12
to vg...@googlegroups.com
Hi Expert


       Please resolve my problem on vsftpd configration,how to upload file on ftpsee i have done all the instollation confi step but same problem please below my confi details.

1 st install vsftpd pakage
2 service vsftpd restart
3 chkconfig vsftpd on
4 create derectory /var/ftp/pub/incoming and outgoing
5 crate directory /var/ftp/ upload
6 confi of file /etc/vsftpd/vsftpd.conf
            all configration line has i had uncommect but tell me i how can i upload file on ftp or whare i makinng mistack

local_enable=YES
anonymous_enable=YES
write_enable=YES
local_umask=022
anon_upload_enable=YES
anon_mkdir_write_enable=YES
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
chown_uploads=YES
chown_username=whoever
ascii_upload_enable=YES
ascii_download_enable=YES

ftpd_banner=Welcome to blah FTP service
chroot_local_user=YES
chroot_list_enable=YES
ls_recurse_enable=YES

listen=YES
local_root=/var/ftp/pub

pam_service_name=vsftpd
userlist_enable=YES
tcp_wrappers=YES


Regards

Rakesh Mevada
3rdwire Techknology
ahmedbad,himmatnagar,palanpur
9825107206





Rahul Walunj

unread,
Apr 26, 2012, 8:21:29 AM4/26/12
to vg...@googlegroups.com
Please share error that you are getting while you are uploading the file.

Also, check SELinux boolean's as well

Rakesh Mevada

unread,
Apr 26, 2012, 8:56:12 AM4/26/12
to vg...@googlegroups.com
can u sguest me step by step file uploding setting,b,coz i m not getting eny error,but i m not understand how to upload file,i need ur suggesion


regards
rakesh

On Thu, Apr 26, 2012 at 5:51 PM, Rahul Walunj <r.wal...@gmail.com> wrote:
Please share error that you are getting while you are uploading the file.

Also, check SELinux boolean's as well

--
Please read http://www.catb.org/~esr/faqs/smart-questions.html before posting.
You received this message because you are subscribed to the "Vibrant GNU/Linux User Group".
To stop receiving emails from this group, mail to VGLUG+un...@googlegroups.com
To post to this group, send email to VG...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/VGLUG

Rahul Walunj

unread,
Apr 27, 2012, 1:12:44 AM4/27/12
to vg...@googlegroups.com
This is my /etc/vsftpd/vsftpd.conf file :-
-----------------------------------------------------
anonymous_enable=YES
local_enable=YES

write_enable=YES
local_umask=022
anon_upload_enable=YES
anon_mkdir_write_enable=YES
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
xferlog_std_format=YES
ascii_download_enable=YES
ascii_download_enable=YES
ftpd_banner=Welcome to blah FTP service.
listen=YES
pam_service_name=vsftpd
userlist_enable=YES
tcp_wrappers=YES
-----------------------------------------------------

# setsebool -P ftp_home_dir on
# setsebool -P allow_ftpd_anon_write on

/etc.init.d/vsftpd restart

Refer the below site :-
http://www.cyberciti.biz/faq/linux-unix-ftp-commands/
http://www.thegeekstuff.com/2010/06/ftp-sftp-tutorial/


Vishal Joshi

unread,
Apr 27, 2012, 1:03:37 AM4/27/12
to vg...@googlegroups.com
On Thu, Apr 26, 2012 at 5:16 PM, Rakesh Mevada <rakesh...@gmail.com> wrote:
Hi Expert


       Please resolve my problem on vsftpd configration,how to upload file on ftpsee i have done all the instollation confi step but same problem please below my confi details.

1 st install vsftpd pakage
2 service vsftpd restart
3 chkconfig vsftpd on
4 create derectory /var/ftp/pub/incoming and outgoing
5 crate directory /var/ftp/ upload
6 confi of file /etc/vsftpd/vsftpd.conf
            all configration line has i had uncommect but tell me i how can i upload file on ftp or whare i makinng mistack


Hi Rahul,

If you are using the default configuration file, its ok.
 
local_enable=YES
anonymous_enable=YES

This will  allow anonymous users to browse your ftp directory.
 
write_enable=YES
local_umask=022
anon_upload_enable=YES

 Comment out this line as keeping it YES will allow anonymous users to upload to your ftp server, possibly a security breach.

anon_mkdir_write_enable=YES

Comment out this line as it will allow anonymous ftp users to create new directories to your ftp server.
 
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES

This is the connection port for FTP data transfer.
 
chown_uploads=YES
chown_username=whoever
ascii_upload_enable=YES
ascii_download_enable=YES

ftpd_banner=Welcome to blah FTP service
chroot_local_user=YES

This will create a chroot jail for your users logging to the ftp server.
 
chroot_list_enable=YES

Here you need to provide the user-list file after enabling chroot.
 
ls_recurse_enable=YES

Comment out this line
 

listen=YES
local_root=/var/ftp/pub

You can also provide anon_root=/<your-preferred-directory>, for example say, you want to upload files to /var/ftp/pub/uploads, so when you will access the ftp server from browser, like, ftp://yourdomain.com, it will land to /var/ftp/pub/uploads.

Also as we have defined anonymous_enable=YES, we need to define an anon_root directory that users will visit.

Hope this helps.
 

pam_service_name=vsftpd
userlist_enable=YES
tcp_wrappers=YES


Regards


Rakesh Mevada
3rdwire Techknology
ahmedbad,himmatnagar,palanpur
9825107206





--
Please read http://www.catb.org/~esr/faqs/smart-questions.html before posting.
You received this message because you are subscribed to the "Vibrant GNU/Linux User Group".
To stop receiving emails from this group, mail to VGLUG+un...@googlegroups.com
To post to this group, send email to VG...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/VGLUG



Best regards,
Vishal Girish Joshi

Rahul Walunj

unread,
Apr 27, 2012, 1:30:59 AM4/27/12
to vg...@googlegroups.com
Thanks for the valuable information.

Rakesh Mevada

unread,
Apr 27, 2012, 4:02:06 AM4/27/12
to vg...@googlegroups.com
HI Vishal,Girish,rahul


         Thanks for ur propt rep.

regards
rakesh mevada
Reply all
Reply to author
Forward
0 new messages