Forum Linux.général Impossible d'enregistrer un fichier d'un partage monté [sous debian]

Posté par  (site web personnel) .
Étiquettes :
0
10
fév.
2005
Voilà mon problème :

j'ai un serveur debian sarge avec samba 3. Un dossier qui a tous les droits (777 via chmod -R /srv/share/) est partager:

[partage]
browseable = yes
writeable = yes
path = /srv/share
force directory mode = 777
force directory mode = 777
comment = Partage principale
public = yes
create mode = 777
directory mode = 777


le guest est nobody et nogroup et security = share.

je monte le partage sur le client (debian sarge aussi, sous gnome) comme ceci :

smbmount //ip.ip.ip.ip/partage /home/crowfoot/mnt


Jusque là tout va bien. vitesse correcte, je vois tous les fichiers. le seul problème c'est que j'ai toutes les permission mais ne peut les modifier. ce n'est a priori pas trop grave vu que je peut effacer, rennomer ou ajouter des dossiers ou fichiers.

le problème vient du fait que quand j'ouvre un fichier avec jext, bluefich ... et que je le modifie puis enregistre, le prog se "gel" pendant un temps et me dis que l'enregistrement a échouer. Seul gedit arrive a enregistrer correctement après 1min de "gel".

Est-ce un prob de config serveur, du client, autre chose??

