摘要 |
The embodiments of the present invention provide a method and system for sharing files. The method includes: receiving a login request from a mail client; according to the login request and by using output information output after a mail server performs identity authentication for the mail client, completing login authentication for the mail client; when the login authentication is successful, receiving from the mail client a request for obtaining shared files, and performing share relationship authentication for the mail client according to the correspondences between the pre-stored shared files and users who are provided with the shared files; when the share relationship authentication is successful, permitting the mail client to obtain the shared files, wherein, when the login authentication is failed or when the share relationship authentication is failed, forbidding the mail client to obtain the shared files. The embodiments of the present invention use the mail server of the users who are provided with the shared files to perform the login authentication, and then perform the share relationship authentication, only when the two kinds of authentication is successful, the shared files are permitted to be obtained, thus implementing effective check on user validity and improving security for sharing files. |