samba sous AIX

Creation: 12 janvier 2010
Mise à jour:
Version: 1.1
Author: Jean-Louis Bicquelet-Salaün
Location: http://jlbicquelet.free.fr
Copyright: (c) 2010 Jean-Louis BICQUELET-SALAÜN

FAQ Revised: Tuesday 12 January 2010 10:01:21


Table of Contents

1. configuration
2. utilisation
3. generalites

1. configuration

1.1. comment lister les ressources samba disponibles?
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


1.2. quels sont les fichiers samba?
Les fichiers sont /etc/smb.conf pour la configuration et /etc/smbpasswdpour le fichiers contenant les mots de passe.

En plus de ces fichiers de configuration on trouve dans /var/locks/samba les fichiers de travail avec une extension en .tdb.

1.3. comemnt testet le fichier de configuration?
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




2. utilisation

2.1. comment connaitre les imprimantes disponibles par samba?
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.


2.2. comment changer un mot de passe?
smbpasswd


2.3. comment lister les connexion au serveur samba?
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


2.4. comment connaite l'adresse IP associée à un nom netbios?
nmblookup batman
querying batman on 172.10.10.255
172.10.10.89 batman<00>


2.5. comment lancer et arrêter samba?
Pour lancer samba on tape:
#smbd
#nmbd



3. generalites

3.1. C'est quoi SWAT ?
SWAT désigne The Samba Web Administration Tool. Il s'agit d'une interface graphique permettant de gérer samba. Elle est accessible par navigateur internet sur le port 901



3.2. ou peut-on trouver des informations spécifique à AIX pour samba?
Vous pouvez consulter la Samba on AIX.