PDA

View Full Version : How to read /var/log with FTP?


Firehosting
07-20-2006, 05:18 AM
Hello,

I have a costumer who wants to view the “/var/log/” directory with FTP.
I made a symbolic link from his home dir to the /var/log/ directory.

If he uses SSH he can see and read the log files, but when he uses FTP to see the files he gets an error.

How can I make this so my costumer can access and view the /var/log files on the server?
Using FreeBSD.

Thanx,
Marcel.

chatwizrd
07-20-2006, 10:18 AM
Why would you want to allow a customer to look in there. What is his reason for wanting to view files?

Firehosting
07-20-2006, 10:24 AM
This costumer uses the whole server.
He want's to view the exim-log and some other logfiles.

No problem for me, but i can't get it work....

chatwizrd
07-20-2006, 10:35 AM
Oh lol I thought it was just one webhosting customer. Well in order to view that you will probably have to remove chroot on the ftp server. So when he logs in he will start in his home directory instead of a fake /.

So you would comment out "DefaultRoot" with a # in /etc/proftpd.conf then restart the ftp server.