Date: Thu, 29 Apr 1999 10:33:48 +1200 (NZST) From: Jonathan Chen <jonc@pinnacle.co.nz> To: loren <lore@phile.com.au> Cc: "freebsd-questions@freebsd.org" <freebsd-questions@FreeBSD.ORG> Subject: Re: Changing a user's UID Message-ID: <Pine.SC5.4.10.9904291032130.514-100000@kiwi.pinnacle.co.nz> In-Reply-To: <199904290722.4136247.6@names.phile.com.au>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SC5.4.10.9904291032130.514-100000>