Create restricted user

PHOTO EMBED

Mon Jun 21 2021 20:27:00 GMT+0000 (UTC)

Saved by @dphillips #authentification

# Create user with access only to specific directory

adduser --home /restricted/directory restricted_user

# Make user owner of directory and grant write access

chown restricted_user:user_group /restricted/directory
chmod 755 /restricted/directory
content_copyCOPY

https://qastack.com.de/superuser/149404/to-create-an-ssh-user-who-only-has-permission-to-access-specific-folders