User restrictions

How can I prevent a user from sharing login credentials?