Files from Windows in Linux Share are "Read Only"

Questions about Wi-Fi and other network devices, file sharing, firewalls, connection sharing etc
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
Wirezfree
Level 2
Level 2
Posts: 65
Joined: Mon Jan 06, 2014 7:30 pm

Files from Windows in Linux Share are "Read Only"

Post by Wirezfree »

Hi,

Trying to resolve a sharing/permissions issue. I think?

Two PC's - Linux Mint 16 & Windows XP SP3
I have created a shared folder on each PC

The situation:
If I connect to the Windows share from Linux I can create files and edit them.
On the windows machine I can then open and edit those files also.

If I connect to the Linux share from Windows I can create files and edit them.
On the Linux machine If I open the files created from Windows are "Read Only"
I can create and edit files normally within the the shared folder.

The shares seem to be working,
but Linux is treating the Windows files some how differently.?

*** Update ***
If I create a file on my NAS from Windows, Linux can open edit the file.
If I move the file from NAS to the shared Linux folder it is still editable.
So the issue is files created directly from Window to Linux Share

Any guidance welcome.

Thanks... David
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
cwsnyder

Re: Files from Windows in Linux Share are "Read Only"

Post by cwsnyder »

Windows scrambles any permissions assigned to the file structure, and also any journal on the file system, unless your 'shared' folder is installed on an NTFS or other file structure which ignores file permissions.
Wirezfree
Level 2
Level 2
Posts: 65
Joined: Mon Jan 06, 2014 7:30 pm

Re: Files from Windows in Linux Share are "Read Only"

Post by Wirezfree »

cwsnyder wrote:Windows scrambles any permissions assigned to the file structure, and also any journal on the file system,
unless your 'shared' folder is installed on an NTFS or other file structure which ignores file permissions.
Hi,

Thanks, Linux is vey new to me, but I think I get that now.
So direct Windows to Linux is the problem,
but going via the NAS works because, if I'm correct the NAS is ext4?

David
altair4
Level 20
Level 20
Posts: 11458
Joined: Tue Feb 03, 2009 10:27 am

Re: Files from Windows in Linux Share are "Read Only"

Post by altair4 »

The shares seem to be working,
but Linux is treating the Windows files some how differently.?
Because the Windows files are coming across either owned by someone other than you or quite possibly as owner = nobody ( literally ).

Please post the output of the following commands:

Code: Select all

testparm -s

Code: Select all

net usershare info --long
There may be an easy fix depending how you are set up and the commands above will tell us that.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
Locked

Return to “Networking”