SHIFT-WIKI - Sjoerd Hooft's InFormation Technology
This WIKI is my personal documentation blog. Please enjoy it and feel free to reach out through blue sky if you have a question, remark, improvement or observation. See below for the latest additions, or use the search or tags to browse for content.
Cheatsheet Azure DevOps
Summary: Azure DevOps hints, tips, oneliners and best practices.
Date: 8 December 2024
Cheatsheet Azure CLI
Summary: AzureCLI hints, tips, oneliners and best practices. I prefer working with the Azure CLI when setting up test environments as it's fast, it's easy to see which settings you're deploying and the use of variables makes different snippets work very good together. When looking for such snippets, look for the deploy keyword.
Date: 8 December 2024
Cheatsheet Active Directory
Summary: Active Directory hints, tips, oneliners and best practices.
Date: 8 December 2024
Change User UID and GID on Red Hat
Summary: How to change the UID and or GID on Red Hat.
Date: Around 2015
Refactor: 21 February 2025: Checked links and formatting.
Follow these commands to change the user's uid and primary group gid.
First check the users UID and GID, as well as the GIDs name like this:
cat /etc/passwd | grep <username> id <username>
This will give you all the output you need. Now use these commands to change the UIDs and ownership of the files:
usermod -u <NEWUID> <LOGIN> groupmod -g <NEWGID> <GROUP> find / -user <OLDUID> -exec chown -h <NEWUID> {} \; find / -group <OLDGID> -exec chgrp -h <NEWGID> {} \;
Note that on old versions you might also have to do this:usermod -g <NEWGID> <LOGIN>
. On new versions this is not longer required.
Note that if you have NFS shares which also holds these uid/gid you need to follow the same procedure there if you have root squash enabled. You will get permission denied messages when you run into this.