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

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 6th August 2006, 03:58
rlhesson
Guest
 
Posts: n/a
Default FTP and ISPConfig

Ok I have ISPConfig working so it sets up a new directory in /var/www for new clients. However, when it sets up the FTP account with proftp it sets their ftp account to /home/username and they are locked there and cant ftp to their site. How do i correct this?

Thanks
Reply With Quote
Sponsored Links
  #2  
Old 7th August 2006, 13:56
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
Default

ISPConfig creates users with /home/... as homedir while web sites are created in /var/www? I can hardly believe that. What's in /etc/passwd?
__________________
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
  #3  
Old 7th August 2006, 17:06
rlhesson
Guest
 
Posts: n/a
Default

When I click on create a new client then Create a new Site in ISPConfig it makes a folder in /var/www/web(clientnumber) so for this example we will use /var/www/web1. Ok when it creates an FTP account for that user it creates that account with their home directory being /home/username. When you login with that account they are locked into /home/username. I dont have an /etc/passwd file. Any ideas?

Last edited by rlhesson; 8th August 2006 at 02:45.
Reply With Quote
  #4  
Old 8th August 2006, 10:41
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,735
Thanks: 840
Thanked 5,596 Times in 4,407 Posts
Default

Quote:
Originally Posted by rlhesson
When I click on create a new client then Create a new Site in ISPConfig it makes a folder in /var/www/web(clientnumber) so for this example we will use /var/www/web1. Ok when it creates an FTP account for that user it creates that account with their home directory being /home/username. When you login with that account they are locked into /home/username. I dont have an /etc/passwd file. Any ideas?
ISPConfig never creates users with the home directory /home/username, that can not happen if you did not change the sourcecode.

Wich authentication mechanism do you use if you dont have an /etc/passwd file? LDAP?
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 8th August 2006, 16:09
rlhesson
Guest
 
Posts: n/a
Default

Well what program defaults users to /home/username/ when they FTP? Would that be proftp doing that? Im new to linux but something is making it so that when users login to their ftp account using winscp they login in to /home/username. Im sorry here is my /etc/passwd file I did not see it before:

root:x:0:0:root:/root:/bin/bash
bin:x:1:1:bin:/bin:/bin/sh
daemon:x:2:2:daemon:/sbin:/bin/sh
adm:x:3:4:adm:/var/adm:/bin/sh
lp:x:4:7:lp:/var/spool/lpd:/bin/sh
sync:x:5:0:sync:/sbin:/bin/sync
shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown
halt:x:7:0:halt:/sbin:/sbin/halt
mail:x:8:12:mail:/var/spool/mail:/bin/sh
news:x:9:13:news:/var/spool/news:/bin/sh
uucp:x:10:14:uucp:/var/spool/uucp:/bin/sh
operator:x:11:0perator:/var:/bin/sh
games:x:12:100:games:/usr/games:/bin/sh
nobody:x:65534:65534:Nobody:/:/bin/sh
rpm:x:13:101:system user for rpm:/var/lib/rpm:/bin/false
vcsa:x:69:69:virtual console memory owner:/dev:/sbin/nologin
xfs:x:70:70:system user for xorg-x11:/etc/X11/fs:/bin/false
messagebus:x:71:71:system user for dbus:/:/sbin/nologin
haldaemon:x:72:72:system user for hal:/:/sbin/nologin
rpc:x:73:73:system user for portmap:/:/bin/false
apache:x:74:74:system user for apache:/var/www:/bin/sh
rpcuser:x:75:75:system user for nfs-utils:/var/lib/nfs:/bin/false
postfix:x:76:76:system user for postfix:/var/spool/postfix:/bin/false
sshd:x:77:77:system user for openssh:/var/empty:/bin/true
rlhesson:x:500:500:Web Master:/home/rlhesson:/bin/bash
ntp:x:78:78:system user for ntp:/etc/ntp:/bin/false
named:x:79:79:system user for bind:/var/named:/bin/false
mysql:x:80:423:system user for MySQL:/var/lib/mysql:/bin/bash
ftp:x:81:424:system user for proftpd:/var/ftp:/bin/false
admispconfig:x:501:501:Administrator ISPConfig:/home/admispconfig:/bin/bash
Reply With Quote
  #6  
Old 8th August 2006, 16:13
rlhesson
Guest
 
Posts: n/a
Default

Oh I see now by looking at that /etc/passwd file. If you login using your username the way that ISPConfig creates it you login to the correct directory. I was loggin in using the username / password I created upon installing linux. Is there anyway for me to change the director that rlhesson goes to? If you look in that file I posted above he goes to /home/rlhesson
Reply With Quote
  #7  
Old 8th August 2006, 19:22
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
Default

Quote:
Originally Posted by rlhesson
Is there anyway for me to change the director that rlhesson goes to? If you look in that file I posted above he goes to /home/rlhesson
You can edit /etc/passwd with a text editor like vi: http://www.howtoforge.com/faq/12_15_en.html

Quote:
when users login to their ftp account using winscp they login in to /home/username
WinSCP uses SSH on port 22 whereas FTP is on port 21. WinSCP has nothing to do with FTP (though it looks similar).
__________________
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 9th August 2006, 01:03
rlhesson
Guest
 
Posts: n/a
Default

Ah ok. Thanks for helping me through this issue!
Reply With Quote
  #9  
Old 8th April 2009, 14:25
phoenixtechnical phoenixtechnical is offline
Junior Member
 
Join Date: Apr 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default PureFTP won't work with ISPConfig FTP user

Hello,
I just setup ISPConfig and added my first website domain.
I added an FTP user, but when I tried to ftp in, the ftp connection rejected the username
and password. I tried it a few times, it definitely does not work (for me).

The PureFTPd server does allow normal FTP connections for people who have linux user accounts on the machine. The machine is running Ubuntu.

Does anyone know what is causing this?

thanks,

David
Reply With Quote
  #10  
Old 9th April 2009, 15:06
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
 
Default

ISPConfig 2 doesn't support PureFTPd, only ProFTPd and vsftpd. If you're using ISPconfig 3, then you've posted in the wrong forum.
__________________
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
Reply

Bookmarks

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


All times are GMT +2. The time now is 18:11.


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