Précédent   Forum des professionnels en informatique > Systèmes > Linux > Réseau
Réseau Vos questions autour des réseaux et télécoms sous Linux
Partagez cette discussion sur d'autres réseaux sociaux : Viadeo Twitter Google Facebook Digg Delicious MySpace Yahoo
Réponse Proposer ce sujet en actualité
 
Outils de la discussion
Publicité
'
Vieux 07/04/2008, 17h00   #1
Invité de passage
 
Inscription : janvier 2007
Messages : 40
Détails du profil
Informations forums :
Inscription : janvier 2007
Messages : 40
Points : 0
Points : 0
Par défaut Mettre en place des Profiles Itinérants avec SAMBA

Bonjour,


Je souhaiterai mettre en place des profiles Itinérants avec samba pouvez vous m'aider?

voici mon smb.conf :
Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
#======================= Global Settings =====================================
[global]
 
# 1. Server Naming Options:
# workgroup = NT-Domain-Name or Workgroup-Name
workgroup = se.aura.fr
 
# netbios name is the name you will see in "Network Neighbourhood",
# but defaults to your hostname
netbios name = serveur_samba
 
# server string is the equivalent of the NT Description field
server string = Samba Server %v
 
# Message command is run by samba when a "popup" message is sent to it.
# The example below is for use with LinPopUp:
; message command = /usr/bin/linpopup "%f" "%m" %s; rm %s
 
# 2. Printing Options:
# CHANGES TO ENABLE PRINTING ON ALL CUPS PRINTERS IN THE NETWORK
# (as cups is now used in linux-mandrake 7.2 by default)
# if you want to automatically load your printer list rather
# than setting them up individually then you'll need this
printcap name = cups
load printers = yes
 
# printcap cache time, so samba will automatically load new cups printers
printcap cache time = 60
 
# It should not be necessary to spell out the print system type unless
# yours is non-standard. Currently supported print systems include:
# bsd, sysv, plp, lprng, aix, hpux, qnx, cups
printing = cups
 
# Samba 2.2 supports the Windows NT-style point-and-print feature. To
# use this, you need to be able to upload print drivers to the samba
# server. The printer admins (or root) may install drivers onto samba.
# Note that this feature uses the print$ share, so you will need to
# enable it below.
# Printer admins are now defined by granting the SePrintOperatorPrivilege, ie:
# run: net rpc rights grant 'DOMAIN\Printer Operators' SePrintOperatorPrivilege
 
# 3. Logging Options:
# this tells Samba to use a separate log file for each machine
# that connects
log file = /var/log/samba/%m.log
 
# Put a capping on the size of the log files (in Kb).
max log size = 50
 
# Set the log (verbosity) level (0 <= log level <= 10)
# log level = 3
 
# 4. Security and Domain Membership Options:
# This option is important for security. It allows you to restrict
# connections to machines which are on your local network. The
# following example restricts access to two C class networks and
# the "loopback" interface. For more examples of the syntax see
# the smb.conf man page. Do not enable this if (tcp/ip) name resolution does
# not work for all the hosts in your network.
hosts allow = 10.10.1. 192.168.2. 127.
 
# Uncomment this if you want a guest account, you must add this to /etc/passwd
# otherwise the user "nobody" is used
# guest account = pcguest
# Allow users to map to guest:
map to guest = bad user
 
# Security mode. Most people will want user level security. See
# security_level.txt for details.
security = user
# Use password server option only with security = server or security = domain
# When using security = domain, you should use password server = *
# password server = <NT-Server-Name>
# password server = *
 
# Password Level allows matching of _n_ characters of the password for
# all combinations of upper and lower case.
# password level = 8
# username level = 8
 
; unix password sync = Yes
# You either need to setup a passwd program and passwd chat, or
# enable pam password change
; pam password change = yes
# passwd program = /usr/bin/passwd '%u'
; passwd chat = *New*UNIX*password* %n\n *Re*ype*new*UNIX*password* %n\n \
;*passwd:*all*authentication*tokens*updated*successfully*
 
# Unix users can map to different SMB User names
# username map = /etc/samba/smbusers
 
# Using the following line enables you to customise your configuration
# on a per machine basis. The %m gets replaced with the netbios name
# of the machine that is connecting
# include = /etc/samba/smb.conf.%m
 
# winbind use default domain allows you to have winbind return usernames
# in the form user instead of DOMAIN+user for the domain listed in the
# workgroup parameter.
winbind use default domain = yes
#
# template homedir determines the home directory for winbind users, with
# %D expanding to their domain name and %U expanding to their username:
# template homedir = /home/%D/%U
 
local master = yes
 
os level = 40
 
domain master = yes
 
domain logons = yes
 
#passwd program = /usr/sbin/smbldap-passwd ?u %u
ldap passwd sync = Yes
passdb backend = ldapsam:ldap://127.0.0.1/
 
logon script = logon.bat
 
# Where to store roaming profiles for WinNT and Win2k
# %L substitutes for this servers netbios name, %u is username
# You must uncomment the [Profiles] share below
logon path = \\%L\Profiles\%u
 
