Langsung ke konten utama

Linux command to change UID and GID

Let us see some examples and commands to change a user and group ID in Linux:
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

Verify that you changed UID and GID for given users with the help of ls command:
# ls -l

Komentar

Postingan populer dari blog ini

Install jq on Raspberry Pi

jq is a lightweight and flexible command-line JSON processor. jq is like sed for JSON data - you can use it to slice and filter and map and transform structured data with the same ease that sed , awk , grep and friends let you play with text. jq is written in portable C, and it has zero runtime dependencies. You can download a single binary, scp it to a far away machine of the same type, and expect it to work. jq can mangle the data format that you have into the one that you want with very little effort, and the program to do so is often shorter and simpler than you'd expect. $ cd /tmp $ wget https://github.com/stedolan/jq/releases/download/jq-1.5/jq-1.5.tar.gz $ tar xfvz jq-1.5.tar.gz $ cd jq-1.5 $ ./configure && make && sudo make install

FMW 12.2.1.3.0: "ONS configuration failed" or "oracle.ons.NoServersAvailable: Subscription time out"

FMW 12.2.1.3.0: "ONS configuration failed" or "oracle.ons.NoServersAvailable: Subscription time out" Solving To implement the workaround in the Configuration Wizard(config.sh) set the following environment variable before launching config.sh. $ export CONFIG_JVM_ARGS=-Doracle.jdbc.fanEnabled=false