Skip to contentSkip to conversation

ftp login problem using wu-ftpd

DISCUSSION Stevan Ignjatovic 2 participants 2 messages Jun 29, 2010

lore
Share & tools
lore
#0 lore raw

Hi all,

I ported Linux-2.6.30-rc8 on my custom mpc885 board. The filesystem I am using is jffs2 which I created from eldk-4.2/ppc_8xx/images/ramdisk_image.gz. Linux boots fine and I can telnet to the board but I cannot ftp:

# ftp 10.8.1.5
Connected to 10.8.1.5.
220 10.8.1.5 FTP server (Version wu-2.6.2(1) Wed Apr 2 09:10:49 MEST
2008) ready.
530 Please login with USER and PASS.
530 Please login with USER and PASS.
KERBEROS_V4 rejected as an authentication type
Name (10.8.1.5:root): root

Here ftp connection hangs. Do I have to create another user (beside root) in order to make ftp connection? Earlier, when I was using 2.4 linux I didn't have problems with ftp connection as root.

/etc/ftpaccess:
class all real,guest,anonymous *

email root@localhost

loginfails 5

readme  README*    login
readme  README*    cwd=*

message /welcome.msg login
message .message cwd=*

compress        yes             all
tar             yes             all

chmod no guest,anonymous
delete no guest,anonymous
overwrite no guest,anonymous
rename no guest,anonymous

log transfers anonymous,real inbound,outbound

shutdown /etc/shutmsg

passwd-check rfc822 warn

/etc/xinetd.d/wu-ftpd:
# default: on
# description: The wu-ftpd FTP server serves FTP connections. It uses \
# normal, unencrypted usernames and passwords for authentication.
service ftp

{
	socket_type		= stream
	wait			= no
	user			= root
	server			= /usr/sbin/in.ftpd
	server_args		= -l -a
	log_on_success		+= DURATION USERID
	log_on_failure		+= USERID
	nice			= 10
	disable			= no
}

/etc/pam.d/ftp:
#%PAM-1.0
auth include system-auth
auth required /lib/security/pam_listfile.so item=user sense=deny
file=/etc/ftpusers onerr=succeed
auth required /lib/security/pam_shells.so
account include system-auth
session include system-auth

Thanks in advance.

#1 lore raw

Dear Stevan Ignjatovic,

Quoted 5 lines · In message <1277820991.4257.18.camel@stevan> you wrote:

I ported Linux-2.6.30-rc8 on my custom mpc885 board. The filesystem I am using is jffs2 which I created from eldk-4.2/ppc_8xx/images/ramdisk_image.gz. Linux boots fine and I can telnet to the board but I cannot ftp:

...

Quoted 3 lines

Here ftp connection hangs. Do I have to create another user (beside root) in order to make ftp connection? Earlier, when I was using 2.4 linux I didn't have problems with ftp connection as root.

check your kernel configuration. You might be missing options like CONFIG_UNIX98_PTYS or CONFIG_LEGACY_PTYS or similar.

Best regards,

Wolfgang Denk

Signature · 6 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [email protected]
Every program has at least one bug and can be shortened by  at  least
one instruction - from which, by induction, one can deduce that every
program can be reduced to one instruction which doesn't work.