newusers command - bulk users insert
ubuntu@ubuntu:~/Documents/testadmin$ cat users1
us1:passwd:11111:12345:full name:/home/us1:/bin/bash
ubuntu@ubuntu:~/Documents/testadmin$ sudo newusers users1
ubuntu@ubuntu:~/Documents/testadmin$ tail -n 2 /etc/passwd
Jakob:x:1004:1004::/home/Jakob:
us1:x:11111:12345:full name:/home/us1:/bin/bash
us1:passwd:11111:12345:full name:/home/us1:/bin/bash
ubuntu@ubuntu:~/Documents/testadmin$ sudo newusers users1
ubuntu@ubuntu:~/Documents/testadmin$ tail -n 2 /etc/passwd
Jakob:x:1004:1004::/home/Jakob:
us1:x:11111:12345:full name:/home/us1:/bin/bash
<Username>:<Password>:<UID>:<GID>:<User Info>:<Home Dir>:<Default Shell>
Comments
Post a Comment