From owner-freebsd-questions Thu Apr 29 17:38:33 1999 Delivered-To: freebsd-questions@freebsd.org Received: from names.phile.com.au (philli.lnk.telstra.net [139.130.44.202]) by hub.freebsd.org (Postfix) with SMTP id E4ED014E4F for ; Thu, 29 Apr 1999 17:38:28 -0700 (PDT) (envelope-from lore@phile.com.au) Received: from ibmmx200.phile.com.au (ibmmx200.phile.com.au [203.35.202.130] ) by names.phile.com.au (Hethmon Brothers Smtpd) ; Fri, 30 Apr 1999 10:37:27 +1000 Message-Id: <199904301037.2736709.6@names.phile.com.au> From: "loren" To: "freebsd-questions@freebsd.org" Date: Fri, 30 Apr 1999 10:38:30 +1100 (EDT) Reply-To: "loren" X-Mailer: PMMail 2.00.1500 for OS/2 Warp 4.00 In-Reply-To: <3.0.5.32.19990429150924.00a46e50@relay.alice.it> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Subject: Re: Changing a user's uid Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG After all the assistance that I got from the list and by private email [you know who you are :-) ], all the pain has been removed. After using vipw, followed by a: find / -user olduserid -print | xargs chown newusername:newgrpname everything works really well and I no longer have the /home file system owned by the new user due to my cockups! The only outstanding issue (and it's no big problem) is that the softlinks don't change the UID to the newuser, but the GID is changed correctly. The UID is shown in an "ls -al" as the UID number of the original user, but the group is shown as the groupname. An example, The original UID:GID were both 10051 and the original user and group names were testuser. The new UID:GID are both 12051, but still called testuser. After the above procedure, the result of a "ls -al" would be shown as: lrwxr-xr-x 1 10051 testuser 14 Apr 30 08:50 modules -> modules-1.3.23 drwxr-xr-x 1 testuser testuser 14 Apr 30 08:50 modules-1.3.23 I'm not certain whether this is a problem of using chown when quotas are turned on. But at least the target of the link changes ownership and the new quotas are reflected by the quota command. Anyway, many many thanks to all who assisted. Cheers Phillip Loren To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message