# Where to store roaming profiles for Win9x. Be careful with this as it also
# impacts where Win2k finds it's /HOME share
logon home = \\%L\%u\.profile
 
 
 
add user script = /usr/sbin/smbldap-useradd -m '%u'
delete user script = /usr/sbin/smbldap-userdel '%u'
add user to group script = /usr/sbin/smbldap-groupmod -m '%u' '%g'
delete user from group script = /usr/sbin/smbldap-groupmod -x '%u' '%g'
set primary group script = /usr/sbin/smbldap-usermod -g '%g' '%u'
add group script = /usr/sbin/smbldap-groupadd '%g' && /usr/sbin/smbldap-groupshow %g|awk '/^gidNumber:/ {print $2}'
delete group script = /usr/sbin/smbldap-groupdel '%g'
 
ldap delete dn = Yes
 
add machine script = /usr/sbin/smbldap-useradd -w -d /dev/null -c 'Machine Account' -s /bin/false '%u'
 
ldap admin dn = cn=admin,dc=aura,dc=ldap
ldap suffix = dc=aura,dc=ldap
ldap machine suffix = ou=Hosts
ldap user suffix = ou=People
ldap group suffix = ou=Group
 
 
wins proxy = yes
 
dns proxy = no
 
preserve case = yes
short preserve case = yes
default case = lower
case sensitive = no
 
#============================ Share Definitions ==============================
[homes]
comment = Home Directories
browseable = no
writable = yes
 
 
 
[netlogon]
path = /srv/samba/netlogon
# guest ok = yes
read only = yes
write list = administrateur
 
[public]
comment = Repertoire public sur serveur
path = /srv/samba/public
writable = yes
guest ok = yes
 
