Pages : 1
#1 Le 06/11/2020, à 18:42
- Cricri30
[RESOLU] passage à 20.04
Bonjour,
après la mise a niveau 20.04 je n'ai plus accès à ma freebox ni au PC windows sur le même réseau.
dans fichiers -> autres emplacements freebox serveur et réseau windows sont bien présents
en cliquant dessus j'ai : obtention de la liste de partage du serveur a echoué
une idée un conseil
merci
PS: je suis débutant en ubuntu
sur le forum : https://forum.ubuntu-fr.org/viewtopic.p … #p22281874
Dernière modification par Cricri30 (Le 06/11/2020, à 21:11)
Hors ligne
#2 Le 06/11/2020, à 19:17
- nany
Re : [RESOLU] passage à 20.04
Bonjour,
Donne, s’il te plaît, les retours de :
sudo sed -i '/\[global\]/a\\n## SMB Protocol\n# Protocol NT1 is insecure, prefer SMB2 and SMB3.\n# For Freebox, NT1 is essential.\nclient min protocol = NT1\nserver min protocol = NT1\nntlm auth = ntlmv1-permitted' /etc/samba/smb.conf && head -40 /etc/samba/smb.conf
sudo systemctl restart smbd.service
Dernière modification par nany (Le 06/11/2020, à 21:40)
Hors ligne
#3 Le 06/11/2020, à 20:43
- malbo
Re : [RESOLU] passage à 20.04
Bonjour,
C'est vrai que la version 20.04 pose un problème avec la Freebox. Mais il y a moyen de s'en sortir : https://forum.ubuntu-fr.org/viewtopic.p … #p22281874
Hors ligne
#4 Le 06/11/2020, à 20:43
- Cricri30
Re : [RESOLU] passage à 20.04
server min protocol = NT1
ntlm auth = ntlmv1-permitted
# smb.conf(5) manual page in order to understand the options listed
## SMB Protocol
# Protocol NT1 is insecure, prefer SMB2 and SMB3.
# For Freebox, NT1 is essential.
client min protocol = NT1
server min protocol = NT1
ntlm auth = ntlmv1-permitted
# here. Samba has a huge number of configurable options most of which
## SMB Protocol
# Protocol NT1 is insecure, prefer SMB2 and SMB3.
# For Freebox, NT1 is essential.
client min protocol = NT1
server min protocol = NT1
ntlm auth = ntlmv1-permitted
# are not shown in this example
## SMB Protocol
# Protocol NT1 is insecure, prefer SMB2 and SMB3.
# For Freebox, NT1 is essential.
Hors ligne
#5 Le 06/11/2020, à 20:46
- Cricri30
Re : [RESOLU] passage à 20.04
Failed to restart smbd.service: Unit smbd.service not found.
Hors ligne
#6 Le 06/11/2020, à 20:48
- xubu1957
Re : [RESOLU] passage à 20.04
Bonjour,
Pour ajouter toi-même les balises code à tes précédents messages #4 et #5 :
Cliquer sur le lien « Modifier » en bas à droite du message
Sélectionner le texte
Cliquer sur le <> de l'éditeur de message
Comme indiqué dans le premier message du tutoriel Retour utilisable de commande.
server min protocol = NT1
ntlm auth = ntlmv1-permitted
# smb.conf(5) manual page in order to understand the options listed
## SMB Protocol
# Protocol NT1 is insecure, prefer SMB2 and SMB3.
# For Freebox, NT1 is essential.
client min protocol = NT1
server min protocol = NT1
ntlm auth = ntlmv1-permitted
# here. Samba has a huge number of configurable options most of which
## SMB Protocol
# Protocol NT1 is insecure, prefer SMB2 and SMB3.
# For Freebox, NT1 is essential.
client min protocol = NT1
server min protocol = NT1
ntlm auth = ntlmv1-permitted
# are not shown in this example
## SMB Protocol
# Protocol NT1 is insecure, prefer SMB2 and SMB3.
# For Freebox, NT1 is essential.
Failed to restart smbd.service: Unit smbd.service not found.
Dernière modification par xubu1957 (Le 06/11/2020, à 20:49)
Conseils pour les nouveaux demandeurs et pas qu'eux
Important : Pensez à passer vos sujets en [Réso|u] lorsque ceux-ci le sont, au début du titre en cliquant sur Modifier sous le premier message, et un bref récapitulatif de la solution à la fin de celui-ci. Merci. Membre de Linux-Azur
Hors ligne
#7 Le 06/11/2020, à 20:49
- nany
Re : [RESOLU] passage à 20.04
server min protocol = NT1
ntlm auth = ntlmv1-permitted
# smb.conf(5) manual page in order to understand the options listed## SMB Protocol
# Protocol NT1 is insecure, prefer SMB2 and SMB3.
# For Freebox, NT1 is essential.
client min protocol = NT1
server min protocol = NT1
ntlm auth = ntlmv1-permitted
# here. Samba has a huge number of configurable options most of which## SMB Protocol
# Protocol NT1 is insecure, prefer SMB2 and SMB3.
# For Freebox, NT1 is essential.
client min protocol = NT1
server min protocol = NT1
ntlm auth = ntlmv1-permitted
# are not shown in this example## SMB Protocol
# Protocol NT1 is insecure, prefer SMB2 and SMB3.
# For Freebox, NT1 is essential.
C’est quoi ça ?
Lis le premier message de ce fil puis donne nous le retour de :
cat -n /etc/samba/smb.conf
Hors ligne
#8 Le 06/11/2020, à 20:59
- Cricri30
Re : [RESOLU] passage à 20.04
Bonsoir, le retour contient 1500 lignes , normal ??
je vais tenter la solution de Malbo.
merci
Hors ligne
#9 Le 06/11/2020, à 21:35
- nany
Re : [RESOLU] passage à 20.04
Bonsoir, le retour contient 1500 lignes , normal ??
Non ce n’est pas normal et c’est pour ça qu’on a besoin de le voir.
Pour info, le mien fait 249 lignes :
┏[ vendredi 06 novembre 2020 ]
┣ nany@stupidcomputer :
┗▶ ~$ cat -n /etc/samba/smb.conf
1 #
2 # Sample configuration file for the Samba suite for Debian GNU/Linux.
3 #
4 #
5 # This is the main Samba configuration file. You should read the
6 # smb.conf(5) manual page in order to understand the options listed
7 # here. Samba has a huge number of configurable options most of which
8 # are not shown in this example
9 #
10 # Some options that are often worth tuning have been included as
11 # commented-out examples in this file.
12 # - When such options are commented with ";", the proposed setting
13 # differs from the default Samba behaviour
14 # - When commented with "#", the proposed setting is the default
15 # behaviour of Samba but the option is considered important
16 # enough to be mentioned here
17 #
18 # NOTE: Whenever you modify this file you should run the command
19 # "testparm" to check that you have not made any basic syntactic
20 # errors.
21
22 #======================= Global Settings =======================
23
24 [global]
25
26 ## SMB Protocol
27 # Protocol NT1 is insecure, prefer SMB2 and SMB3.
28 # For Freebox, NT1 is essential.
29 client min protocol = NT1
30 server min protocol = NT1
31 ntlm auth = ntlmv1-permitted
32
33 ## Browsing/Identification ###
34
35 # Change this to the workgroup/NT-domain name your Samba server will part of
36 workgroup = WORKGROUP
37
38 # server string is the equivalent of the NT Description field
39 server string = %h server (Samba, Ubuntu)
40
41 #### Networking ####
42
43 # The specific set of interfaces / networks to bind to
44 # This can be either the interface name or an IP address/netmask;
45 # interface names are normally preferred
46 ; interfaces = 127.0.0.0/8 eth0
47
48 # Only bind to the named interfaces and/or networks; you must use the
49 # 'interfaces' option above to use this.
50 # It is recommended that you enable this feature if your Samba machine is
51 # not protected by a firewall or is a firewall itself. However, this
52 # option cannot handle dynamic or non-broadcast interfaces correctly.
53 ; bind interfaces only = yes
54
55
56
57 #### Debugging/Accounting ####
58
59 # This tells Samba to use a separate log file for each machine
60 # that connects
61 log file = /var/log/samba/log.%m
62
63 # Cap the size of the individual log files (in KiB).
64 max log size = 1000
65
66 # We want Samba to only log to /var/log/samba/log.{smbd,nmbd}.
67 # Append syslog@1 if you want important messages to be sent to syslog too.
68 logging = file
69
70 # Do something sensible when Samba crashes: mail the admin a backtrace
71 panic action = /usr/share/samba/panic-action %d
72
73
74 ####### Authentication #######
75
76 # Server role. Defines in which mode Samba will operate. Possible
77 # values are "standalone server", "member server", "classic primary
78 # domain controller", "classic backup domain controller", "active
79 # directory domain controller".
80 #
81 # Most people will want "standalone server" or "member server".
82 # Running as "active directory domain controller" will require first
83 # running "samba-tool domain provision" to wipe databases and create a
84 # new domain.
85 server role = standalone server
86
87 obey pam restrictions = yes
88
89 # This boolean parameter controls whether Samba attempts to sync the Unix
90 # password with the SMB password when the encrypted SMB password in the
91 # passdb is changed.
92 unix password sync = yes
93
94 # For Unix password sync to work on a Debian GNU/Linux system, the following
95 # parameters must be set (thanks to Ian Kahan <<kahan@informatik.tu-muenchen.de> for
96 # sending the correct chat script for the passwd program in Debian Sarge).
97 passwd program = /usr/bin/passwd %u
98 passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
99
100 # This boolean controls whether PAM will be used for password changes
101 # when requested by an SMB client instead of the program listed in
102 # 'passwd program'. The default is 'no'.
103 pam password change = yes
104
105 # This option controls how unsuccessful authentication attempts are mapped
106 # to anonymous connections
107 map to guest = bad user
108
109 ########## Domains ###########
110
111 #
112 # The following settings only takes effect if 'server role = primary
113 # classic domain controller', 'server role = backup domain controller'
114 # or 'domain logons' is set
115 #
116
117 # It specifies the location of the user's
118 # profile directory from the client point of view) The following
119 # required a [profiles] share to be setup on the samba server (see
120 # below)
121 ; logon path = \\%N\profiles\%U
122 # Another common choice is storing the profile in the user's home directory
123 # (this is Samba's default)
124 # logon path = \\%N\%U\profile
125
126 # The following setting only takes effect if 'domain logons' is set
127 # It specifies the location of a user's home directory (from the client
128 # point of view)
129 ; logon drive = H:
130 # logon home = \\%N\%U
131
132 # The following setting only takes effect if 'domain logons' is set
133 # It specifies the script to run during logon. The script must be stored
134 # in the [netlogon] share
135 # NOTE: Must be store in 'DOS' file format convention
136 ; logon script = logon.cmd
137
138 # This allows Unix users to be created on the domain controller via the SAMR
139 # RPC pipe. The example command creates a user account with a disabled Unix
140 # password; please adapt to your needs
141 ; add user script = /usr/sbin/adduser --quiet --disabled-password --gecos "" %u
142
143 # This allows machine accounts to be created on the domain controller via the
144 # SAMR RPC pipe.
145 # The following assumes a "machines" group exists on the system
146 ; add machine script = /usr/sbin/useradd -g machines -c "%u machine account" -d /var/lib/samba -s /bin/false %u
147
148 # This allows Unix groups to be created on the domain controller via the SAMR
149 # RPC pipe.
150 ; add group script = /usr/sbin/addgroup --force-badname %g
151
152 ############ Misc ############
153
154 # Using the following line enables you to customise your configuration
155 # on a per machine basis. The %m gets replaced with the netbios name
156 # of the machine that is connecting
157 ; include = /home/samba/etc/smb.conf.%m
158
159 # Some defaults for winbind (make sure you're not using the ranges
160 # for something else.)
161 ; idmap config * : backend = tdb
162 ; idmap config * : range = 3000-7999
163 ; idmap config YOURDOMAINHERE : backend = tdb
164 ; idmap config YOURDOMAINHERE : range = 100000-999999
165 ; template shell = /bin/bash
166
167 # Setup usershare options to enable non-root users to share folders
168 # with the net usershare command.
169
170 # Maximum number of usershare. 0 means that usershare is disabled.
171 # usershare max shares = 100
172
173 # Allow users who've been granted usershare privileges to create
174 # public shares, not just authenticated ones
175 usershare allow guests = yes
176
177 #======================= Share Definitions =======================
178
179 # Un-comment the following (and tweak the other settings below to suit)
180 # to enable the default home directory shares. This will share each
181 # user's home directory as \\server\username
182 ;[homes]
183 ; comment = Home Directories
184 ; browseable = no
185
186 # By default, the home directories are exported read-only. Change the
187 # next parameter to 'no' if you want to be able to write to them.
188 ; read only = yes
189
190 # File creation mask is set to 0700 for security reasons. If you want to
191 # create files with group=rw permissions, set next parameter to 0775.
192 ; create mask = 0700
193
194 # Directory creation mask is set to 0700 for security reasons. If you want to
195 # create dirs. with group=rw permissions, set next parameter to 0775.
196 ; directory mask = 0700
197
198 # By default, \\server\username shares can be connected to by anyone
199 # with access to the samba server.
200 # Un-comment the following parameter to make sure that only "username"
201 # can connect to \\server\username
202 # This might need tweaking when using external authentication schemes
203 ; valid users = %S
204
205 # Un-comment the following and create the netlogon directory for Domain Logons
206 # (you need to configure Samba to act as a domain controller too.)
207 ;[netlogon]
208 ; comment = Network Logon Service
209 ; path = /home/samba/netlogon
210 ; guest ok = yes
211 ; read only = yes
212
213 # Un-comment the following and create the profiles directory to store
214 # users profiles (see the "logon path" option above)
215 # (you need to configure Samba to act as a domain controller too.)
216 # The path below should be writable by all users so that their
217 # profile directory may be created the first time they log on
218 ;[profiles]
219 ; comment = Users profiles
220 ; path = /home/samba/profiles
221 ; guest ok = no
222 ; browseable = no
223 ; create mask = 0600
224 ; directory mask = 0700
225
226 [printers]
227 comment = All Printers
228 browseable = no
229 path = /var/spool/samba
230 printable = yes
231 guest ok = no
232 read only = yes
233 create mask = 0700
234
235 # Windows clients look for this share name as a source of downloadable
236 # printer drivers
237 [print$]
238 comment = Printer Drivers
239 path = /var/lib/samba/printers
240 browseable = yes
241 read only = yes
242 guest ok = no
243 # Uncomment to allow remote administration of Windows print drivers.
244 # You may need to replace 'lpadmin' with the name of the group your
245 # admin users are members of.
246 # Please note that you also need to set appropriate Unix permissions
247 # to the drivers directory for these users to have write rights in it
248 ; write list = root, @lpadmin
249
┏[ vendredi 06 novembre 2020 ]
┣ nany@stupidcomputer :
┗▶ ~$
Hors ligne
#10 Le 08/07/2021, à 17:29
- xubu1957
Re : [RESOLU] passage à 20.04
[HS]
Bonjour,
@nany
Pour cette discussion > Probleme lecture ecriture OpenOffice et LibreOffice sur partage reseau, des conseils ?
Merci par avance.
[/HS]
Conseils pour les nouveaux demandeurs et pas qu'eux
Important : Pensez à passer vos sujets en [Réso|u] lorsque ceux-ci le sont, au début du titre en cliquant sur Modifier sous le premier message, et un bref récapitulatif de la solution à la fin de celui-ci. Merci. Membre de Linux-Azur
Hors ligne
Pages : 1