Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/acorbe/gid_uid_utils
Shell scripts to handle GID and UID operations like ID changing and swapping
https://github.com/acorbe/gid_uid_utils
Last synced: 2 days ago
JSON representation
Shell scripts to handle GID and UID operations like ID changing and swapping
- Host: GitHub
- URL: https://github.com/acorbe/gid_uid_utils
- Owner: acorbe
- License: gpl-2.0
- Created: 2014-04-13T10:53:10.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-04-28T17:54:18.000Z (over 10 years ago)
- Last Synced: 2023-04-01T09:41:42.576Z (almost 2 years ago)
- Language: Shell
- Homepage:
- Size: 195 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
GID_UID_utils
=============Shell scripts to handle GID and UID operations like ID changing and swapping.
These operations are particularly useful e.g. when setting up a NFS share, which needs GID and UID to be consistent across the network.
CAVEAT:
---------------
Using any of the scripts that follow is done entirely at your own risk.USAGE:
---------------+ **aim:** given a user (say `acorbe`) and a group (say `gacorbe`), one wants to change his UID and the GID referring to his group. If the desired UID is `1001` and the desired GID is `1001`, the operation can be done via
# GID_UID_changer.sh acorbe gacorbe 1001 1001
*caveats:* target user (`acorbe`) must not be connected to the machine (either directly or remotely)*sources:* This scripts expands (by adding consistency checks) the following constributions
+ https://muffinresearch.co.uk/linux-changing-uids-and-gids-for-user/
+ http://askubuntu.com/questions/312919/how-to-change-user-gid-and-uid-in-ubuntu-13-04