The issue of inability to write logs due to permissions

Source: Internet
Author: User

There is a project on hand that is itself a console program that creates task schedule and executes on a daily schedule. This program is very simple, synchronize the data of a database to local, and then write the log (TXT file).

Suddenly one day the user proposed that the tool suddenly did not write log files, but the data synchronization is normal.

Check down is a permissions issue, the user running this task schedule is not granted permission to write in the log folder, so the log cannot be logged.

The permission Grant method is as follows:

You can also add write permissions to everyone, but at a higher risk, anyone can modify or even delete files on this folder.

The issue of inability to write logs due to permissions

Related Article

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.