HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=4)
-   -   Virtual Hosting With vsftpd And MySQL On Ubuntu 12.04 (http://www.howtoforge.com/forums/showthread.php?t=59963)

gauravrishi 15th December 2012 15:39

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

Landi20 15th December 2012 16:00

its saying that user dont exist in chroot file
see if add that user to chroot file

gauravrishi 15th December 2012 16:07

reply
 
where do i need to create that file. Please explain

Landi20 15th December 2012 16:59

yes
in /etc/vsftpd.chroot_list

gauravrishi 15th December 2012 18:44

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

Landi20 16th December 2012 01:00

the other problem with ftp is solve your not

falko 16th December 2012 16:07

Quote:

Originally Posted by gauravrishi (Post 289665)
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.

gauravrishi 16th December 2012 16:48

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

falko 17th December 2012 15:05

Please check with
Code:

ls -l
that you use the correct filenames. Filenames might be different, or you might be in the wrong directory.

gauravrishi 17th December 2012 18:47

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


All times are GMT +2. The time now is 10:15.

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