Date: Mon, 9 Mar 2009 17:27:44 +0100 (CET) From: Pieter Donche <Pieter.Donche@ua.ac.be> To: "mail.list freebsd-questions" <freebsd-questions@freebsd.org> Subject: UID/GID in anon.ftp directory Message-ID: <Pine.GSO.4.63.0903091715230.22673@hmacs.cmi.ua.ac.be>
next in thread | raw e-mail | index | archive | help
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?
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.63.0903091715230.22673>