How can I make a user and give read only access?

Solution 1:

Something like:

  • Create the user
    useradd readonlyuser
    
  • Enter its password if you want password auth, otherwise, setup SSH keys
    passwd readonlyuser
    
  • Give Read and Execution permission to the directory Owner and all its sub-folders and files
    chmod -R o+rx /var/www/html/websitenamehere/
    
  • Set the home directory of the user
    usermod -d /var/www/html/websitenamehere/ readonlyuser
    

Or you could just make a tarball of the filesystem and mail it to the user with something like

tar cfvz websitenamehere.tar.gz /var/www/html/websitenamehere/