Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentes Révision précédente
Prochaine révision
Révision précédente
smbnetfs [Le 21/11/2017, 20:47]
86.234.160.132 [Utilisation] Ajout avertissement. Merci aussi d'indiquer les droits à appliquer. Ubuntu c'est pas Gentoo ou Slackware
smbnetfs [Le 18/10/2025, 01:38] (Version actuelle)
krodelabestiole lien smbclient
Ligne 1: Ligne 1:
 {{tag>​Xenial administration réseau samba Windows}} {{tag>​Xenial administration réseau samba Windows}}
- 
----- 
  
 ====== SMBNetFS ====== ====== SMBNetFS ======
Ligne 7: Ligne 5:
 Tout comme //SMB For Fuse// ([[:​fusesmb|fusesmb]]),​ **SMBNetFS** sert à monter sur son système de fichier le voisinage réseau [[:​samba|samba]] (réseau Microsoft), de son petit nom abrégé SMB. Tout comme //SMB For Fuse// ([[:​fusesmb|fusesmb]]),​ **SMBNetFS** sert à monter sur son système de fichier le voisinage réseau [[:​samba|samba]] (réseau Microsoft), de son petit nom abrégé SMB.
  
-L'​avantage est de manipuler les données distantes avec n'​importe quel gestionnaire de fichier (Nautilus, Konqueror, ROX, Thunar ou même la ligne de commande), ce qui est bien plus pratique que les commandes smbclient et smbmount, ou que de se restreindre aux logiciels utilisant GnomeVFS (comme Nautilus ou [[gigolo|Gigolo]]).+L'​avantage est de manipuler les données distantes avec n'​importe quel gestionnaire de fichier (Nautilus, Konqueror, ROX, Thunar ou même la ligne de commande), ce qui est bien plus pratique que les commandes ​**[[:samba#smbclient]]** et smbmount, ou que de se restreindre aux logiciels utilisant GnomeVFS (comme Nautilus ou [[gigolo|Gigolo]]).
  
 Les anciens utilisateurs de Windows, nouveau utilisateurs de Linux, ne se sentent donc pas perdus. Les anciens utilisateurs de Windows, nouveau utilisateurs de Linux, ne se sentent donc pas perdus.
Ligne 21: Ligne 19:
 ===== Utilisation ===== ===== Utilisation =====
  
-<note important>​En utilisant vous exposez votre système à des problèmes de sécurité. N'​utilisez ces commandes qu'en connaissance de causes ​</​note>​+<note important>​En utilisant vous exposez votre système à des problèmes de sécurité. N'​utilisez ces commandes qu'en connaissance de cause.</​note>​
  
 === Direct === === Direct ===
Ligne 50: Ligne 48:
 En cas de soucis avec le voisinage réseau, voici un petit script qui permet de forcer le rafraîchissement : En cas de soucis avec le voisinage réseau, voici un petit script qui permet de forcer le rafraîchissement :
 <file bash> <file bash>
-#! /​bin/​sh ​+#! /bin/sh
  
 isfuse=$(cat /etc/mtab | grep smbnetfs) isfuse=$(cat /etc/mtab | grep smbnetfs)
Ligne 75: Ligne 73:
 <​file>​ <​file>​
 #################################​ #################################​
-                              ​+                            ​
- SMBNETFS sample config file  # +#SMBNETFS sample config file  # 
-                              ​#+                            ​#
 #################################​ #################################​
  
 #​--------------------------------------------------------------------- #​---------------------------------------------------------------------
-# SMBNetFs debug level. Most of people should not use debug level +#SMBNetFs debug level. Most of people should not use debug level 
-# greater then 6. +#greater then 6. 
-# Possible values: 0 <= smbnetfs_debug <= 10+#Possible values: 0 <= smbnetfs_debug <= 10
 # #
-# Default: 0+#Default: 0
 #​--------------------------------------------------------------------- #​---------------------------------------------------------------------
 #​smbnetfs_debug 10 #​smbnetfs_debug 10
  
 #​--------------------------------------------------------------------- #​---------------------------------------------------------------------
-# File to store SMBNETFS debug messages+#File to store SMBNETFS debug messages
 # #
-# Default: print to stderr+#Default: print to stderr
 #​--------------------------------------------------------------------- #​---------------------------------------------------------------------
 #​log_file "​smbnetfs.log"​ #​log_file "​smbnetfs.log"​
  
 #​--------------------------------------------------------------------- #​---------------------------------------------------------------------
-# Child process inactivity timeout. Child process will be finished +#Child process inactivity timeout. Child process will be finished 
-# after timeout expiration. +#after timeout expiration. 
-# Possible values: listen_timeout >= 30+#Possible values: listen_timeout >= 30
 # #
-# Default: 300+#Default: 300
 #​--------------------------------------------------------------------- #​---------------------------------------------------------------------
 #​listen_timeout 300 #​listen_timeout 300
  
 #​--------------------------------------------------------------------- #​---------------------------------------------------------------------
-# Samba debug level (man smb.conf for details) +#Samba debug level (man smb.conf for details) 
-# Possible values: 0 <= smb_debug_level <= 10+#Possible values: 0 <= smb_debug_level <= 10
 # #
-# Default: 0+#Default: 0
 #​--------------------------------------------------------------------- #​---------------------------------------------------------------------
 #​smb_debug_level 10 #​smb_debug_level 10
  
 #​--------------------------------------------------------------------- #​---------------------------------------------------------------------
-# Local charset+#Local charset
 # #
-# Default: autodetected+#Default: autodetected
 #​--------------------------------------------------------------------- #​---------------------------------------------------------------------
 #​local_charset "​koi8-r"​ #​local_charset "​koi8-r"​
  
 #​--------------------------------------------------------------------- #​---------------------------------------------------------------------
-# Charset used by samba+#Charset used by samba
 # #
-# Default: utf-8+#Default: utf-8
 #​--------------------------------------------------------------------- #​---------------------------------------------------------------------
 #​samba_charset "​utf-8"​ #​samba_charset "​utf-8"​
  
 #​--------------------------------------------------------------------- #​---------------------------------------------------------------------
-# Number of retries before reporting error. +#Number of retries before reporting error. 
-# Possible values: max_retry_count > 0+#Possible values: max_retry_count > 0
 # #
-# Default: 3+#Default: 3
 #​--------------------------------------------------------------------- #​---------------------------------------------------------------------
 #​max_retry_count 3 #​max_retry_count 3
  
 #​--------------------------------------------------------------------- #​---------------------------------------------------------------------
-# Maximum number of password queries to prevent infinite loop. +#Maximum number of password queries to prevent infinite loop. 
-# Possible values: max_passwd_query_count >= 3+#Possible values: max_passwd_query_count >= 3
 # #
-# Default: 10+#Default: 10
 #​--------------------------------------------------------------------- #​---------------------------------------------------------------------
 #​max_passwd_query_count 10 #​max_passwd_query_count 10
  
 #​--------------------------------------------------------------------- #​---------------------------------------------------------------------
-# Child process reply timeout. Child process will be assumed dead +#Child process reply timeout. Child process will be assumed dead 
-# (and killed) if timeout expired. +#(and killed) if timeout expired. 
-# Possible values: reply_timeout >= 10+#Possible values: reply_timeout >= 10
 # #
-# Default: 30+#Default: 30
 #​--------------------------------------------------------------------- #​---------------------------------------------------------------------
 #​reply_timeout 30 #​reply_timeout 30
  
 #​--------------------------------------------------------------------- #​---------------------------------------------------------------------
-# The maximum size of read/write block in Kb. This option can not be +#The maximum size of read/write block in Kb. This option can not be 
-# changed after SMBNetFS start. +#changed after SMBNetFS start. 
-# WARNING: libsmbclient <= 3.0 does not support block_size >= 64Kb.+#WARNING: libsmbclient <= 3.0 does not support block_size >= 64Kb.
 # #
-# Default: 48Kb (libsmbclient-3.0),​ 128Kb (libsmbclient-3.2 or above)+#Default: 48Kb (libsmbclient-3.0),​ 128Kb (libsmbclient-3.2 or above)
 #​--------------------------------------------------------------------- #​---------------------------------------------------------------------
 #​max_rw_block_size 128 #​max_rw_block_size 128
  
 #​--------------------------------------------------------------------- #​---------------------------------------------------------------------
-# The maximun number of samba context (forked processes). Reduse it if +#The maximun number of samba context (forked processes). Reduse it if 
-# smbnetfs eat a lot of memory+#smbnetfs eat a lot of memory
 # #
-# Default: 15+#Default: 15
 #​--------------------------------------------------------------------- #​---------------------------------------------------------------------
 #​max_ctx_count 15 #​max_ctx_count 15
  
 #​--------------------------------------------------------------------- #​---------------------------------------------------------------------
-# time_step is a sleep interval between checking for scheduled events. +#time_step is a sleep interval between checking for scheduled events. 
-# Increase it if smbnetfs eat to much cpu without loading.+#Increase it if smbnetfs eat to much cpu without loading.
 # #
-# Default: 10 sec+#Default: 10 sec
 #​--------------------------------------------------------------------- #​---------------------------------------------------------------------
 #​time_step 10 #​time_step 10
  
 #​--------------------------------------------------------------------- #​---------------------------------------------------------------------
-# The time between scanning samba network tree for changes +#The time between scanning samba network tree for changes 
-#  +
-# Default: 300 sec+#Default: 300 sec
 #​--------------------------------------------------------------------- #​---------------------------------------------------------------------
 #​smb_tree_scan_period 300 #​smb_tree_scan_period 300
  
 #​--------------------------------------------------------------------- #​---------------------------------------------------------------------
-# The time to live of founded computer/​workgroup in a network tree+#The time to live of founded computer/​workgroup in a network tree
 # #
-# Default: 900 sec+#Default: 900 sec
 #​--------------------------------------------------------------------- #​---------------------------------------------------------------------
 #​smb_tree_elements_ttl 900 #​smb_tree_elements_ttl 900
  
 #​--------------------------------------------------------------------- #​---------------------------------------------------------------------
-# An interval between configuration update (rereading of config files)+#An interval between configuration update (rereading of config files)
 # #
-# Default: 300 sec+#Default: 300 sec
 #​--------------------------------------------------------------------- #​---------------------------------------------------------------------
 #​config_update_period 300 #​config_update_period 300
  
 #​--------------------------------------------------------------------- #​---------------------------------------------------------------------
-# If smb_query_browsers disabled, then smbnetfs will show only static +#If smb_query_browsers disabled, then smbnetfs will show only static 
-# host/​group/​link. +#​host/​group/​link. 
-# Possible value: true, false, yes, no+#Possible value: true, false, yes, no
 # #
-# Default: true+#Default: true
 #​--------------------------------------------------------------------- #​---------------------------------------------------------------------
 #​smb_query_browsers "​true"​ #​smb_query_browsers "​true"​
  
 #​--------------------------------------------------------------------- #​---------------------------------------------------------------------
-# This option define the free space size reported by SMBNetFS. This is +#This option define the free space size reported by SMBNetFS. This is 
-# mostly required for Nautilus (Gnome project), as it check the amount +#mostly required for Nautilus (Gnome project), as it check the amount 
-# of free space before any write attempt. +#of free space before any write attempt. 
-# WARNING!!! Actual free space size is equal to free_space_size * 4Kb+#WARNING!!! Actual free space size is equal to free_space_size * 4Kb
 # #
-# Default: 0+#Default: 0
 #​--------------------------------------------------------------------- #​---------------------------------------------------------------------
 #​free_space_size 0 #​free_space_size 0
  
 #​--------------------------------------------------------------------- #​---------------------------------------------------------------------
-# If quiet_flag enabled, then chown/​chgroup will return succcess, else +#If quiet_flag enabled, then chown/​chgroup will return succcess, else 
-# chmod/chown will always fail. +#​chmod/​chown will always fail. 
-# Possible value: true, false, yes, no+#Possible value: true, false, yes, no
 # #
-# Default: true+#Default: true
 #​--------------------------------------------------------------------- #​---------------------------------------------------------------------
 #​quiet_flag "​true"​ #​quiet_flag "​true"​
  
 #​--------------------------------------------------------------------- #​---------------------------------------------------------------------
-# If show_$_shares disabled, then smbnetfs will not show shares with $ +#If show_$_shares disabled, then smbnetfs will not show shares with $ 
-# at the end. +#at the end. 
-# Possible value: true, false, yes, no+#Possible value: true, false, yes, no
 # #
-# Default: false+#Default: false
 #​--------------------------------------------------------------------- #​---------------------------------------------------------------------
 #​show_$_shares "​false"​ #​show_$_shares "​false"​
  
 #​--------------------------------------------------------------------- #​---------------------------------------------------------------------
-# If show_hidden_hosts enabled, then smbnetfs will show all scanned +#If show_hidden_hosts enabled, then smbnetfs will show all scanned 
-# host in a network tree. +#host in a network tree. 
-# at the end. +#at the end. 
-# Possible value: true, false, yes, no+#Possible value: true, false, yes, no
 # #
-# Default: false+#Default: false
 #​--------------------------------------------------------------------- #​---------------------------------------------------------------------
 #​show_hidden_hosts "​false"​ #​show_hidden_hosts "​false"​
  
 #​--------------------------------------------------------------------- #​---------------------------------------------------------------------
-# konqueror search for '​.directory'​ subdir in any directory and its +#konqueror search for '​.directory'​ subdir in any directory and its 
-# subdirectories. This slow a groups/​shares listing. The value below +#​subdirectories. This slow a groups/​shares listing. The value below 
-# specify the number of path component checked for "​.directory"​. Use +#specify the number of path component checked for "​.directory"​. Use 
-# the value of -1 to check all path component.+#the value of -1 to check all path component.
 # #
-# Set kde_workaround_depth to 3 or above if you browse SMBNetFs with +#Set kde_workaround_depth to 3 or above if you browse SMBNetFs with 
-# konqueror. Other people can use 0 value. +#konqueror. Other people can use 0 value. 
-# Possible value: -1, 0, 1, 2, ...+#Possible value: -1, 0, 1, 2, ...
 # #
-# Default: "​3"​+#Default: "​3"​
 #​--------------------------------------------------------------------- #​---------------------------------------------------------------------
 #​kde_workaround_depth "​3"​ #​kde_workaround_depth "​3"​
  
 #​--------------------------------------------------------------------- #​---------------------------------------------------------------------
-# Set auth information for samba network resource. If share name is  +#Set auth information for samba network resource. If share name is  
-# omited then the auth data applied to all computer "​computer"​ shares. +#omited then the auth data applied to all computer "​computer"​ shares. 
-# Omit "​computer/​share"​ to specify default auth patameters. +#Omit "​computer/​share"​ to specify default auth patameters. 
-#  +
-# PS: You can use "cd mountpoint/​domain:​user:​password@computer"​  +#PS: You can use "cd mountpoint/​domain:​user:​password@computer"​  
-# command to enter to remote computer as domain/​workgroup  +#command to enter to remote computer as domain/​workgroup  
-# "​domain_or_workgroup"​ user "​user"​ with password "​password"​.+#"​domain_or_workgroup"​ user "​user"​ with password "​password"​.
 # #
-# Syntax:+#Syntax:
 # auth [computer[/​share]] [domain_or_workgroup/​]user password # auth [computer[/​share]] [domain_or_workgroup/​]user password
 # auth [workgroup] ​       [domain_or_workgroup/​]user password # auth [workgroup] ​       [domain_or_workgroup/​]user password
 # #
-# Default:+#Default:
 # auth "​user_login_name"​ ""​ # auth "​user_login_name"​ ""​
 # #
Ligne 278: Ligne 276:
 #​auth "​guest"​ ""​ #​auth "​guest"​ ""​
  
-# read auth data from ~/​.smb/​smbnetfs.auth+#read auth data from ~/​.smb/​smbnetfs.auth
 include "​smbnetfs.auth"​ include "​smbnetfs.auth"​
  
 #​--------------------------------------------------------------------- #​---------------------------------------------------------------------
-# This section describe a static host/​group/​link.+#This section describe a static host/​group/​link.
 # #
- host   ​computer_name [parent_group=group_name] [visible=true|false] +#host   ​computer_name [parent_group=group_name] [visible=true|false] 
- group  group_name +#​group ​ group_name 
- link   ​link_name link_contents +#link   ​link_name link_contents 
- link   ​group/​link_name [link_contents]+#link   ​group/​link_name [link_contents]
 #​--------------------------------------------------------------------- #​---------------------------------------------------------------------
  
-# read host/​group/​link from ~/​.smb/​smbnetfs.host+#read host/​group/​link from ~/​.smb/​smbnetfs.host
 #​include "​smbnetfs.host"​ #​include "​smbnetfs.host"​
 </​file>​ </​file>​
Ligne 315: Ligne 313:
 #! /bin/sh #! /bin/sh
  
-# flag à 0 pour smbnetfs +#flag à 0 pour smbnetfs 
-# flag à 1 pour fusesmb+#flag à 1 pour fusesmb
 flag_fusesmb="​0"​ flag_fusesmb="​0"​
  
Ligne 353: Ligne 351:
   * [[http://​smbnetfs.sourceforge.net//​|Site officiel de SMBNetFS]]   * [[http://​smbnetfs.sourceforge.net//​|Site officiel de SMBNetFS]]
   * [[fusesmb//​|SMB For Fuse]], la page qui a servi de modèle et d'​inspiration pour celle-ci.   * [[fusesmb//​|SMB For Fuse]], la page qui a servi de modèle et d'​inspiration pour celle-ci.
-  * [[http://​forum.ubuntu-fr.org/​viewtopic.php?​pid=2670353|Commentaires et discussion ici]].+  * [[https://​forum.ubuntu-fr.org/​viewtopic.php?​pid=2670353|Commentaires et discussion ici]].
  
 ---- ----
  
 //​Contributeurs : The_Fallen [[http://​forum.ubuntu-fr.org/​profile.php?​id=121238|+]].//​ //​Contributeurs : The_Fallen [[http://​forum.ubuntu-fr.org/​profile.php?​id=121238|+]].//​
  • smbnetfs.1511293647.txt.gz
  • Dernière modification: Le 21/11/2017, 20:47
  • par 86.234.160.132