Hi,

On Fri, 21 Jul 2006 12:02:49 +0200 Arnau Bria <[EMAIL PROTECTED]>
wrote:

> I'd like to change cyrus id from currently to 120.

Why's that? You will at least bork the existing files to a degree that
they can't be automatically uninstalled by emerge anymore.

> I tried usermod, but cyrus files didn't change its owner.

No, usermod & Co only modify the authentication db, i.e. /etc/passwd.

> could someone explain which is the way of changing user id and that
> user doesn't lose its files? 

A subsequent run of 

find / -user <olduid> -exec chown cyrus '{}' \;

(as root, of course) should suffice. I don't see a way to do this
atomically with the UID change.

Note that your backups will probably still carry the old UID, keep that
in mind for the case you need to restore them.

-hwh
-- 
gentoo-user@gentoo.org mailing list

Reply via email to