Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- useradd readonlyuser
- passwd readonlyuser (*if you want password auth, otherwise, setup SSH keys)
- chmod -R o+rx /var/www/html/websitenamehere/
- usermod -d /var/www/html/websitenamehere/ readonlyuser
- tar cfvz websitenamehere.tar.gz /var/www/html/websitenamehere/
Add Comment
Please, Sign In to add comment