PureFTPD - UnixAuthentication


 
Thread Tools Search this Thread
Special Forums UNIX and Linux Applications PureFTPD - UnixAuthentication
# 1  
Old 02-18-2009
Java PureFTPD - UnixAuthentication

Hello, guys!

I have a web server that uses cPanel for management and I installed PureFTPD as FTP server. Everything works fine, except one small detail. I have another user that is not created by cPanel (I created it myself using adduser) and I want to be able to connect to FTP using this username. For doing this, on other servers, I set UnixAuthentication to yes in pure-ftpd.conf. I did it, I restarted the FTP server, but it still doesn't allow me to connect using that username. It gives me this message: 530 Login authentication failed.

If I try to connect using a username created by cPanel it works, but not with this username.

Any ideeas on where the problem could be located?

In case that it necesarely, the server runs on FreeBSD 6.2-RELEASE and the pureftpd version is 1.0.21_2.
Login or Register to Ask a Question

Previous Thread | Next Thread
Login or Register to Ask a Question
FTP_SITE(3)								 1							       FTP_SITE(3)

ftp_site - Sends a SITE command to the server

SYNOPSIS
bool ftp_site (resource $ftp_stream, string $command) DESCRIPTION
ftp_site(3) sends the given SITE command to the FTP server. SITE commands are not standardized, and vary from server to server. They are useful for handling such things as file permissions and group membership. PARAMETERS
o $ftp_stream - The link identifier of the FTP connection. o $command - The SITE command. Note that this parameter isn't escaped so there may be some issues with filenames containing spaces and other characters. RETURN VALUES
Returns TRUE on success or FALSE on failure. EXAMPLES
Example #1 Sending a SITE command to an ftp server <?php // Connect to FTP server $conn = ftp_connect('ftp.example.com'); if (!$conn) die('Unable to connect to ftp.example.com'); // Login as "user" with password "pass" if (!ftp_login($conn, 'user', 'pass')) die('Error logging into ftp.example.com'); // Issue: "SITE CHMOD 0600 /home/user/privatefile" command to ftp server if (ftp_site($conn, 'CHMOD 0600 /home/user/privatefile')) { echo "Command executed successfully. "; } else { die('Command failed.'); } ?> SEE ALSO
ftp_raw(3). PHP Documentation Group FTP_SITE(3)