Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

2
Weird issue with permissions of newly created files
Post Flair (click to view more posts with a particular flair)
Post Body

My issue is NOT with files created in the WSL filesystem, or with files created through WSL on the C: drive. The issue is with files created by Windows programs on the C: drive as seen from WSL. First, the contents of /etc/wsl.conf:

[automount] options = metadata,case=dir,umask=22,fmask=11,uid=1000,gid=1000

(Partial) results of mount -l:

C:\ on /mnt/c type drvfs (rw,noatime,uid=1000,gid=1000,umask=22,fmask=11,metadata,case=dir)

Again, no issues with files created from WSL:

cd /mnt/c touch test.txt ls -l test.txt

(Partial) output of last command:

-rw-r--r--

But when I create a file using a Windows application, like Notepad , WSL shows it has these permissions:

-rwxr--r--

There shouldn't be an executable bit set for the owner. I've tested this with multiple programs and in different directories.

Author
Account Strength
100%
Account Age
7 years
Verified Email
Yes
Verified Flair
No
Total Karma
5,125
Link Karma
983
Comment Karma
4,129
Profile updated: 3 days ago
Posts updated: 8 hours ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
4 years ago