This information HAS errors and is made available
WITHOUT ANY WARRANTY OF ANY KIND and without even the
implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. It is not permissible to be read by
anyone who has ever met a lawyer or attorney. Use is confined to
Engineers with more than 370 course hours of engineering.
If you see an error contact:
+1(785) 841 3089
inform@xtronics.com
# Create group first.. Best to make group and user ID the same on all machines.Any time you make changes - might be a good idea to run pwck and grpck
$ addgroup --gid ID group ; create a group with correct id ID = gid number $ usermod -a -uid ID -G group-name username ;add group name to user ID=UID number $ adduser --home DIR --shell /bin/bash --uid ID --gid ID --add_extra_groups user ; ID - group and user ID numbers $ deluser user
killall -u old id old usermod -l new old groupmod -n new old mv /home/old /home/new usermod -d /home/new -m new usermod -c “New Real Name” new id new
The above could easily be made into a script. Make sure the
incoming mail server is updated for that local-part.
old UID: 1005
Foo’s new UID: 2005
Our sample group name: foo
Foo’s old GID: 2000
Foo’s new GID: 3000
To assign a new UID to user called foo, enter:
$ usermod -u 2005 foo
To assign a new GID to group called foo, enter:
$ groupmod -g 3000 foo
Top Page | wiki Index |