From owner-freebsd-questions@FreeBSD.ORG Fri Jan 25 03:06:23 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 3B9F02B7 for ; Fri, 25 Jan 2013 03:06:23 +0000 (UTC) (envelope-from erichsfreebsdlist@alogt.com) Received: from alogt.com (alogt.com [69.36.191.58]) by mx1.freebsd.org (Postfix) with ESMTP id 0C27C833 for ; Fri, 25 Jan 2013 03:06:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=alogt.com; s=default; h=Content-Transfer-Encoding:Content-Type:Mime-Version:References:In-Reply-To:Message-ID:Subject:Cc:To:From:Date; bh=3LdUGNrCGsrD+N8aPt4J78c3t7VIRMVq5Rb9p3qsWyY=; b=XGeWCRjH/LZI9RaYGU9dkYzfJV6SK+3H2YWVttl34RTk48VbYAP6olw6Y2SemYI+psklJjC+isg0zCjFbG4Un42So4ZcMsk5v4YYkKqZg9PbQYrYK7z7/M2Q0g9odvNg; Received: from [122.129.203.50] (port=31073 helo=X220.ovitrap.com) by sl-508-2.slc.westdc.net with esmtpsa (SSLv3:DHE-RSA-AES128-SHA:128) (Exim 4.80) (envelope-from ) id 1TyZcO-004HM8-Bw; Thu, 24 Jan 2013 20:06:16 -0700 Date: Fri, 25 Jan 2013 10:06:12 +0700 From: Erich Dollansky To: Ralf Mardorf Subject: Re: Sharing a mail folder between Linux and FreeBSD Message-ID: <20130125100612.71a9630c@X220.ovitrap.com> In-Reply-To: <1359076287.2155.18.camel@precise> References: <1358988080.4855.5.camel@precise> <5101B141.2090909@gmail.com> <1359076287.2155.18.camel@precise> X-Mailer: Claws Mail 3.9.0 (GTK+ 2.24.6; amd64-portbld-freebsd10.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - sl-508-2.slc.westdc.net X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - alogt.com X-Get-Message-Sender-Via: sl-508-2.slc.westdc.net: authenticated_id: erichsfreebsdlist@alogt.com X-Source: X-Source-Args: X-Source-Dir: Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Jan 2013 03:06:23 -0000 Hi, On Fri, 25 Jan 2013 02:11:27 +0100 Ralf Mardorf wrote: > Hi all, hi Joshua, > > On Thu, 2013-01-24 at 16:10 -0600, Joshua Isom wrote: > > find / -uid 1001 -exec chown 1000 '{}' \; > > find / -gid 1001 -exec chown :1000 '{}' \; > > I made one mistake, when I run "find / -gid 1001 -exec chown :1000 > '{}' \;" for the fist time, I did it without the ":". Later I run it > without the typo. > > There's a serious problem now, rocketmouse still is 1001. > > .login_conf was '1000 1001', after I "chown 1001" it, to start X as > user, it became 'rocketmouse 1001', the user rocketmouse still can't > run a X session anymore. > > After rebooting this is the output I get: > > # id rocketmouse > uid=1001(rocketmouse) gid=1001 groups=1001,0(wheel) > > # ls -hAl /home/ | grep rocketmouse > drwxr-xr-x 28 1000 rocketmouse 1.5k Jan 24 18:14 rocketmouse > > # grep 100 /etc/group > rocketmouse:*:1000: > musicpd:*:1002: > > # grep 100 /etc/passwd > rocketmouse:*:1000:1000:Ralf:/home/rocketmouse:/bin/sh > musicpd:*:1002:1002:Music Player > Daemon:/home/musicpd:/usr/sbin/nologin > > # grep 100 /etc/master.passwd > rocketmouse:$1$3mMkzcfl > $VuryrlzFZ92LmaC6cUOa/.:1000:1000::0:0:Ralf:/home/rocketmouse:/bin/sh > musicpd:*LOCKED**:1002:1002:daemon:0:0:Music Player > Daemon:/home/musicpd:/usr/sbin/nologin > > I repeated both find-chown several times and rebooted, nothing > changed, it doesn't list any files anymore. > did you run something like? /usr/sbin/pwd_mkdb -d/etc /etc/master.passwd erich