I am installing an ftp server under Solaris 8 and am running into 2 problems I don't understand.
background info:
I am not installing anonymous ftp but am trying to add a single user for ftp in a restricted area.
I followed the instructions on the manpage to set up a root area, ~ftp, with ~ftp/etc, ~ftp/bin, etc. and copied all the appropriate files over.
My system is running NIS for normal logins and I am setting up this new login locally.
The ftp service is running through inetd and all the entries in /etc/inetd.conf and /etc/services are as they were after installing the OS.
Problems:
1. After logging in, the "ls" is not displaying anything. It tells me "200 PORT command successful" but does not display the directory structure I set up. It also says it is executing /bin/ls even though I put ls in ~ftp/bin. The entire message is:
ftp>ls
200 PORT command successful
150 ASCII data connection for /bin/ls (xx.xx.xx.xx,33034) 0 bytes
226 ASCII Transfer complete
2. I am able to "cd .." and go anywhere on the system as this user and would like the user to see this home area as / and only have access from there forward.
What I tried:
I read that "chroot" is a way to restrict the user to an area, but am getting an error message when executing this. I am typing "chroot /export/home/ftp /usr/sbin/in.ftpd" and getting the response, "chroot: No such file or directory" even though both the arguments are where they say they are.
Any help is much appreciated.
EK
background info:
I am not installing anonymous ftp but am trying to add a single user for ftp in a restricted area.
I followed the instructions on the manpage to set up a root area, ~ftp, with ~ftp/etc, ~ftp/bin, etc. and copied all the appropriate files over.
My system is running NIS for normal logins and I am setting up this new login locally.
The ftp service is running through inetd and all the entries in /etc/inetd.conf and /etc/services are as they were after installing the OS.
Problems:
1. After logging in, the "ls" is not displaying anything. It tells me "200 PORT command successful" but does not display the directory structure I set up. It also says it is executing /bin/ls even though I put ls in ~ftp/bin. The entire message is:
ftp>ls
200 PORT command successful
150 ASCII data connection for /bin/ls (xx.xx.xx.xx,33034) 0 bytes
226 ASCII Transfer complete
2. I am able to "cd .." and go anywhere on the system as this user and would like the user to see this home area as / and only have access from there forward.
What I tried:
I read that "chroot" is a way to restrict the user to an area, but am getting an error message when executing this. I am typing "chroot /export/home/ftp /usr/sbin/in.ftpd" and getting the response, "chroot: No such file or directory" even though both the arguments are where they say they are.
Any help is much appreciated.
EK