Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sudo useradd -r -U -u 1234567 -g 1234567 -m -c "nexus role account" -d /sonatype-work -s /bin/false nexus
- useradd: group '1234567' does not exist
- sudo useradd -r -U -u 1234567 -m -c "nexus role account" -d /sonatype-work -s /bin/false nexus
- Adding user `nexus' ...
- Adding new group `nexus' (1234567) ...
- Adding new user `nexus' (1234567) with group `nexus' ...
- The home directory `/home/nexus' already exists. Not copying from `/etc/skel'.
- adduser: Warning: The home directory `/home/nexus' does not belong to the user you are currently creating.
- Enter new UNIX password:
- Retype new UNIX password:
- No password supplied
- Enter new UNIX password:
- Retype new UNIX password:
- No password supplied
- Enter new UNIX password:
- Retype new UNIX password:
- No password supplied
- passwd: Authentication token manipulation error
- passwd: password unchanged
- Try again? [y/N] n
- Changing the user information for nexus
- Enter the new value, or press ENTER for the default
- Full Name []: Nexus
- Room Number []:
- Work Phone []:
- Home Phone []:
- Other []:
- Is the information correct? [Y/n] y
- sudo groupadd -r -g 1234567 nexus
- && sudo useradd -r -u 1234567 -g 1234567 -m -c "nexus role account" -d /sonatype-work -s /bin/false nexus
- [root@centos4]# useradd -U -u 200 -g 200 -m -d /home/ansible -s /usr/bin/bash ansible
- useradd: group '200' does not exist
- [root@centos4]# useradd -U -u 200 -m -d /home/ansible -s /usr/bin/bash ansible
- [root@centos4]# egrep ansible /etc/passwd
- ansible:x:200:1000::/home/ansible:/usr/bin/bash
- [root@centos4]# egrep ansible /etc/group
- ansible:x:1000:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement