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

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 27th December 2011, 22:25
dgmufasa dgmufasa is offline
Member
 
Join Date: Oct 2011
Posts: 86
Thanks: 5
Thanked 1 Time in 1 Post
Default adding ftp access to a user at os level

Hello all,

I have a user created with useradd but I cannot use ftp on it.

Can someone point me to the way to create ftp access on a user created with "useradd"?

These items (PHP code) were working with a FTP user created thru the interface:

Quote:
$conn_id = ftp_connect( $DEPO_SERVER ) or die("Couldn't connect to $DEPO_SERVER ");
$login_result = ftp_login($conn_id, $DEPO_LOGON_ID, $DEPO_LOGON_PASS);
Now that I am using an ID created with useradd, it does not work (leading me to believe that there is something extra needed when creating users on an ISPConfig system outside the interface).

Again, any suggestions are appreciated...

TIA

Last edited by dgmufasa; 27th December 2011 at 23:21.
Reply With Quote
Sponsored Links
  #2  
Old 28th December 2011, 06:45
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,046
Thanks: 826
Thanked 5,388 Times in 4,233 Posts
Default

You find the error messages for ftp in the linux syslog. See also aq on debugging ftp connectiond.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 28th December 2011, 17:31
dgmufasa dgmufasa is offline
Member
 
Join Date: Oct 2011
Posts: 86
Thanks: 5
Thanked 1 Time in 1 Post
Default

Hello,

this is what I am getting

Quote:
using SFTP - works
[mstrdev@simba:~/MSTRPROJ/code_development/master/soaprun/INSTALL/bin] sftp depoclient@zazu.pridelands.com
Connecting to zazu.pridelands.com...
depoclient@zazu.pridelands.com's password:
sftp> pwd
Remote working directory: /home/depoclient
sftp> exit

USING REGULAR FTP - does not work
[mstrdev@simba:~/MSTRPROJ/code_development/master/soaprun/INSTALL/bin] ftp depoclient@zazu.pridelands.com
Connected to zazu.pridelands.com.
220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
220-You are user number 2 of 50 allowed.
220-Local time is now 10:28. Server port: 21.
220-This is a private system - No anonymous login
220-IPv6 connections are also welcome on this server.
220 You will be disconnected after 15 minutes of inactivity.
331 User depoclient OK. Password required
Password:
530 Login authentication failed
ftp: Login failed.
ftp>

I did some more tests and I get the following:
Quote:
Dec 28 10:25:37 zazu named[1227]: error (unexpected RCODE REFUSED) resolving 'faafaa.com/MX/IN': 67.208.74.19#53
Dec 28 10:25:37 zazu named[1227]: error (unexpected RCODE REFUSED) resolving 'faafaa.com/MX/IN': 66.231.180.140#53
Dec 28 10:26:03 zazu pure-ftpd: (?@192.168.1.71) [INFO] New connection from 192.168.1.71
Dec 28 10:26:08 zazu pure-ftpd: (?@192.168.1.71) [WARNING] Authentication failed for user [depoclient]
Dec 28 10:28:16 zazu named[1227]: client 192.168.1.70#48997: RFC 1918 response from Internet for 69.1.168.192.in-addr.arpa
Dec 28 10:28:33 zazu pure-ftpd: (?@192.168.1.69) [INFO] New connection from 192.168.1.69
Dec 28 10:28:42 zazu pure-ftpd: (?@192.168.1.69) [WARNING] Authentication failed for user [depoclient]
Dec 28 10:28:48 zazu clamd[1596]: SelfCheck: Database status OK.
Dec 28 10:29:04 zazu named[1227]: error (network unreachable) resolving 'www.howtoforge.de/A/IN': 2001:668:1f:11::105#53
Dec 28 10:30:01 zazu pure-ftpd: (?@::1) [INFO] New connection from ::1
Dec 28 10:30:01 zazu pure-ftpd: (?@::1) [INFO] Logout.
Dec 28 10:30:23 zazu pure-ftpd: (?@192.168.1.69) [INFO] Logout.
Dec 28 10:30:57 zazu pure-ftpd: (?@192.168.1.69) [INFO] New connection from 192.168.1.69
Dec 28 10:31:00 zazu pure-ftpd: (?@192.168.1.69) [ERROR] Home directory not available - aborting
Dec 28 10:31:40 zazu pure-ftpd: (?@192.168.1.69) [INFO] New connection from 192.168.1.69
Dec 28 10:31:42 zazu pure-ftpd: (?@192.168.1.69) [ERROR] Home directory not available - aborting
Dec 28 10:35:01 zazu pure-ftpd: (?@::1) [INFO] New connection from ::1
Dec 28 10:35:01 zazu pure-ftpd: (?@::1) [INFO] Logout.
Dec 28 10:35:21 zazu pure-ftpd: (?@192.168.1.71) [INFO] Logout.
Dec 28 10:35:33 zazu pure-ftpd: (?@192.168.1.71) [INFO] New connection from 192.168.1.71
Dec 28 10:35:37 zazu pure-ftpd: (?@192.168.1.71) [WARNING] Authentication failed for user [testagain]
Dec 28 10:36:26 zazu pure-ftpd: (?@192.168.1.71) [INFO] Logout.
Dec 28 10:36:35 zazu pure-ftpd: (?@192.168.1.71) [INFO] New connection from 192.168.1.71
Dec 28 10:36:35 zazu pure-ftpd: (?@192.168.1.71) [ERROR] Home directory not available - aborting
This is not really helping as it does not seem to point to anything useful.
Reply With Quote
  #4  
