problems with chroot/anonymous ftp

John Ioannidis ji at close.cs.columbia.edu
Fri Dec 29 02:47:27 AEST 1989


I've been trying to set up anonymous ftp on a PS/2-80 running AIX 1.1,
so far unsuccessfully. After a lot of experimentation, I'm pretty sure
the culprit is the chroot system call (remember, ftpd tries to chroot
to the anonymous account's home directory). Namely, the following program,
when run, reports "No such file or directory". 

Any hints?

# cat > foo.c
main()
{
	if (chroot("/tmp") < 0)
	  perror("chroot");
}
^D
# cc foo.c
# a.out
chroot: No such file or directory
# 

chroot is too simple a system call to break. What's going on here?

/ji

In-Real-Life: John "Heldenprogrammer" Ioannidis
E-Mail-To: ji at cs.columbia.edu
V-Mail-To: +1 212 854 5510
P-Mail-To: 450 Computer Science \n Columbia University \n New York, NY 10027



More information about the Comp.unix.aix mailing list