|Main Archive Page > Month Archives > fedora-users archives|
suvayu ali wrote:
> I see that usermod can do this, but I'm not sure if there will be
> conflicts with existing files after the change.
If you are using plain authentication and not something like LDAP you
can use usermod and edit groups with groupmod. You can manually edit
/etc/passwd or /etc/group, but you will have to manually run "chown"
across all files with the old UID/GID to update them to the new UID/GID.
After you make the GID change you will have to change the ownership of
your home to match the new GID:
# chgrp -R group /home/user
(per the groupmod man page)
Also, delete any /tmp files with your old UID and chown files outside of
/home. (per the usermod man page)
# chown -R user:group /opt/foo/dir
 Any files that have the old group ID and must continue to belong to
GROUP, must have their group ID changed manually.
 The ownership of files outside of the user´s home directory must be
-- users mailing list email@example.com To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines