Your message dated Mon, 6 Jun 2005 17:00:31 +0200
with message-id <[EMAIL PROTECTED]>
and subject line solved in sarge proftpd
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 9 Mar 2005 11:25:39 +0000
>From [EMAIL PROTECTED] Wed Mar 09 03:25:39 2005
Return-path: <[EMAIL PROTECTED]>
Received: from ac.acvyskov.cz [62.4.97.226] 
        by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
        id 1D8zJq-0007Rw-00; Wed, 09 Mar 2005 03:25:38 -0800
Received: from localhost (localhost [127.0.0.1])
        by ac.acvyskov.cz (8.12.3/8.12.3/Debian-6.6) with ESMTP id 
j29BPZYU005593
        for <[EMAIL PROTECTED]>; Wed, 9 Mar 2005 12:25:35 +0100
Received: from ac.acvyskov.cz ([127.0.0.1])
 by localhost (ac.acvyskov.cz [127.0.0.1]) (amavisd-new, port 10024) with LMTP
 id 26245-09 for <[EMAIL PROTECTED]>;
 Wed,  9 Mar 2005 12:25:27 +0100 (CET)
Received: from PCBUBIK ([10.255.255.15])
        by ac.acvyskov.cz (8.12.3/8.12.3/Debian-6.6) with SMTP id j29BPG7c005588
        for <[EMAIL PROTECTED]>; Wed, 9 Mar 2005 12:25:16 +0100
Message-ID: <[EMAIL PROTECTED]>
From: =?iso-8859-2?Q?Jan_Bub=EDk?= <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Subject: ls -la shows numeric UIDs instead of usernames in chrooted environment
Date: Wed, 9 Mar 2005 12:25:03 +0100
MIME-Version: 1.0
Content-Type: text/plain;
        charset="iso-8859-2"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2800.1478
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1478
X-Virus-Scanned: by amavisd-new at ac.acvyskov.cz
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
        autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 

Package: proftpd
Version: 1.2.4+1.2.5rc1-5woody2

When I use PROFTPD in chrooted environment, I see numeric UIDs instead of
usernames.
Groupnames are shown right. I have tried both stable and unstable versions.
It shows this:
ftp> ls -la
200 PORT command successful.
150 Opening ASCII mode data connection for file list.
drwxr-sr-x   6   2321     mygrp      4096 Mar  8 11:15 .
drwxr-sr-x   6   2321     mygrp      4096 Mar  8 11:15 ..
226-Transfer complete.
226 Quotas off

It is weird, because the proftpd process has open both necessary files
(/etc/passwd and /etc/group).
This can be verified from /proc listing:
bash:~# ls -l /proc/1809/fd/
lrwx------    1 root     root           64 Mar  9 11:59 0 -> socket:[5451]
lrwx------    1 root     root           64 Mar  9 11:59 1 -> socket:[5451]
lrwx------    1 root     root           64 Mar  9 11:59 2 -> socket:[5459]
lr-x------    1 root     root           64 Mar  9 11:59 3 -> /etc/group
l-wx------    1 root     root           64 Mar  9 11:59 4 -> /var/log/wtmp
lrwx------    1 root     root           64 Mar  9 11:59 5 ->
/var/run/proftpd/proftpd-750
l-wx------    1 root     root           64 Mar  9 11:59 6 ->
/var/log/xferlog
lr-x------    1 root     root           64 Mar  9 11:59 7 -> /etc/passwd

To configure proftpd to run in chrooted environment I use this in
proftpd.conf:
DefaultRoot  /some/dir  somegroup

Debian precompiled proftpd shows correct usernames and groupnames when used
in non-chrooted environment.
When I compile my own proftpd from original sources then usernames always
work.
Maybe one of debian-specific patches does not work right in chrooted
environment?
I expect proftpd to show usernames in "ls -la" even in chrooted environment.
I use Debian woody / kernel 2.4.25-1-686 / libc6 2.3.2.ds1-11


---------------------------------------
Received: (at 298696-done) by bugs.debian.org; 6 Jun 2005 15:01:54 +0000
>From [EMAIL PROTECTED] Mon Jun 06 08:01:54 2005
Return-path: <[EMAIL PROTECTED]>
Received: from egg.area.ba.cnr.it [150.145.80.53] 
        by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
        id 1DfJ6v-00014B-00; Mon, 06 Jun 2005 08:01:54 -0700
Received: from localhost (localhost [127.0.0.1])
        by egg.area.ba.cnr.it (8.13.1/8.13.1/SuSE Linux 0.7) with ESMTP id 
j56F1psc018415
        for <[EMAIL PROTECTED]>; Mon, 6 Jun 2005 17:01:51 +0200
Received: from klecker (klecker.ba.issia.cnr.it [150.145.84.32])
        by egg.area.ba.cnr.it (8.13.1/8.13.1/SuSE Linux 0.7) with ESMTP id 
j56F0A4W018296
        for <[EMAIL PROTECTED]>; Mon, 6 Jun 2005 17:00:10 +0200
Received: from [150.145.84.200] (helo=localhost.localdomain)
        by klecker with esmtpa (Exim 4.50)
        id 1DfJ5F-0006Qt-5x
        for [EMAIL PROTECTED]; Mon, 06 Jun 2005 17:00:09 +0200
Received: from frankie by localhost.localdomain with local (Exim 4.50)
        id 1DfJ5b-0002jw-U2
        for [EMAIL PROTECTED]; Mon, 06 Jun 2005 17:00:31 +0200
Date: Mon, 6 Jun 2005 17:00:31 +0200
From: Francesco Paolo Lovergine <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: solved in sarge proftpd
Message-ID: <[EMAIL PROTECTED]>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
X-GPG-Fingerprint: 92E4 2D44 336F DF91 5508  23D5 A453 5199 E9F2 C747
X-GPG-Info: finger [EMAIL PROTECTED]
X-Advocacy: Who uses non-free software empoisons you too. Say him to stop.
User-Agent: Mutt/1.5.9i
X-Virus-Scanned: by amavisd-new-20041102+Sophos at egg.area.ba.cnr.it
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-3.0 required=4.0 tests=BAYES_00 autolearn=no 
        version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 

DefaultRoot manages correctly now UID/GID in proftpd-1.2.10-15.

-- 
Francesco P. Lovergine


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to