Change Linux UID/GID

18.03.2010

Log in with another user than the one to be edited or reboot into recovery mode and enter the following commands:

usermod -u <new-UID> <old-username>
groupmod -g <new-GID> <old-groupname>
find / -user <old-UID> -exec chown <new-UID> {} \;
find / -group <old-GID> -exec chgrp <new-GID> {} \;

Warning: Use on your own risk. This change should only be done by users that know what they’re doing.

Hinterlasse einen Kommentar

Dein Kommentar:

XHTML: Sie dürfen folgende Tags verwenden: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">

Kategorien