[private]
comment = Repertoire private du serveur
path = /srv/samba/private
browseable = yes
writable = yes
valid users = @group_users
guest ok = no
[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
# to allow user 'guest account' to print.
guest ok = yes
writable = no
printable = yes
create mode = 0700
print command = lpr-cups -P %p -o raw %s -r # using client side printer drivers.
use client driver = yes
 
[print$]
path = /var/lib/samba/printers
browseable = yes
write list = @adm root
guest ok = yes
inherit permissions = yes
# Settings suitable for Winbind:
# write list = @"Domain Admins" root
# force group = +@"Domain Admins"
 
# A useful application of samba is to make a PDF-generation service
# To streamline this, install windows postscript drivers (preferably colour)
# on the samba server, so that clients can automatically install them.
# Note that this only works if 'printing' is *not* set to 'cups'
 
[pdf-gen]
path = /var/tmp
guest ok = No
printable = Yes
comment = PDF Generator (only valid users)
printing = bsd
#print command = /usr/share/samba/scripts/print-pdf file path win_path recipient IP &
print command = /usr/share/samba/scripts/print-pdf "%s" "%H" "//%L/%u" "%m" "%I" "%J" &
lpq command = /bin/true
 
 
# This one is useful for people to share files
;[tmp]
; comment = Temporary file space
; path = /tmp
; read only = no
; public = yes
 
# A publicly accessible directory, but read only, except for people in
# the "staff" group
;[public]
; comment = Public Stuff
; path = /home/samba/public
; public = yes
; writable = no
; write list = @staff
# Audited directory through experimental VFS audit.so module:
# Uncomment next line.
# vfs object = /usr/lib/samba/vfs/audit.so
 
# Other examples.
#
# A private printer, usable only by Fred. Spool data will be placed in Fred's
# home directory. Note that fred must have write access to the spool directory,
# wherever it is.
;[fredsprn]
; comment = Fred's Printer
; valid users = fred
; path = /homes/fred
; printer = freds_printer
; public = no
; writable = no
; printable = yes
 
# A private directory, usable only by Fred. Note that Fred requires write
# access to the directory.
;[fredsdir]
; comment = Fred's Service
; path = /usr/somewhere/private
; valid users = fred
; public = no
; writable = yes
; printable = no
 
# a service which has a different directory for each machine that connects
# this allows you to tailor configurations to incoming machines. You could
# also use the %u option to tailor it by user name.
# The %m gets replaced with the machine name that is connecting.
;[pchome]
; comment = PC Directories
; path = /usr/pc/%m
; public = no
; writable = yes
 
;[myshare]
; comment = Mary's and Fred's stuff
; path = /usr/somewhere/shared
; valid users = mary fred
; public = no
; writable = yes
; printable = no
; create mask = 0765

Voici mon logon.bat:
Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
 
[type]
 
echo off
 
# Montage du homedir de l'utilisateur
net use z: \\serveur_samba\%USERNAME%
 
# Montage de des lecteurs reseaux dans le Poste de Travail
net use y: \\serveur_samba\public
net use x: \\serveur_samba\private
net time \\serveur_samba /set /yes
regedit /s \\serveur_samba\netlogon\logon.reg
Lorsque je me connecte avec un client xp j'ai 2 message d'erreur:

1er mesage :
Citation:
Windows ne peut pas trouver de copie serveur de votre profil itinérant et tente de vous ouvrir une session avec votre profil local. Les modification apportées au profils ne seront pas copiées sur le serveur lorsque vous fermerez votre session. les causes possibles de cette erreur incluent des problemes réseau ou des droits de sécurité insuffisants. si ce probleme persiste contactez votre admin réseau.

Détail - Nom de réseau introuvable
2eme message:
Citation:
Windows ne peut pas trouver le profils local et tente de vous connecter avec un profil temporaire. les modifications effectué a ce profil seront perdues lorsque vous vous déconecterez.
Configuration: serveur samba+LDAP :Linux Mandriva 2008/
Clent : XP
Firefox 2.0.0.12
moi95 est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 27/08/2008, 18h26   #2
Invité de passage
 
Inscription : novembre 2007
Messages : 23
Détails du profil
Informations forums :
Inscription : novembre 2007
Messages : 23
Points : 2
Points : 2
petit up, j'ai exactement le même souci.
as tu trouvé ta réponse ?
sohiermdp est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 27/08/2008, 21h30   #3
Rédacteur/Modérateur
 
Avatar de Michaël
 
Michaël Todorovic
Ingénieur systèmes et réseaux
Inscription : juillet 2003
Messages : 3 493
Détails du profil
Informations personnelles :
Nom : Michaël Todorovic
Âge : 25
Localisation : France, Paris (Île de France)

Informations professionnelles :
Activité : Ingénieur systèmes et réseaux

Informations forums :
Inscription : juillet 2003
Messages : 3 493
Points : 5 899
Points : 5 899
salut,
tu n'as pas de répertoire de profil itinérant donc normal qu'il soit introuvable
ajoutes ceci à ton fichier de config après avoir créé /srv/samba/profiles avec les droits qui vont bien. relances samba et ça devrait rouler
Code :
1
2
3
4
5
6
7
[profiles] 
comment = profils itinérants
path =  /srv/samba/profiles
writable = yes
browseable = no 
create mode = 0644
directory mode = 0755
Michaël est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 09/09/2008, 16h15   #4
Invité de passage
 
Inscription : septembre 2008
Messages : 2
Détails du profil
Informations forums :
Inscription : septembre 2008
Messages : 2
Points : 2
Points : 2
Bonjour,

Dans mon cas ça fonctionne très bien avec XP, mais j'ai le même problème avec Vista. J'ai Samba 3.2.3, avez-vous des conseils?

Merci

J-E
jekelly est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 09/09/2008, 18h02   #5
Membre éprouvé
 
Avatar de Tchetch
 
Inscription : mars 2002
Messages : 401
Détails du profil
Informations personnelles :
Âge : 27

Informations forums :
Inscription : mars 2002
Messages : 401
Points : 434
Points : 434
Bonsoir, pour moi j'ai ça dans la configuration des mes profiles
Code :
1
2
3
4
5
6
7
8
9
10
 
[profiles]
   comment = Users profiles
   path = /srv/profiles
   guest ok = no
   browseable = no
   create mask = 0600
   directory mask = 0700
   read only = no
   profile acls = yes
et ça dans la configuration global :
Code :
1
2
3
4
 
map acl inherit = yes # Need Extended Attributes on the local file system
nt acl support = yes
store dos attribute = yes # Need Extended Attributes on the local file system
Le "store dos attribute" est pas directement lié, mais je penses qu'il est utile. Sans ça Samba simule le "read only", "hidden" ... avec les droits unix. Sinon il utilise les attributs étendu du système de fichier.
J'ai aussi les ACL activées sur mon système de fichier.

Le reste de ma configuration est là : http://www.tchetch.net/wiki/debian:samba:install
__________________
Mon wiki (on y parle Debian principalement) : http://www.tchetch.net/
Tchetch est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 09/09/2008, 21h43   #6
Invité de passage
 
Inscription : septembre 2008
Messages : 2
Détails du profil
Informations forums :
Inscription : septembre 2008
Messages : 2
Points : 2
Points : 2
Je viens d'essayer tes ajouts, et ça ne change rien mon problème reste.

merci

J-E
jekelly est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 10/09/2008, 10h02   #7
Membre éprouvé
 
Avatar de Tchetch
 
Inscription : mars 2002
Messages : 401
Détails du profil
Informations personnelles :
Âge : 27

Informations forums :
Inscription : mars 2002
Messages : 401
Points : 434
Points : 434
Et le répertoire du profile existe (mais vide, windows va le remplir) sur le serveur avec les droits 0700 avec comme propriétaire l'utilisateur et comme groupe l'utilisateur (ou le groupe utilisateur du domaine, peu importe, les droits sont 0700) ?
__________________
Mon wiki (on y parle Debian principalement) : http://www.tchetch.net/
Tchetch est déconnecté   Envoyer un message privé Réponse avec citation 00
Réponse Proposer ce sujet en actualité
Outils de la discussion



Fuseau horaire GMT +2. Il est actuellement 19h24.


 
 
 
 
Partenaires

Hébergement Web