[Samba] Problem with Notepad ++

RITTER, Philippe philippe.ritter at caisse-des-medecins.ch
Thu Apr 7 16:26:54 UTC 2016


Thank you for your mail.

Just one mor information, I asked help also on notepad++ : https://notepad-plus-plus.org/community/topic/11543/problem-with-reload

Someome give me the source of the reason of notepad++ asking for reload :
https://github.com/notepad-plus-plus/notepad-plus-plus/blob/86ab42031f3e1688edaab8390d3a82a181abdab0/PowerEditor/src/ScitillaComponent/Buffer.cpp#L232

I have done some of your question : Ls –l and properties of file have never changed, but notepad++ something think it as.
phr at mumm:~$ ls -l cdm_lpr.pl
-rwxr-xr-x 1 phr domain users 5214 Apr  7 17:06 cdm_lpr.pl

On the samba debug log for my computer, I see this :
  CDM\phr opened file cdm_lpr.pl read=No write=No (numopen=4)
  CDM\phr closed file cdm_lpr.pl (numopen=3) NT_STATUS_OK
  CDM\phr opened file cdm_lpr.pl read=No write=No (numopen=5)
  CDM\phr closed file cdm_lpr.pl (numopen=6) NT_STATUS_OK
  CDM\phr opened file cdm_lpr.pl read=No write=No (numopen=4)
  CDM\phr closed file cdm_lpr.pl (numopen=4) NT_STATUS_OK
  CDM\phr opened file cdm_lpr.pl read=No write=No (numopen=4)
  CDM\phr closed file cdm_lpr.pl (numopen=5) NT_STATUS_OK
  CDM\phr opened file cdm_lpr.pl read=No write=No (numopen=4)
  CDM\phr closed file cdm_lpr.pl (numopen=3) NT_STATUS_OK
  CDM\phr opened file cdm_lpr.pl read=No write=No (numopen=8)
  CDM\phr closed file cdm_lpr.pl (numopen=3) NT_STATUS_OK
  CDM\phr opened file cdm_lpr.pl read=No write=No (numopen=4)
  CDM\phr closed file cdm_lpr.pl (numopen=3) NT_STATUS_OK
  CDM\phr opened file cdm_lpr.pl read=No write=No (numopen=4)
  CDM\phr closed file cdm_lpr.pl (numopen=3) NT_STATUS_OK
  CDM\phr opened file cdm_lpr.pl read=Yes write=No (numopen=4)
  CDM\phr closed file cdm_lpr.pl (numopen=3) NT_STATUS_OK
  CDM\phr opened file cdm_lpr.pl read=No write=No (numopen=4)
  CDM\phr closed file cdm_lpr.pl (numopen=7) NT_STATUS_OK
  CDM\phr opened file cdm_lpr.pl read=No write=No (numopen=7)
  CDM\phr closed file cdm_lpr.pl (numopen=3) NT_STATUS_OK
  CDM\phr opened file cdm_lpr.pl read=No write=No (numopen=4)
  CDM\phr closed file cdm_lpr.pl (numopen=3) NT_STATUS_OK
  CDM\phr opened file cdm_lpr.pl read=No write=No (numopen=4)
  CDM\phr closed file cdm_lpr.pl (numopen=5) NT_STATUS_OK
  CDM\phr opened file cdm_lpr.pl read=No write=No (numopen=4)
  CDM\phr closed file cdm_lpr.pl (numopen=7) NT_STATUS_OK
  CDM\phr opened file cdm_lpr.pl read=No write=No (numopen=4)
 CDM\phr closed file cdm_lpr.pl (numopen=5) NT_STATUS_OK
  CDM\phr opened file cdm_lpr.pl read=No write=No (numopen=4)
  CDM\phr closed file cdm_lpr.pl (numopen=4) NT_STATUS_OK
  CDM\phr opened file cdm_lpr.pl read=No write=No (numopen=4)
  CDM\phr closed file cdm_lpr.pl (numopen=3) NT_STATUS_OK
  CDM\phr opened file cdm_lpr.pl read=No write=No (numopen=4)
  CDM\phr closed file cdm_lpr.pl (numopen=3) NT_STATUS_OK

De : Jeff Sadowski [mailto:jeff.sadowski at gmail.com]
Envoyé : jeudi 7 avril 2016 17:02
À : RITTER, Philippe
Cc : samba at lists.samba.org
Objet : Re: [Samba] Problem with Notepad ++

A little more thought into helping troubleshooting maybe take an ls -l and a properties screen shot in the middle of editing a file. It could be some setting in notepad++ that is interfering with itself.

On Thu, Apr 7, 2016 at 8:51 AM, Jeff Sadowski <jeff.sadowski at gmail.com<mailto:jeff.sadowski at gmail.com>> wrote:
Can you post ls -l of a file on your samba shared directory.(before opening it with notepad++)
Also open in the windows file browser and right click on said file and click on properties and take a window shot alt+prtscrn (before opening it with notepad++)
save the image in paint and label it before. The time stamp should match your ls -l if not you already have a problem

then when notepad++ sees a change do another ls -l to show that the last updated handle hasn't changed. If it has changed you have something touching your files.

reopen the properties window on it and see if it matches the last modified
save this as after

I really can not help but this might show a problem if things don't line up.

On Thu, Apr 7, 2016 at 7:37 AM, RITTER, Philippe <philippe.ritter at caisse-des-medecins.ch<mailto:philippe.ritter at caisse-des-medecins.ch>> wrote:
Hello

Sorry to resend this mail, but I still have this problem. Does someby have a clue or direction to look at ?

Thank you and regards
Philippe RITTER

-----Message d'origine-----
De : RITTER, Philippe
Envoyé : mercredi 30 mars 2016 17:24
À : 'samba at lists.samba.org<mailto:samba at lists.samba.org>'
Objet : Problem with Notepad ++

Good day to everybody,

I have a problem with Notepad ++, but it is not related only to this editor.

Since my upgrade from Debian 7 to 8 (Jessie), and upgrade from Samba 3 to Samba 4, I have a new problem. When I work on a file from a windows computer on a remote samba server, notepad ++ sometimes detect that the file as changed, but this is not true. As someone already seen this problem ?

Thank you and regards
Philippe RITTER

My conf :
[global]
        workgroup = CDM
        netbios name = mumm
        security = ADS
        realm = CDM.SMIS.CH<http://CDM.SMIS.CH>
        socket options = TCP_NODELAY

        server string = Mumm Samba Server
        map to guest = Bad Uid
        map archive = no
        log file = /var/log/samba/%m.log
        log level = 2
        max log size = 10000

        local master = No
        read only = No
        preferred master = no
        short preserve case = No
        dos filetime resolution = Yes

        dedicated keytab file = /etc/krb5.keytab
        ##kerberos method = secrets and keytab
        kerberos method = secrets

        idmap config * : backend = tdb
        idmap config * : range = 100000-299999
        idmap config CDM : backend = rid
        idmap config CDM : range = 10000-99999

        winbind trusted domains only = no
        winbind use default domain = yes
        winbind enum users  = yes
        winbind enum groups = yes
        winbind refresh tickets = yes
        winbind offline logon = no
        template shell = /bin/bash
        template homedir = /home/%U


--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba




More information about the samba mailing list