Replace User's GID

From Pikes' Wiki
Revision as of 18:16, 17 November 2009 by 74.221.178.2 (talk) (New page: *Check for Use of the new GID<br/>If used then replace this one first with its target. *Update /etc/group and /etc/passwd **groupmod -g {newgid} {groupname} **usermod -g {groupname} {user}...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
  • Check for Use of the new GID
    If used then replace this one first with its target.
  • Update /etc/group and /etc/passwd
    • groupmod -g {newgid} {groupname}
    • usermod -g {groupname} {user}
  • Check for Use of the old GID and fix
    • find / -gid {oldgid} -exec chgrp -h groupname {} \;