Recent Changes - Search:

Accueil

OpenSSL

SyncML

Apache Portable Runtime

Libxml2

Net-snmp

CUrl

Boost

Perl

ZLib

Samba

VPN

Serveurs de messagerie

edit

Samba/Samba

Mémo pour l'installation de Samba sur un serveur OpenBSD et son fichier de configuration.

compilation
tar zxvf samba-3.0.20b.tar.gz
cd samba-3.0.20b/source

./configure \
--with-smbwrapper --without-sambabook \
--bindir=/usr/local/bin --sbindir=/usr/local/sbin \
--libexecdir=/usr/libexec --with-utmp \
--prefix=/usr/local --exec-prefix=/usr/local --with-sysconfdir=/etc \
--localstatedir=/var --infodir=/usr/local/info --mandir=/usr/local/man \
--with-profile --with-privatedir=/etc/samba --with-lockdir=/var/spool/lock \
--with-swatdir=/usr/local/swat --with-configdir=/etc/samba \
--with-logfilebase=/var/log --with-piddir=/var/run

make & make installbin

ajouter au fichier /etc/rc.local

if [ -f /etc/samba/smb.conf ]; then
echo -n ' smbd'; /usr/local/sbin/smbd -D
echo -n ' nmbd'; /usr/local/sbin/nmbd -D
fi

création des répertoires
mkdir /home/samba
mkdir /home/samba/public
mkdir /home/samba/root
mkdir /home/netlogon
mkdir /home/profiles

mapping des groupes
Liste des RID (p238 du fichier SAMBA3-HOWTO.pdf)
net groupmap list
net groupmap add ntgroup="Domain Admins" unixgroup=wheel type=domain rid=512
net groupmap add ntgroup="Domain Users" unixgroup=users type=domain rid=513

ajouter le user root
smbpasswd -a root

permettre l'utilisation du user administrateur à la place de root
echo "root = administrateur" > /etc/samba/smbusers

créer un group 'machines' pour que les postes du domaine s'y ajoutent
groupadd machines
net groupmap add ntgroup="Domain Computers" unixgroup=machines type=domain rid=515

liste des groupes Unix
getent group

supprimer un groupe
net groupmap delete ntgroup="Domain Computers"

création d'un utilisateur du domaine
useradd -m -s /bin/false -c "Utilisateur 2" -b /home/samba -G users testuser2
useradd -m -s /bin/false -c "Utilisateur 3" -b /home/samba -G wheel testuser3

Edit - History - Print - Recent Changes - Search
Page last modified on July 17, 2006, at 11:51 PM