How do I create logins for all database users in a database that was just restored for a different server?
Google for sp_help_revlogin and find the version for your version of SQL (the SQL 2008 version works on SQL 2008 and up).  Install this sp on the old server.  Run sp_help_revlogin on the old server.  Take the output and put it in a query window on the new server, and run the query to create all the logins.