Old 28th December 2011, 17:41
dgmufasa dgmufasa is offline
Member
 
Join Date: Oct 2011
Posts: 86
Thanks: 5
Thanked 1 Time in 1 Post
Default

Hello again,

Here is an ID created using the ISPConfig interface. In this case, the FTP works with BOTH sftp and regular ftp

Quote:
using sftp works
[mstrdev@simba:~/MSTRPROJ/code_development/master/soaprun/INSTALL/bin] sftp h470917H470917@zazu.pridelands.com
Connecting to zazu.pridelands.com...
h470917H470917@zazu.pridelands.com's password:
sftp> pwd
Remote working directory: /var/www/clients/client692/web529
sftp>
sftp> exit

using regular ftp works
[mstrdev@simba:~/MSTRPROJ/code_development/master/soaprun/INSTALL/bin] ftp h470917H470917@zazu.pridelands.com
Connected to zazu.pridelands.com.
220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
220-You are user number 2 of 50 allowed.
220-Local time is now 10:45. Server port: 21.
220-This is a private system - No anonymous login
220-IPv6 connections are also welcome on this server.
220 You will be disconnected after 15 minutes of inactivity.
331 User h470917H470917 OK. Password required
Password:
230 OK. Current restricted directory is /
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> pwd
257 "/" is your current location
ftp> cd ..
250 OK. Current directory is /
ftp> pwd
257 "/" is your current location
ftp>
But when creating users using : useradd, this does not happen. Only the sftp works. not the regular ftp. To me, this would indicate that there is *something more* one must do in order to get the regular ftp to work. One cannot create the user using "useradd" and that be all.

If you could share what that is, that would be ideal as I need to get this ID working and it is not possible to create this using the ISPConfig interface.
Reply With Quote
  #5  
Old 28th December 2011, 17:46
dgmufasa dgmufasa is offline
Member
 
Join Date: Oct 2011
Posts: 86
Thanks: 5
Thanked 1 Time in 1 Post
Default Can this be used to create the ftp user?

Hello,

Found this online: http://support.real-time.com/open-so...tpd/index.html

Can it be used to create the ftp user?

TIA
Reply With Quote
  #6  
Old 28th December 2011, 17:57
dgmufasa dgmufasa is offline
Member
 
Join Date: Oct 2011
Posts: 86
Thanks: 5
Thanked 1 Time in 1 Post
 
Default Seems like I figured it out

Basically, the link above gave me a hint.

I created an FTP user thru the ISPConfig interface but following the hints that I saw above (I had to disable the automatic client [CLIENT] prefix to do it).

So, it looks like things are ok - for now ...
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't access to my website - after install problem pallermo Installation/Configuration 18 4th June 2010 13:29
global user for ftp access andrejchy Feature Requests 2 28th February 2010 21:42
Users can't acces their folders with Web-FTP kvdd Installation/Configuration 9 1st November 2007 19:52
Strato Server - Restoring with SystemImager popper2001 HOWTO-Related Questions 5 28th July 2007 10:18
Need to setup access to particular directory for particula FTP user. kanour Installation/Configuration 1 6th August 2006 13:57


All times are GMT +2. The time now is 23:00.


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