UID/GID in anon.ftp directory

Pieter Donche Pieter.Donche at ua.ac.be
Mon Mar 9 09:27:50 PDT 2009


I set up an anonymous ftp directory on FreeBSD system and copied (via a 
tarball) the anon.ftp directory (pub) from our old ftp server to the 
new FreeBSD server.

In the new server users get same loginnames, but UIDs are different from 
UID at old server, so I manually did the necessary 
chown -R username:groupname on all the directories and files in the anon.
ftp directory.

At unix command prompt an  ls -la shows correct usernames and groupnames.
# ls -la pub
drwxr-xr-x   6 sbecuwe   cant      512 Mar 30  1999 IT
drwxr-xr-x  13 cant      cant      512 Apr  8  2005 cant
drwxr-xr-x   2 dekeyser  adrem     512 Sep 11  2002 dekeyser
drwxr-xr-x   2 cant      cant      512 Nov 30  2003 ect
drwxr-xr-x   2 dekeyser  adrem     512 Nov 18 14:20 olap
drwxr-xr-x   7 pats      pats      512 Sep  5  2006 pats
drwxr-xr-x   2 penne     algebra   512 Feb 15  2005 penne
...

But when I use ftp <myftpserver>
...
ftp> cd pub
ftp> dir
drwxr-xr-x   6 1003  205      512 Mar 30  1999 IT
drwxr-xr-x  13 1011  205      512 Apr  8  2005 cant
drwxr-xr-x   2 1026  200      512 Sep 11  2002 dekeyser
drwxr-xr-x   2 1011  205      512 Nov 30  2003 ect
drwxr-xr-x   2 1026  200      512 Nov 18 13:20 olap
drwxr-xr-x   7 1024  210      512 Sep  5  2006 pats
drwxr-xr-x   2 1025  202      512 Feb 15  2005 penne
...

So, it displays numeric UIDs and GIDs. (these numbers are correct and are 
present in /etc/passwd and /etc/group).

But why does he not show me usernames and groupnames
(on the original ftp server, he does..)

How to remedy?


More information about the freebsd-questions mailing list