Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Feb 2001 12:40:54 +0100 (CET)
From:      Alexander Leidinger <Alexander@Leidinger.net>
To:        jefffbsd@hotmail.com
Cc:        isp@freebsd.org
Subject:   Re: ftpd[1052]: /etc/pwd.db: No such file or directory
Message-ID:  <200102171140.f1HBev325313@Magelan.Leidinger.net>
In-Reply-To: <F108V7VpGWOQ2N0t1Yk000046b1@hotmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

On 16 Feb, Jeffrey Sewell wrote:
> Yes I use chroot for about 25 accounts.  I think I know where you're going 
> with this one :)  Still would like your opinion.

This didn't work with a ftpchroot which uses the @group syntax:
---snip---
#!/bin/sh

# quick hack!

for i in $(cat /etc/ftpchroot); do
  dir="$(grep "${i}" /etc/passwd | awk -F : '{print $6}')"
  if [ ! -f ${dir}/etc/pwd.db ]; then
    echo "Missing etc/pwd.db for user »${i}« in »${dir}«."
  fi
done
---snip---

Bye,
Alexander.

-- 
                      Loose bits sink chips.

http://www.Leidinger.net                       Alexander @ Leidinger.net
  GPG fingerprint = C518 BC70 E67F 143F BE91  3365 79E2 9C60 B006 3FE7



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-isp" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200102171140.f1HBev325313>