Skip to content

Instantly share code, notes, and snippets.

@jberger
Created October 11, 2023 19:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jberger/eb681a0ce924c4223b0f0e4210d7751a to your computer and use it in GitHub Desktop.
Save jberger/eb681a0ce924c4223b0f0e4210d7751a to your computer and use it in GitHub Desktop.
Create User Without Password
# create user with a disabled password
adduser myusername --disabled-password
# optionally add them to a group, like sudo
# adduser myusername sudo
# delete the disabled password
passwd -d myusername
# force an immediate password set
chage -d 0 myusername
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment