share_file_with_user: small fixes