Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 15th December 2012, 14:39
gauravrishi gauravrishi is offline
Junior Member
 
Join Date: Dec 2012
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Smile Virtual Hosting With vsftpd And MySQL On Ubuntu 12.04

I have configure Virtual Hosting With vsftpd And MySQL On Ubuntu 12.04 and everything is working. Follow all the steps. But when i connect FTP and enter the credentials then i show all the directory of different user. I want that only authoriszed user directory should show. I am not able to connect with FTP if i makr chroot_local_user=NO in /etc/vsftpd.conf other wise i show the error

Response: 220 (vsFTPd 2.3.5)
Command: USER testuser
Response: 331 Please specify the password.
Command: PASS ******
Response: 500 OOPS: vsftpd: refusing to run with writable root inside chroot()
Error: Critical error
Error: Could not connect to server
Reply With Quote
Sponsored Links
  #2  
Old 15th December 2012, 15:00
Landi20 Landi20 is offline
Junior Member
 
Join Date: Dec 2011
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Default

its saying that user dont exist in chroot file
see if add that user to chroot file
Reply With Quote
  #3  
Old 15th December 2012, 15:07
gauravrishi gauravrishi is offline
Junior Member
 
Join Date: Dec 2012
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Smile reply

where do i need to create that file. Please explain
Reply With Quote
  #4  
Old 15th December 2012, 15:59
Landi20 Landi20 is offline
Junior Member
 
Join Date: Dec 2011
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Default

yes
in /etc/vsftpd.chroot_list
Reply With Quote
  #5  
Old 15th December 2012, 17:44
gauravrishi gauravrishi is offline
Junior Member
 
