FAQ Revised: Tuesday 12 January 2010 10:01:21
smbclient -L localhost -U wbicq
added interface ip=172.10.10.89 bcast=172.10.10.255 nmask=255.255.255.0
Password:
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 2.2.7]
Sharename Type Comment
--------- ---- -------
public Disk
homes Disk Home directories
STAT Disk ARBORESCENCE STAT
GEST Disk ARBORESCENCE GESTION
IPC$ IPC IPC Service (Samba 2.2.7)
ADMIN$ Disk IPC Service (Samba 2.2.7)
18619 Printer
018609 Printer
018608 Printer
p207 Printer
a236 Printer
18612 Printer
18615 Printer
18622 Printer
18608 Printer
018621 Printer
018612 Printer
wbicq Disk Home directories
Server Comment
--------- -------
BATGIRL Samba 2.2.7
BADBOY
Workgroup Master
--------- -------
WORKGROUP BADBOY
En plus de ces fichiers de configuration on trouve dans /var/locks/samba les fichiers de travail avec une extension en .tdb.
testparm
Load smb config files from /etc/smb.conf
Processing section "[printers]"
Processing section "[public]"
Processing section "[homes]"
Processing section "[STAT]"
Processing section "[GEST]"
Loaded services file OK.
Press enter to see a dump of your service definitions
[homes]
comment = Home directories
read only = No
[STAT]
comment = ARBORESCENCE STAT
path = /DATA/STAT
read only = No
[GEST]
comment = ARBORESCENCE GESTION
path = /DATA/GEST
force directory mode = 0750
rpcclient -d=0 -U wbicq -c 'enumprinters' localhost
Password:
cmd = enumprinters
flags:[0x800000]
name:[\\localhost\p018]
description:[\\localhost\p018,,]
comment:[bureau du fond]
flags:[0x800000]
name:[\\localhost\p207]
description:[\\localhost\p207,,]
comment:[]
testprns 18622
Looking for printer p018 in printcap file /etc/qconfig
Printer name p018 is valid.
smbpasswd
smbstatus Samba version 2.2.7 Service uid gid pid machine ---------------------------------------------- STAT goxxxxso sas 1462400 aaaaaa17714 (192.90.22.211) Mon Jan 11 10:10:18 2010 STAT vincxxxx sas 1122384 aaaaaa20894 (192.90.25.65) Mon Jan 11 08:46:11 2010 STAT mexxxxx sas 864256 aaaaaa20430 (192.90.25.21) Mon Jan 11 10:20:58 2010 GEST yxxxxxu gest 815108 aaaaaa17069 (192.90.23.41) Mon Jan 11 07:59:37 2010 GEST lyyyyyya sas 827506 aaaaaa20927 (192.90.25.55) Mon Jan 11 09:15:42 2010 Locked files: Pid DenyMode Access R/W Oplock Name -------------------------------------------------------------- 585808 DENY_WRITE 0x20089 RDONLY EXCLUSIVE+BATCH /DATA/STAT/VIEILLESSE/LIST/100111-11H25S15-PROGRAM-MAJOS_19_RECAPpdf Mon Jan 11 11:26:03 2010 585808 DENY_WRITE 0x2019f RDWR NONE /DATA/STAT/VIEILLESSE/ARCHIVES/MAJO2009630912.csv Mon Jan 11 11:07:31 2010
nmblookup batman querying batman on 172.10.10.255 172.10.10.89 batman<00>
#smbd #nmbd
