From owner-freebsd-questions Wed Apr 28 15:40:15 1999 Delivered-To: freebsd-questions@freebsd.org Received: from kiwi.pinnacle.co.nz (pinnacle.internet.co.nz [210.48.55.133]) by hub.freebsd.org (Postfix) with ESMTP id E64DA157D1 for ; Wed, 28 Apr 1999 15:40:09 -0700 (PDT) (envelope-from jonc@pinnacle.co.nz) Received: from kiwi.pinnacle.co.nz (kiwi.pinnacle.co.nz [202.37.163.2]) by kiwi.pinnacle.co.nz (8.9.3/8.9.3) with ESMTP id KAA01752; Thu, 29 Apr 1999 10:33:48 +1200 (NZST) Date: Thu, 29 Apr 1999 10:33:48 +1200 (NZST) From: Jonathan Chen To: loren Cc: "freebsd-questions@freebsd.org" Subject: Re: Changing a user's UID In-Reply-To: <199904290722.4136247.6@names.phile.com.au> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, 29 Apr 1999, loren wrote: > If I "cd ~username" then > "chown --recursive username:groupname *", the dot files > (like .profile or .cshrc) don't change ownership to the new UID. > No probs, so I do a "chown -R uname:gname .*" and the files > change OK, but so does the ownership of the /home directory. > eeek! > > and If I do a "chown -R uname:gname *", the files in every other > user's directory under the /home file system changes as well! > > Is there any info around with a fuller explanation of the options > of the chown command for a newbie other than the man pages? Try: cd / find . -user olduserid -print | xargs chown newname:gname ------------------------------------------------------------------- Jonathan Chen | -insert-witty-quip-here- ------------------------------------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message