Krishna G
2019-Feb-13 14:40 UTC
[Samba] Problem writing to ADS with cifs mounted windows share on Linux
Hi, We are facing difficulties writing to Alternate Data Streams (ADS) on a Windows CIFS mount on CentOS/RHEL Linux. Steps followed on both machine: -------------------------------------------- On RHEL(cifs.ko version: 1.68) 1. Created sample.txt file using vim with come content inside the Windows CIFS share mounted on linux. 2. Then wrote some content with “vim sample.txt:mytext”. This writes successfully into ADS. 3. On windows running “streams.exe sample.txt” we can see the ADS content. On CentOS(cifs.ko.xy version: 2.09) 1. Followed the same above two steps 1 and 2. 2. It created a new file on linux as “sample.txt<some random char replaced>mytext (note the “:” got mapped with some random char) 3. On windows also the same it shows “sample.txt<some random char replaced>mytext” Have we anything on centOS. While mounting windows share we used “mount -t cifs <windows path> <local_path>” with and without “-o nomapchars” , “-o noposixpath” etc. But no success. Please advice how to proceed further. Appreciate any guidance provided. Thanks Krishna -- Regards G.Krishna
L.P.H. van Belle
2019-Feb-13 15:30 UTC
[Samba] Problem writing to ADS with cifs mounted windows share on Linux
Hai, What happens if you add to the mount the option -mSMB2 If that does not work, tell the exact running OS, RH (NR) , Centos (NR) And samba version. Greetz, Louis> -----Oorspronkelijk bericht----- > Van: samba [mailto:samba-bounces at lists.samba.org] Namens > Krishna G via samba > Verzonden: woensdag 13 februari 2019 15:41 > Aan: samba at lists.samba.org > Onderwerp: [Samba] Problem writing to ADS with cifs mounted > windows share on Linux > > Hi, > > > > We are facing difficulties writing to Alternate Data Streams > (ADS) on a > Windows CIFS mount on CentOS/RHEL Linux. > > > > Steps followed on both machine: > > -------------------------------------------- > > > > On RHEL(cifs.ko version: 1.68) > > > > 1. Created sample.txt file using vim with come content inside the > Windows CIFS share mounted on linux. > 2. Then wrote some content with “vim sample.txt:mytext”. > This writes > successfully into ADS. > 3. On windows running “streams.exe sample.txt” we can see the ADS > content. > > > > On CentOS(cifs.ko.xy version: 2.09) > > > > 1. Followed the same above two steps 1 and 2. > 2. It created a new file on linux as “sample.txt<some random char > replaced>mytext (note the “:” got mapped with some random char) > 3. On windows also the same it shows “sample.txt<some random char > replaced>mytext” > > > > Have we anything on centOS. While mounting windows share we > used “mount -t > cifs <windows path> <local_path>” with and without “-o > nomapchars” , “-o > noposixpath” etc. But no success. > > > > Please advice how to proceed further. > > Appreciate any guidance provided. > > > > Thanks > > Krishna > > > > -- > Regards > G.Krishna > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba >
Aurélien Aptel
2019-Feb-13 17:01 UTC
[Samba] Problem writing to ADS with cifs mounted windows share on Linux
(re-sending to list with the right email, sorry) Krishna G via samba <samba at lists.samba.org> writes:> Please advice how to proceed further.Try just nomapposix. That being said I don't think ADS were ever officially supported in cifs.ko, it might have happened to work for simple cases but it probably is easy to break. Cheers, -- Aurélien Aptel / SUSE Labs Samba Team GPG: 1839 CB5F 9F5B FB9B AA97 8C99 03C8 A49B 521B D5D3 SUSE Linux GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg)
L.P.H. van Belle
2019-Feb-19 11:59 UTC
[Samba] Problem writing to ADS with cifs mounted windows share on Linux
Hi Krishna, Thank you for sharing the solution that worked for you. Greetz, Louis Van: Krishna G [mailto:g.krishna1 at gmail.com] Verzonden: dinsdag 19 februari 2019 12:50 Aan: L.P.H. van Belle Onderwerp: Re: [Samba] Problem writing to ADS with cifs mounted windows share on Linux Hi, This option did not work. Instead nomapposix helped as it is working as we expected. Thank you for your help. Krishna On Wed, Feb 13, 2019 at 9:01 PM L.P.H. van Belle via samba <samba at lists.samba.org> wrote: Hai, What happens if you add to the mount the option -mSMB2 If that does not work, tell the exact running OS, RH (NR) , Centos (NR) And samba version. Greetz, Louis> -----Oorspronkelijk bericht----- > Van: samba [mailto:samba-bounces at lists.samba.org] Namens > Krishna G via samba > Verzonden: woensdag 13 februari 2019 15:41 > Aan: samba at lists.samba.org > Onderwerp: [Samba] Problem writing to ADS with cifs mounted > windows share on Linux > > Hi, > > > > We are facing difficulties writing to Alternate Data Streams > (ADS) on a > Windows CIFS mount on CentOS/RHEL Linux. > > > > Steps followed on both machine: > > -------------------------------------------- > > > > On RHEL(cifs.ko version: 1.68) > > > > 1. Created sample.txt file using vim with come content inside the > Windows CIFS share mounted on linux. > 2. Then wrote some content with “vim sample.txt:mytext”. > This writes > successfully into ADS. > 3. On windows running “streams.exe sample.txt” we can see the ADS > content. > > > > On CentOS(cifs.ko.xy version: 2.09) > > > > 1. Followed the same above two steps 1 and 2. > 2. It created a new file on linux as “sample.txt<some random char > replaced>mytext (note the “:” got mapped with some random char) > 3. On windows also the same it shows “sample.txt<some random char > replaced>mytext” > > > > Have we anything on centOS. While mounting windows share we > used “mount -t > cifs <windows path> <local_path>” with and without “-o > nomapchars” , “-o > noposixpath” etc. But no success. > > > > Please advice how to proceed further. > > Appreciate any guidance provided. > > > > Thanks > > Krishna > > > > -- > Regards > G.Krishna > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba >-- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba -- Regards G.Krishna