[comp.unix.aix] problems with chroot/anonymous ftp

ji@close.cs.columbia.edu (John Ioannidis) (12/28/89)

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@cs.columbia.edu
V-Mail-To: +1 212 854 5510
P-Mail-To: 450 Computer Science \n Columbia University \n New York, NY 10027