Creating accounts in linux

The quick way I’ve found to create accounts in linux is as follows;

groupadd (user admin group)
adduser (user) -G (user admin group) -s /bin/bash
echo "(password)" | passwd --stdin "(user)"

doing this on a single server is probably overkill and you could type it out in the time it takes to set it up and run, but if you’re working on an environment this save’s plenty of time over a bunch of servers.

Go to top
%d bloggers like this: