Skip to content

Instantly share code, notes, and snippets.

@vpilot
Last active July 5, 2023 10:30
Show Gist options
  • Save vpilot/bf8eea477f4ab97b55f3fdb6b8f4cade to your computer and use it in GitHub Desktop.
Save vpilot/bf8eea477f4ab97b55f3fdb6b8f4cade to your computer and use it in GitHub Desktop.
Create deploment user without login and password
#!/bin/bash
# Create deploy user without login and password
# You may want to add this user to an existing group
# e.g.: usermod -a -G deploy www-data
adduser --disabled-login --shell /bin/bash --gecos "Deploy User" deploy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment