Advertisement
Guest User

Untitled

a guest
Oct 10th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.57 KB | None | 0 0
  1. sudo useradd -r -U -u 1234567 -g 1234567 -m -c "nexus role account" -d /sonatype-work -s /bin/false nexus
  2.  
  3. useradd: group '1234567' does not exist
  4.  
  5. sudo useradd -r -U -u 1234567 -m -c "nexus role account" -d /sonatype-work -s /bin/false nexus
  6.  
  7. Adding user `nexus' ...
  8. Adding new group `nexus' (1234567) ...
  9. Adding new user `nexus' (1234567) with group `nexus' ...
  10. The home directory `/home/nexus' already exists. Not copying from `/etc/skel'.
  11. adduser: Warning: The home directory `/home/nexus' does not belong to the user you are currently creating.
  12. Enter new UNIX password:
  13. Retype new UNIX password:
  14. No password supplied
  15. Enter new UNIX password:
  16. Retype new UNIX password:
  17. No password supplied
  18. Enter new UNIX password:
  19. Retype new UNIX password:
  20. No password supplied
  21. passwd: Authentication token manipulation error
  22. passwd: password unchanged
  23. Try again? [y/N] n
  24. Changing the user information for nexus
  25. Enter the new value, or press ENTER for the default
  26. Full Name []: Nexus
  27. Room Number []:
  28. Work Phone []:
  29. Home Phone []:
  30. Other []:
  31. Is the information correct? [Y/n] y
  32.  
  33. sudo groupadd -r -g 1234567 nexus
  34. && sudo useradd -r -u 1234567 -g 1234567 -m -c "nexus role account" -d /sonatype-work -s /bin/false nexus
  35.  
  36. [root@centos4]# useradd -U -u 200 -g 200 -m -d /home/ansible -s /usr/bin/bash ansible
  37. useradd: group '200' does not exist
  38.  
  39. [root@centos4]# useradd -U -u 200 -m -d /home/ansible -s /usr/bin/bash ansible
  40. [root@centos4]# egrep ansible /etc/passwd
  41. ansible:x:200:1000::/home/ansible:/usr/bin/bash
  42. [root@centos4]# egrep ansible /etc/group
  43. ansible:x:1000:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement