SUMMARY: Displaying the owner of a file when connecting to ftp site

From: Christopher Barnard <cbarnar1_at_earthlink.net>
Date: Fri Nov 26 2010 - 21:32:39 EST
I asked

> I am bringing up a new ftp server with http and https access, but I still
need
> to provide the old command line ftp as well.  Once I log in as anonymous,
when
> I do an ls or dir
>
> dr-xr-xr-x	1 0			0			512 Nov 23 19:35 etc
> rather than
> dr-xr-xr-x	1 root		root			512 Nov 23  19:35 etc
>
> I have done (I think) all of the necessary chroot steps.  /ftproot/bin
> contains a mode 0111 ls.  I have ldd-ed that binary and all of its needed
> libraries are in /ftproot/lib.  The /ftproot/etc directory contains a
stripped
> passwd and group files with the few entries that ftp would need.  I see no
> errors in the /var/adm/messages or /var/log/syslog.
>
> Any suggestions on how to get this to work?

The solution

break down and use /usr/bin/ftpconfig, the script that comes wtih solaris that
creates an anonymous ftp site.  I was trying to not use that script because it
enables more functionality than I want, but as it turned out the better way
was to run that script and then remove the files that I did not want to be
available from my site.

Thanks to everyone who provided suggestions.


Christopher L. Barnard
-------------------
comment your code as if the maintainer is a homicidal maniac who knows where
you live.
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Fri Nov 26 21:33:48 2010

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:44:17 EST