Pourriez vous m'éclairer svp? Merci bien.
  • # Faire un tour dans les logs

    Posté par  . Évalué à 1.

    Au niveau des logs, ça donne quoi ?
    • [^] # Re: Faire un tour dans les logs

      Posté par  (site web personnel) . Évalué à 2.

      alors le log pour l'ip client :


      [2005/02/09 13:28:49, 1] smbd/service.c:close_cnum(836)
      10.192.240.6 (10.192.240.6) closed connection to service partage
      10.192.240.6 (10.192.240.6) closed connection to service partage
      [2005/02/09 15:12:24, 1] smbd/service.c:make_connection_snum(648)
      10.192.240.6 (10.192.240.6) connect to service partage initially as user root (uid=0, gid=0) (pid 11578)
      [2005/02/09 15:54:53, 0] param/loadparm.c:map_parameter(2448)
      Unknown parameter encountered: "read prediction"
      [2005/02/09 15:54:53, 0] param/loadparm.c:lp_do_parameter(3138)
      Ignoring unknown parameter "read prediction"
      [2005/02/09 15:57:55, 0] param/loadparm.c:map_parameter(2448)
      Unknown parameter encountered: "read prediction"
      [2005/02/09 15:57:55, 0] param/loadparm.c:lp_do_parameter(3138)
      Ignoring unknown parameter "read prediction"
      [2005/02/09 16:00:57, 0] param/loadparm.c:map_parameter(2448)
      Unknown parameter encountered: "read prediction"
      [2005/02/09 16:00:57, 0] param/loadparm.c:lp_do_parameter(3138)
      Ignoring unknown parameter "read prediction"
      [2005/02/09 16:07:01, 0] param/loadparm.c:map_parameter(2448)
      Unknown parameter encountered: "read prediction"
      [2005/02/09 16:07:01, 0] param/loadparm.c:lp_do_parameter(3138)
      Ignoring unknown parameter "read prediction"
      [2005/02/09 16:15:12, 1] smbd/service.c:close_cnum(836)
      10.192.240.6 (10.192.240.6) closed connection to service partage
      [2005/02/09 17:46:39, 1] smbd/service.c:make_connection_snum(648)
      10.192.240.6 (10.192.240.6) connect to service partage initially as user root (uid=0, gid=0) (pid 25930)
      [2005/02/09 17:50:41, 1] smbd/service.c:close_cnum(836)
      10.192.240.6 (10.192.240.6) closed connection to service partage
      [2005/02/09 18:06:35, 1] smbd/service.c:make_connection_snum(648)
      10.192.240.6 (10.192.240.6) connect to service partage initially as user nobody (uid=65534, gid=65534) (pid 27788)
      [2005/02/09 18:10:24, 1] smbd/service.c:close_cnum(836)
      10.192.240.6 (10.192.240.6) closed connection to service partage
      [2005/02/09 18:14:11, 1] smbd/service.c:make_connection_snum(648)
      10.192.240.6 (10.192.240.6) connect to service partage initially as user nobody (uid=65534, gid=65534) (pid 28493)
      [2005/02/09 18:16:52, 1] smbd/service.c:close_cnum(836)
      10.192.240.6 (10.192.240.6) closed connection to service partage
      [2005/02/10 09:42:32, 1] smbd/service.c:make_connection_snum(648)
      10.192.240.6 (10.192.240.6) connect to service partage initially as user nobody (uid=65534, gid=65534) (pid 8816)
      [2005/02/10 09:58:26, 1] smbd/service.c:close_cnum(836)
      10.192.240.6 (10.192.240.6) closed connection to service partage
      [2005/02/10 10:03:20, 1] smbd/service.c:make_connection_snum(648)
      10.192.240.6 (10.192.240.6) connect to service partage initially as user nobody (uid=65534, gid=65534) (pid 10959)
      [2005/02/10 10:12:41, 1] smbd/service.c:close_cnum(836)
      10.192.240.6 (10.192.240.6) closed connection to service partage


      C'est juste la fin.

      la log de smnd :


      [2005/02/09 13:57:18, 0] param/loadparm.c:map_parameter(2448)
      Unknown parameter encountered: "read prediction"
      [2005/02/09 13:57:18, 0] param/loadparm.c:lp_do_parameter(3138)
      Ignoring unknown parameter "read prediction"
      [2005/02/09 15:58:17, 0] param/loadparm.c:map_parameter(2448)
      Unknown parameter encountered: "read prediction"
      [2005/02/09 15:58:17, 0] param/loadparm.c:lp_do_parameter(3138)
      Ignoring unknown parameter "read prediction"
      [2005/02/09 16:03:46, 0] param/loadparm.c:map_parameter(2448)
      Unknown parameter encountered: "read prediction"
      [2005/02/09 16:03:46, 0] param/loadparm.c:lp_do_parameter(3138)
      Ignoring unknown parameter "read prediction"
      [2005/02/09 16:15:14, 0] smbd/server.c:main(760)
      smbd version 3.0.10-Debian started.
      Copyright Andrew Tridgell and the Samba Team 1992-2004
      [2005/02/09 16:15:14, 0] param/loadparm.c:map_parameter(2448)
      Unknown parameter encountered: "read prediction"
      [2005/02/09 16:15:14, 0] param/loadparm.c:lp_do_parameter(3138)
      Ignoring unknown parameter "read prediction"
      [2005/02/09 18:00:42, 0] smbd/server.c:main(760)
      smbd version 3.0.10-Debian started.
      Copyright Andrew Tridgell and the Samba Team 1992-2004
      [2005/02/10 08:34:16, 0] smbd/server.c:main(760)
      smbd version 3.0.10-Debian started.
      Copyright Andrew Tridgell and the Samba Team 1992-2004
      [2005/02/10 08:34:16, 0] printing/pcap.c:pcap_printer_fn(361)
      Unable to open printcap file /etc/printcap for read!
      [2005/02/10 08:47:40, 0] smbd/server.c:main(760)
      smbd version 3.0.10-Debian started.
      Copyright Andrew Tridgell and the Samba Team 1992-2004
      [2005/02/10 08:47:40, 0] param/loadparm.c:map_parameter(2448)
      Unknown parameter encountered: "SO_RCVBUF"
      [2005/02/10 08:47:40, 0] param/loadparm.c:lp_do_parameter(3138)
      Ignoring unknown parameter "SO_RCVBUF"
      [2005/02/10 08:47:40, 0] printing/pcap.c:pcap_printer_fn(361)
      Unable to open printcap file /etc/printcap for read!
      [2005/02/10 08:50:04, 0] smbd/server.c:main(760)
      smbd version 3.0.10-Debian started.
      Copyright Andrew Tridgell and the Samba Team 1992-2004
      [2005/02/10 08:50:04, 0] printing/pcap.c:pcap_printer_fn(361)
      Unable to open printcap file /etc/printcap for read!
      [2005/02/10 09:10:06, 0] printing/pcap.c:pcap_printer_fn(361)
      Unable to open printcap file /etc/printcap for read!
      [2005/02/10 09:37:12, 0] smbd/server.c:main(760)
      smbd version 3.0.10-Debian started.
      Copyright Andrew Tridgell and the Samba Team 1992-2004
      [2005/02/10 09:58:29, 0] smbd/server.c:main(760)
      smbd version 3.0.10-Debian started.
      Copyright Andrew Tridgell and the Samba Team 1992-2004


      et de nmbd :


      Netbios nameserver version 3.0.10-Debian started.
      Copyright Andrew Tridgell and the Samba Team 1994-2004
      [2005/02/09 13:30:21, 0] param/loadparm.c:map_parameter(2448)
      Unknown parameter encountered: "read prediction"
      [2005/02/09 13:30:21, 0] param/loadparm.c:lp_do_parameter(3138)
      Ignoring unknown parameter "read prediction"
      [2005/02/09 16:15:11, 0] nmbd/nmbd.c:terminate(56)
      Got SIGTERM: going down...
      [2005/02/09 16:15:14, 0] nmbd/nmbd.c:main(668)
      Netbios nameserver version 3.0.10-Debian started.
      Copyright Andrew Tridgell and the Samba Team 1994-2004
      [2005/02/09 16:15:14, 0] param/loadparm.c:map_parameter(2448)
      Unknown parameter encountered: "read prediction"
      [2005/02/09 16:15:14, 0] param/loadparm.c:lp_do_parameter(3138)
      Ignoring unknown parameter "read prediction"
      [2005/02/09 17:57:22, 0] nmbd/nmbd_become_lmb.c:become_local_master_stage2(396)
      *****

      Samba name server SERVER2 is now a local master browser for workgroup MEDIA on subnet 10.192.240.252

      *****
      [2005/02/09 18:00:39, 0] nmbd/nmbd.c:terminate(56)
      Got SIGTERM: going down...
      [2005/02/09 18:00:42, 0] nmbd/nmbd.c:main(668)
      Netbios nameserver version 3.0.10-Debian started.
      Copyright Andrew Tridgell and the Samba Team 1994-2004
      [2005/02/09 18:11:22, 0] nmbd/nmbd_become_lmb.c:become_local_master_stage2(396)
      *****

      Samba name server SERVER2 is now a local master browser for workgroup MEDIA on subnet 10.192.240.252

      *****
      [2005/02/10 08:32:44, 0] nmbd/nmbd.c:terminate(56)
      Got SIGTERM: going down...
      [2005/02/10 08:34:15, 0] nmbd/nmbd.c:main(668)
      Netbios nameserver version 3.0.10-Debian started.
      Copyright Andrew Tridgell and the Samba Team 1994-2004
      [2005/02/10 08:39:55, 0] nmbd/nmbd_become_lmb.c:become_local_master_stage2(396)
      *****

      Samba name server SERVER2 is now a local master browser for workgroup MEDIA on subnet 10.192.240.252

      *****
      [2005/02/10 08:47:37, 0] nmbd/nmbd.c:terminate(56)
      Got SIGTERM: going down...
      [2005/02/10 08:47:40, 0] nmbd/nmbd.c:main(668)
      Netbios nameserver version 3.0.10-Debian started.
      Copyright Andrew Tridgell and the Samba Team 1994-2004
      [2005/02/10 08:47:40, 0] param/loadparm.c:map_parameter(2448)
      Unknown parameter encountered: "SO_RCVBUF"
      [2005/02/10 08:47:40, 0] param/loadparm.c:lp_do_parameter(3138)
      Ignoring unknown parameter "SO_RCVBUF"
      [2005/02/10 08:50:00, 0] nmbd/nmbd.c:terminate(56)
      Got SIGTERM: going down...
      [2005/02/10 08:50:04, 0] nmbd/nmbd.c:main(668)
      Netbios nameserver version 3.0.10-Debian started.
      Copyright Andrew Tridgell and the Samba Team 1994-2004
      [2005/02/10 09:10:42, 0] nmbd/nmbd_become_lmb.c:become_local_master_stage2(396)
      *****

      Samba name server SERVER2 is now a local master browser for workgroup MEDIA on subnet 10.192.240.252

      *****
      [2005/02/10 09:37:09, 0] nmbd/nmbd.c:terminate(56)
      Got SIGTERM: going down...
      [2005/02/10 09:37:12, 0] nmbd/nmbd.c:main(668)
      Netbios nameserver version 3.0.10-Debian started.
      Copyright Andrew Tridgell and the Samba Team 1994-2004
      [2005/02/10 09:58:25, 0] nmbd/nmbd.c:terminate(56)
      Got SIGTERM: going down...
      [2005/02/10 09:58:28, 0] nmbd/nmbd.c:main(668)
      Netbios nameserver version 3.0.10-Debian started.
      Copyright Andrew Tridgell and the Samba Team 1994-2004
      [2005/02/10 10:14:30, 0] nmbd/nmbd_become_lmb.c:become_local_master_stage2(396)
      *****

      Samba name server SERVER2 is now a local master browser for workgroup MEDIA on subnet 10.192.240.252

      *****


      Voilà. Je n'arrive pas à changer les droits à partire de la machine distante non plus... help... please...
      • [^] # "device busy" lors du démontage.

        Posté par  (site web personnel) . Évalué à 1.

        En plus, je n'arrive pas à démonter les partages monté car il serait occupés. Alors que je n'ai plus aucun docu ouvert ni même de nautilus ou console dessu...

        je ne vois vraiment pas...
      • [^] # Re: Faire un tour dans les logs

        Posté par  . Évalué à 1.

        Déjà essaye de voir dans ton fichier de conf s'il y a l'option "read prediction", elle doit ne plus être utilisée, tu as fait une mise à jour de samba en conservant de vieux fichiers de conf surement, me trompe-je ?

        Vu sur http://www.oreilly.com/catalog/samba/chapter/book/appb_02.html(...) :

        B.2.2.9 read prediction
        Besides being counterintuitive, this option is also obsolete. It enables Samba to read ahead on files opened read only by the clients. The option is disabled in Samba 2.0 (and late 1.9) Because it interferes with opportunistic locking.


        Petite précision, je peux me tromper (je ne suis pas très à jour), mais normalement avec smb tu ne peux pas modifier les permissions.
  • # Faire un tour dans les logs

    Posté par  . Évalué à 1.

    Au niveau des logs, ça donne quoi ?

Suivre le flux des commentaires

Note : les commentaires appartiennent à celles et ceux qui les ont postés. Nous n’en sommes pas responsables.