Date: Fri, 30 Apr 1999 10:38:30 +1100 (EDT) From: "loren" <lore@phile.com.au> To: "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org> Subject: Re: Changing a user's uid Message-ID: <199904301037.2736709.6@names.phile.com.au> In-Reply-To: <3.0.5.32.19990429150924.00a46e50@relay.alice.it>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199904301037.2736709.6>