[Samba] Samba PDC and Samba Client

Maura Mathieu maura.mathieu at sdis66.fr
Tue Feb 4 13:25:38 GMT 2003


Hello,

I have 1 SAMBA PDC :
version : Samba version 2.2.6pre2
name: lothar
ip: 192.191.193.10 and 192.168.1.2
PDC of  ADMIN01

I have 1 SAMBA client:
version:Samba version 2.2.7a
name: intranet
ip 192.191.193.2
member of ADMIN01
with option Wins server and winbind .

and one Win2000:
member of ADMIN01
---------

My pdc have the add user script (work fine i have see the machine in 
/etc/passwd and in the smbpasswd).
to join my client (wins) i have do:

/usr/local/samba/bin/smbpasswd -j ADMIN01 -r lothar -U root

(my root smb pass is differant of the system root pass)

getent passwd work fine too.

but when i try to access in share of client i can't because it say i m 
maura and not ADMIN01\maura:


[2003/02/04 13:56:49, 2] smbd/reply.c:reply_sesssetup_and_X(985)
  Defaulting to Lanman password for maura
[2003/02/04 13:56:49, 1] smbd/password.c:pass_check_smb(545)
  Couldn't find user 'maura' in passdb.
[2003/02/04 13:56:49, 1] smbd/reply.c:reply_sesssetup_and_X(1001)
  Rejecting user 'maura': authentication failed
[2003/02/04 13:56:49, 2] smbd/reply.c:reply_sesssetup_and_X(985)
  Defaulting to Lanman password for maura
[2003/02/04 13:56:49, 1] smbd/password.c:pass_check_smb(545)
  Couldn't find user 'maura' in passdb.
[2003/02/04 13:56:49, 1] smbd/reply.c:reply_sesssetup_and_X(1001)
  Rejecting user 'maura': authentication failed
[2003/02/04 13:58:49, 2] smbd/process.c:timeout_processing(1126)
  Closing idle connection
[2003/02/04 13:58:49, 2] smbd/server.c:exit_server(461)
  Closing connections

if i look who are connected in the PDC the machine are connected in nobody.

IPC$         nobody   65534    11243   intranet (192.191.193.2) Tue Feb  
4 13:18:10 2003


and the log for the intranet machine in the pdc say that continualy:

[2003/02/04 14:14:35, 2] smbd/server.c:exit_server(461)
  Closing connections
[2003/02/04 14:14:35, 2] smbd/server.c:exit_server(461)
  Closing connections
[2003/02/04 14:14:36, 2] smbd/server.c:exit_server(461)
  Closing connections
[2003/02/04 14:14:36, 2] smbd/server.c:exit_server(461)
  Closing connections
[2003/02/04 14:14:37, 2] smbd/server.c:exit_server(461)
  Closing connections
[2003/02/04 14:14:37, 2] smbd/server.c:exit_server(461)
  Closing connections
[2003/02/04 14:14:38, 2] smbd/server.c:exit_server(461)
  Closing connections
[2003/02/04 14:14:38, 2] smbd/server.c:exit_server(461)
  Closing connections
[2003/02/04 14:14:39, 2] smbd/server.c:exit_server(461)
  Closing connections
[2003/02/04 14:14:39, 2] smbd/server.c:exit_server(461)
  Closing connections
[2003/02/04 14:14:40, 2] smbd/server.c:exit_server(461)
  Closing connections
[2003/02/04 14:14:41, 2] smbd/server.c:exit_server(461)
  Closing connections
[2003/02/04 14:14:41, 2] smbd/server.c:exit_server(461)
  Closing connections
[2003/02/04 14:14:42, 2] smbd/server.c:exit_server(461)
  Closing connections
[2003/02/04 14:14:42, 2] smbd/server.c:exit_server(461)
  Closing connections
[2003/02/04 14:14:43, 2] smbd/server.c:exit_server(461)
  Closing connections
[2003/02/04 14:14:43, 2] smbd/server.c:exit_server(461)
  Closing connections

