Here’s the command to create a Linux user with a specific user id and group id.
sudo groupadd -r -g 1234567 username sudo useradd -r -u 1234567 -g 1234567 -m -d /home/username -s /bin/bash nexus -c "my new account" |
cloud engineer
Here’s the command to create a Linux user with a specific user id and group id.
sudo groupadd -r -g 1234567 username sudo useradd -r -u 1234567 -g 1234567 -m -d /home/username -s /bin/bash nexus -c "my new account" |
sudo groupadd -r -g 1234567 username sudo useradd -r -u 1234567 -g 1234567 -m -d /home/username -s /bin/bash nexus -c "my new account"
Here’s the command to add a Linux user.
useradd -m -s $(which bash) -G sudo ulysses |
useradd -m -s $(which bash) -G sudo ulysses
-m creates a home directory. -s selects a shell. -G adds user to a sudo group.