About permissions for the ASPNET user

Source: Internet
Author: User
About permissions for the ASPNET user

When developing Web applications under ASP.net, especially when it comes to reading and writing files, it is often the case that the ASPNET user does not have the appropriate permissions on a directory, especially in NTFS partitions.

Our general solution is to right-click on the directory, select Security in Properties, and then add the ASPNET user to the current user list.

This approach is possible, but if there are multiple directories, it will require repeated operations, it is cumbersome, so we can use another method to achieve the same effect, and more efficient.

In Administrative Tools, we can select System Tools-Local Users and Groups-group, double-click Administrator, and then add the ASPNET user to the group. In this way, the ASPNET user has all the permissions of the Administrators group and naturally has read and write access to all directories.

However, before using this method, consider the possible security issues and pitfalls:





Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.