In the Win2000, I can share for an domain user but this share can't be 
access because access is denied :((

I join  smb.conf, and i hope you can help me. thank.

-------------- next part --------------
# Samba config file created using SWAT
# from 0.0.0.0 (0.0.0.0)
# Date: 2002/09/30 19:40:30

# Global parameters
[global]
	workgroup = ADMIN01
	netbios name = LOTHAR
	server string = Controleur Principal
	security = user
	domain logons = Yes
       	os level = 34
        preferred master = True
        domain master = True
	admin users = maura root
	domain admin group = @adm
	
        #options WINS
	dns proxy = yes
	wins server = 192.191.193.2
		
	#option des mots de passe
	encrypt passwords = Yes
	smb passwd file = /etc/samba/smbpasswd
	add user script = /usr/sbin/useradd -c MACHINE_NT -d /dev/null -g 1001 -s /bin/false -M %u
#	unix password sync =yes

	#Option de log
	log file = /var/log/samba/log.%m
	max log size = 2000
        log level = 2
#	oplock break wait time = 20

	#Options De Tunning
#	socket options = SO_BROADCAST TCP_NODELAY SO_SNDBUF=4096 SO_RCVBUF=4096
	#Le  SO_BROADCAST semble necessaire lorsque le WINS est pas sur le meme reseau
	socket options = TCP_NODELAY  SO_BROADCAST
	deadtime = 5
	
	#Option d'impression
	printcap name = lpstat
	printing = cups
        max disk size = 200
	
	#Option de LOGON
	time server = yes
	logon drive = m:
	logon script = logon.bat
		#pour NT/2000/XP
	logon path = \\lothar\profile\%U
		#pour Windobe 98
	logon home = \\%L\%U\.profiles


#repertoire personnel
[homes]
	comment = Répertoire personnel privé
	read only = No
	create mode = 0600
	directory mode = 0700
	browseable = No

	#compatibilité des droit dos/unix
	dos filemode = yes
	#Ajout du system de corbeille
	vfs options = /etc/samba/recycle.conf
	vfs object = /usr/lib/samba/vfs/recycle.so

#repertoire de netlogon
[netlogon]
	browseable = no
	writable = yes
	admin users = maura philippot-f
	public = no
	path = /home/samba/netlogon

[profile]
	path=/home/samba/profile
	create mode = 0600
	directory mode = 0700
	writable = yes
	browseable = No
#repertoire de groupe
[service]
	comment = Repertoire de travaux commun au service
	path=/home/samba/services/%G
	create mode = 0660
	directory mode = 0770
	writable = yes
	browseable = yes

	#compatibilité des droit dos/unix
	dos filemode = yes
		
	hide files = /Documents de %U/Sauv*/

#	veto files = /Corbeille/
#	delete veto files = no

        #Ajout du system de corbeille
        vfs options = /etc/samba/recycle.conf
        vfs object = /usr/lib/samba/vfs/recycle.so
			
[commun]
	comment = Repertoire de travaux commun au SDIS
        path=/home/samba/commun
	create mode = 0666
	directory mode = 0777
	writable = yes
	browseable = yes

        #compatibilité des droit dos/unix
        dos filemode = yes
		
        #Ajout du system de corbeille
        vfs options = /etc/samba/recycle.conf
        vfs object = /usr/lib/samba/vfs/recycle.so
			
[Mes Documents]
	comment = Répertoire personnel public
	path=/home/samba/docs/%U
        create mode = 0640
        directory mode = 0750
        writable = yes
        browseable = yes

        #compatibilité des droit dos/unix
        dos filemode = yes
		
        #Ajout du system de corbeille
        vfs options = /etc/samba/recycle.conf
        vfs object = /usr/lib/samba/vfs/recycle.so
			
[printers]
	browseable = no
	printable = yes
	print command = lpr-cups -P %p -o raw %s -r   # using client side printer drivers.
	path = /var/spool/samba
	guest ok = Yes
	create mask = 0700
	comment = All Printers
	available = no

[print$]
	path = /var/lib/samba/printers
	write list = @adm root
	available = no

[pdf-generator]
	comment = PDF Generator (only valid users)
	path = /var/tmp
	printable = Yes
	print command = /usr/share/samba/scripts/print-pdf %s ~%u \\\\\\\\%L\\\\%u %m %I &
        available = no

[webmin]
	comment = Webmin
	valid users = maura
	writable = yes
	user = maura
	path = /usr/libexec/webmin/
	admin users=maura

[Adm_user]
	read list = @Administrateur
	delete readonly = yes
	path = /home/samba
	write list = @Administrateur
	only user = yes
	force group = root
	force user = root
	valid users = @Administrateur
	user = @Administrateur

[fsecure]
	browseable = no
	comment = Repertoire de communication de fsecure
	writable = yes
	path = /home/samba/fsecure

[civitas]
	force user = root
	comment = repertoire client
	writeable = yes
	write list = @Administrateur
	path = /home/samba/civitas
	force group = root

[ibase]
	comment = Interbase Install et Progs
	write list = @Administrateur
	path = /home/samba/ibase

-------------- next part --------------
# Global parameters
[global]
	remote announce = 192.191.193.10
	winbind uid = 10000-20000
	dns proxy = yes
	lock directory = /var/lock/samba
	name resolve order = host bcast
	encrypt passwords = yes
	socket options = SO_BROADCAST TCP_NODELAY SO_SNDBUF=8192 SO_RCVBUF=8192
#	keepalive = 10
	wins support = true
#	winbind cache time = 20
	allow trusted domains = yes
	password server = lothar
	interfaces = 192.191.193.2/24
	volume = "Linux OS"
	debug level = 3
	max wins ttl = 1800
	security = domain
#	security = user
#	winbind separator = \
	log level = 2
	server string = Serveur WINS
	winbind gid = 10000-20000
#	workgroup = DOMAINE
       workgroup = ADMIN01
#        workgroup = %G
#	log file = /var/log/samba/%G-%m.log
       log file = /var/log/samba/%m.log	
	local master = no
	winbind enum groups = yes
	lm announce = yes
	comment = "Serveur WINS"
	netbios name = INTRANET
	netbios aliases = LINUX
	winbind enum users = yes
#	include = /usr/local/samba/lib/smb.conf.%G
[all]
	path = /
	volume = 
	force group = root
	valid users = DOMAINE\\maura
	comment = Tout le system de fichier
	force user = root
	admin users = DOMAINE+MAURA
	write list = DOMAINE+maura

[agenda]
	path = /home/partage/agenda
	force group = root
	valid users = ADMIN01\\maura
	comment = Agenda
	force user = root
	write list = ADMIN01\\maura

[libre]
	guest ok = Yes
	comment = Vous pouvez ecrire dans ce repertoire
	volume = 
	force group = nogroup
	path = /home/partage/libre
	force user = nouser
	writeable = Yes

[install]
	path = /home/partage/install
	force group = root
	volume = 
	comment = Installations pour client Windows
	public = yes
	force user = root
	admin users = DOMAINE+maura
	write list = DOMAINE+maura

[mathieu]
	path = /home/mathieu
	writable = yes
	volume = 
	force group = users
	valid users = DOMAINE+maura
	comment = Maura Mathieu
	force user = DOMAINE+maura
	admin users = DOMAINE+maura

[intranet]
	path = /home/intranet
	writable = yes
	volume = 
	force directory mode = 770
	create mode = 660
	force create mode = 660
	directory mode = 770
	force group = apache
	valid users = @DOMAINE+_ADMINISTRATEUR
	comment = Tous les Sites intranet
	dont descend = lost+found
	force user = apache
	admin users = @DOMAINE+_ADMINISTRATEUR

[Bureautique]
	path = /home/partage/bureautique
	force group = nogroup
	comment = Partage de logiciels bureautiques
	public = yes
	force user = nobody
	write list = @DOMAINE+_ADMINISTRATEUR

[cdrom]
	path = /mnt/cdrom
	comment = Lecteur CDROM du serveur
	valid users = DOMAINE+maura

[fsecure5]
	path = /home/partage/fsecure5
	browseable = no
	force group = root
	valid users = @10000
	comment = Fichier d'echange de F-Secure 5
	public = yes
	force user = root
	write list = @10000

[carto]
	path = /home/intranet/sites/cartographie
	force group = apache
	comment = Documentation du site Informatique
	valid users = @SDIS66+Administrateurs
	force user = apache
	write list = @SDIS66+ADMINISTRATEURs

[transmission]
	path = /home/intranet/sites/transmission
	writable = yes
	force directory mode = 750
	force create mode = 640
	user = DOMAINE+PHILIPPOT,DOMAINE+maura
	force group = apache
	comment = Le site de la transmission
	valid users = DOMAINE+PHILIPPOT,DOMAINE+maura
	force user = apache

[preven]
	path = /home/partage/prevention
	writable = yes
	force group = root
	comment = ERP
	valid users = @DOMAINE+_PREVENTION
	#revalidate = yes
	user = @DOMAINE+_PREVENTION
	force user = root

[adminfin]
	path = /home/intranet/sites/intranet/administratif
	writable = yes
	force group = apache
	comment = 
	user = DOMAINE+SAGUEZ
	force user = apache
	only user = yes
	write list = DOMAINE+SAGUEZ



More information about the samba mailing list