initial commit
This commit is contained in:
15
custom-cmds-in-ubuntu/bin_examples/createnewuserns
Normal file
15
custom-cmds-in-ubuntu/bin_examples/createnewuserns
Normal file
@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
###################################
|
||||
############ by Sthope ############
|
||||
###################################
|
||||
|
||||
## nano ~/.bashrc
|
||||
## and add this to the end of the file: export PATH=$PATH:~/bin
|
||||
## sudo chmod +x ~/bin/*;su -l $USER
|
||||
|
||||
#### USAGE
|
||||
# bash -c "$(wget -qLO - https://git.sthope.dev/sthope/sthope_website_examples/raw/branch/master/custom-cmds-in-ubuntu/bin_examples/createnewuserns)" go Username Password
|
||||
# Type "createnewuserns USERNAME PASSWORD" it will create new user without asking all the questions
|
||||
|
||||
adduser ${0} --gecos "${0},69,69,69" --disabled-password
|
||||
echo "${0}:${1}" | chpasswd
|
Reference in New Issue
Block a user