From owner-freebsd-questions@FreeBSD.ORG  Fri Jul  2 13:42:42 2004
Return-Path: <owner-freebsd-questions@FreeBSD.ORG>
Delivered-To: freebsd-questions@freebsd.org
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 2FF3A16A4CE
	for <freebsd-questions@freebsd.org>;
	Fri,  2 Jul 2004 13:42:42 +0000 (GMT)
Received: from mailgate.jbhosting.de (mailgate1.jbhosting.de [80.190.201.15])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 4CC7643D48
	for <freebsd-questions@freebsd.org>;
	Fri,  2 Jul 2004 13:42:41 +0000 (GMT)
	(envelope-from jonas.sonntag@jbhosting.de)
Received: from jbhosting.de (007.ports.jbhosting.de [80.190.201.7] (may be
	forged))i62DnNKZ047454	for <freebsd-questions@freebsd.org>;
	Fri, 2 Jul 2004 15:49:23 +0200 (CEST)
	(envelope-from jonas.sonntag@jbhosting.de)
Received: (qmail 47448 invoked by uid 545); 2 Jul 2004 13:49:23 -0000
Received: from unknown (HELO ?192.168.0.42?)
	(jonsonn@jbhosting.de@213.155.74.126)
	by mx010.jbhosting.de with SMTP; 2 Jul 2004 13:49:23 -0000
From: Jonas Sonntag <jonas.sonntag@jbhosting.de>
Organization: JB Hosting
To: Bill Moran <wmoran@potentialtech.com>
Date: Fri, 2 Jul 2004 15:40:39 +0200
User-Agent: KMail/1.6.2
References: <200406251500.20839.jonas.sonntag@jbhosting.de>
	<200407021450.05509.jonas.sonntag@jbhosting.de>
	<20040702090950.2ff78999.wmoran@potentialtech.com>
In-Reply-To: <20040702090950.2ff78999.wmoran@potentialtech.com>
MIME-Version: 1.0
Content-Disposition: inline
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Message-Id: <200407021540.39869.jonas.sonntag@jbhosting.de>
X-Spam-Score: 0 (not scanned because domain is not listed for scanning)
X-Scanned-By: MIMEDefang 2.42
cc: freebsd-questions@freebsd.org
Subject: Re: strange pw behaviour
X-BeenThere: freebsd-questions@freebsd.org
X-Mailman-Version: 2.1.1
Precedence: list
List-Id: User questions <freebsd-questions.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-questions>,
	<mailto:freebsd-questions-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-questions>
List-Post: <mailto:freebsd-questions@freebsd.org>
List-Help: <mailto:freebsd-questions-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-questions>,
	<mailto:freebsd-questions-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Fri, 02 Jul 2004 13:42:42 -0000

On Friday 02 July 2004 15:09, Bill Moran wrote:
> The only other thought I have is that you might have some invalid user
> names? (I'm really reaching here ...)
>
> Can you attach the group file so we can verify the syntax.

I really don't think so... all entries come from pw and pw get's called the 
same way every time (from a script)


here is a part of the /etc/group file:
u186:*:2119:www
u188:*:2121:www
u189:*:2122:www
u197:*:2130:www
u192:*:2125:www


'ls -l' as user www shows:
drwxr-x---   4 u186  u186   512 Apr 23 21:56 u186
drwxr-x---   9 u188  u188  1024 Jul  2 12:32 u188
drwxr-x---   5 u189  u189   512 Jun 25 14:28 u189
drwxr-x---   3 u192  u192   512 Jun  6 20:21 u192
drwxr-x---  11 u197  u197  1024 Jul  2 14:15 u197


'ls -l *' as user www shows something like:
u186:
total 4
drwxr-xr-x  6 u186  u186  512 Jun  5 16:33 some_dir
drwxr-xr-x  4 u186  u186  512 May 11 21:36 another_dir

u188:
total 16
drwxr-xr-x  12 u188  u188   512 Jul  1 17:17 dir1
drwxr-xr-x  17 u188  u188  1024 Jul  1 17:17 dir2
-rw-r--r--   1 u188  u188   280 Jun 30 21:59 file.txt

u189:
ls: u189: Permission denied

u192:
ls: u192: Permission denied

u197:
ls: u197: Permission denied


> Beyond that, I'm at a loss.
Me too... I have been using pw to manage user accounts within different jails  
for quite some time now but never had issues like these..


Thanks anyway.