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/12/2021, 00:08]
wiki-corrector-bot passage de http à https sur les liens externes (détecté et corrigé via le bot wiki-corrector (https://forum.ubuntu-fr.org/viewtopic.php?id=2067892)
smbnetfs [Le 11/09/2022, 12:02] (Version actuelle)
moths-art Suppression des espaces en fin de ligne (détecté et corrigé via le bot wiki-corrector (https://forum.ubuntu-fr.org/viewtopic.php?id=2067892)
Ligne 1: Ligne 1:
- 
 {{tag>​Xenial administration réseau samba Windows}} {{tag>​Xenial administration réseau samba Windows}}
  
Ligne 51: Ligne 50:
 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 76: Ligne 75:
 <​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 279: Ligne 278:
 #​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 316: Ligne 315:
 #! /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"​
  
  • smbnetfs.1640041719.txt.gz
  • Dernière modification: Le 21/12/2021, 00:08
  • par wiki-corrector-bot