Join Date: Dec 2012
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Smile Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail (Ubuntu 12.10

I have follow all the step given under this Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail (Ubuntu 12.10) and was sucessfully done all step but i am getting this error while restarting postfix
/usr/sbin/postconf: warning: /etc/postfix/main.cf: unused parameter: virtual_maildir_limit_message="The user you are trying to reach is over quota."
/usr/sbin/postconf: warning: /etc/postfix/main.cf: unused parameter: virtual_maildir_extended=yes
/usr/sbin/postconf: warning: /etc/postfix/main.cf: unused parameter: virtual_mailbox_limit_override=yes
/usr/sbin/postconf: warning: /etc/postfix/main.cf: unused parameter: virtual_overquota_bounce=yes
/usr/sbin/postconf: warning: /etc/postfix/main.cf: unused parameter: virtual_maildir_limit_message="The user you are trying to reach is over quota."
/usr/sbin/postconf: warning: /etc/postfix/main.cf: unused parameter: virtual_maildir_extended=yes


and also not able to login into webmail getting ERROR:
ERROR: Connection dropped by IMAP server.
. I have checked that all service are running fine but there is no maildir under /home/vmail/

Kindly help me in this
Reply With Quote
  #6  
Old 16th December 2012, 00:00
Landi20 Landi20 is offline
Junior Member
 
Join Date: Dec 2011
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Default

the other problem with ftp is solve your not
Reply With Quote
  #7  
Old 16th December 2012, 15:07
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Quote:
Originally Posted by gauravrishi View Post
I have follow all the step given under this Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail (Ubuntu 12.10) and was sucessfully done all step but i am getting this error while restarting postfix
/usr/sbin/postconf: warning: /etc/postfix/main.cf: unused parameter: virtual_maildir_limit_message="The user you are trying to reach is over quota."
/usr/sbin/postconf: warning: /etc/postfix/main.cf: unused parameter: virtual_maildir_extended=yes
/usr/sbin/postconf: warning: /etc/postfix/main.cf: unused parameter: virtual_mailbox_limit_override=yes
/usr/sbin/postconf: warning: /etc/postfix/main.cf: unused parameter: virtual_overquota_bounce=yes
/usr/sbin/postconf: warning: /etc/postfix/main.cf: unused parameter: virtual_maildir_limit_message="The user you are trying to reach is over quota."
/usr/sbin/postconf: warning: /etc/postfix/main.cf: unused parameter: virtual_maildir_extended=yes


and also not able to login into webmail getting ERROR:
ERROR: Connection dropped by IMAP server.
. I have checked that all service are running fine but there is no maildir under /home/vmail/

Kindly help me in this
Looks like you didn't compile Postfix with the quota patch.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #8  
Old 16th December 2012, 15:48
gauravrishi gauravrishi is offline
Junior Member
 
Join Date: Dec 2012
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Cool reply

Hi, problem of ftp not resolved. I have created file and the user testuser and getting the same problem. However for postfix i have already updated the postfix patches. When i was shoting this command dpkg -i postfix_2.9.3-2ubuntu2_amd64.deb postfix-mysql_2.9.3-2ubuntu2_amd64.deb its was giving error..

root@mail:/home/gaurav# cat /etc/issue.net
Ubuntu 12.04.1 LTS
root@mail:/home/gaurav# dpkg -i postfix_2.9.3-2ubuntu2_amd64.deb postfix-mysql_2.9.3-2ubuntu2_amd64.deb
dpkg: error processing postfix_2.9.3-2ubuntu2_amd64.deb (--install):
cannot access archive: No such file or directory
dpkg: error processing postfix-mysql_2.9.3-2ubuntu2_amd64.deb (--install):
cannot access archive: No such file or directory
Errors were encountered while processing:
postfix_2.9.3-2ubuntu2_amd64.deb
postfix-mysql_2.9.3-2ubuntu2_amd64.deb
Reply With Quote
  #9  
Old 17th December 2012, 14:05
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Please check with
Code:
ls -l
that you use the correct filenames. Filenames might be different, or you might be in the wrong directory.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #10  
Old 17th December 2012, 17:47
gauravrishi gauravrishi is offline
Junior Member
 
Join Date: Dec 2012
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Smile reply

I have crosschecked all the code and everything. i am following same step as given by your site. Please check the error which i was getting

root@mail:/usr/src/postfix-2.9.3# patch -p1 < ../postfix-vda-v11-2.9.1.patch
patching file README_FILES/VDA_README
patching file src/global/mail_params.h
patching file src/util/file_limit.c
patching file src/virtual/mailbox.c
patching file src/virtual/maildir.c
patching file src/virtual/virtual.c
patching file src/virtual/virtual.h
root@mail:/usr/src/postfix-2.9.3#



root@mail:/usr/src/postfix-2.9.3# dpkg-buildpackage

dpkg-genchanges >../postfix_2.9.3-2~12.04.4_i386.changes
dpkg-genchanges: not including original source code in upload
dpkg-source --after-build postfix-2.9.3
dpkg-buildpackage: binary and diff upload (original source NOT included)

root@mail:/usr/src# ls -l
total 6876
drwxr-xr-x 18 root root 4096 Dec 15 09:58 postfix-2.9.3
-rw-r--r-- 1 root root 234767 Dec 15 09:54 postfix_2.9.3-2~12.04.4.diff.gz
-rw-r--r-- 1 root root 1524 Dec 15 09:54 postfix_2.9.3-2~12.04.4.dsc
-rw-r--r-- 1 root root 3806 Dec 15 09:59 postfix_2.9.3-2~12.04.4_i386.changes
-rw-r--r-- 1 root root 1471888 Dec 15 09:59 postfix_2.9.3-2~12.04.4_i386.deb
-rw-r--r-- 1 root root 3760555 May 30 2012 postfix_2.9.3.orig.tar.gz
-rw-r--r-- 1 root root 46232 Dec 15 09:59 postfix-cdb_2.9.3-2~12.04.4_i386.deb
-rw-r--r-- 1 root root 159072 Dec 15 09:59 postfix-dev_2.9.3-2~12.04.4_all.deb
-rw-r--r-- 1 root root 1080564 Dec 15 09:59 postfix-doc_2.9.3-2~12.04.4_all.deb
-rw-r--r-- 1 root root 54400 Dec 15 09:59 postfix-ldap_2.9.3-2~12.04.4_i386.deb
-rw-r--r-- 1 root root 48032 Dec 15 09:59 postfix-mysql_2.9.3-2~12.04.4_i386.deb
-rw-r--r-- 1 root root 48222 Dec 15 09:59 postfix-pcre_2.9.3-2~12.04.4_i386.deb
-rw-r--r-- 1 root root 48256 Dec 15 09:59 postfix-pgsql_2.9.3-2~12.04.4_i386.deb
-rw-r--r-- 1 root root 55009 Apr 11 2012 postfix-vda-v11-2.9.1.patch
root@mail:/usr/src# dpkg -i postfix_2.9.3-2ubuntu2_amd64.deb postfix-mysql_2.9.3-2ubuntu2_amd64.deb
dpkg: error processing postfix_2.9.3-2ubuntu2_amd64.deb (--install):
cannot access archive: No such file or directory
dpkg: error processing postfix-mysql_2.9.3-2ubuntu2_amd64.deb (--install):
cannot access archive: No such file or directory
Errors were encountered while processing:
postfix_2.9.3-2ubuntu2_amd64.deb
postfix-mysql_2.9.3-2ubuntu2_amd64.deb
Reply With Quote
Reply

Bookmarks

Tags
vsftpd

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Virtual Hosting With vsftpd And MySQL On Debian Lenny marmellata HOWTO-Related Questions 1 15th April 2010 15:14
Help needed to set up vsftpd with mysql pam - 530 Login Incorrect phall472 Installation/Configuration 2 6th January 2010 15:49
Virtual hosting with vsftpd and mysql on Debian Etch Bill.A HOWTO-Related Questions 6 21st March 2008 15:06
VsFTPd with Quota and MySQL (if possible) markg85 Suggest HOWTO 2 16th August 2007 16:01
Virtual Hosting With vsftpd And PostgreSQL (MYSQL ?) vlade HOWTO-Related Questions 2 12th May 2007 11:29


All times are GMT +2. The time now is 16:50.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.