Samba

Aus Doku-Wiki
Zur Navigation springenZur Suche springen

Samba

Installation

* aptitude install samba
   - encryp pass  -yes-
   - UserDB       -no-
* Grundlegende smb.conf
   [global]
     workgoup = microsoft

   [daten]
     path = /tmp
     writable = yes
* Testen der Konfiguration
   - aptitude install samba-client

# smbclient -N -L appl1.villa.local
Anonymous login successful
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.0.14a-Debian]

       Sharename       Type      Comment
       ---------       ----      -------
       daten           Disk
       IPC$            IPC       IPC Service (Samba 3.0.14a-Debian)
       ADMIN$          IPC       IPC Service (Samba 3.0.14a-Debian)
Anonymous login successful
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.0.14a-Debian]

       Server               Comment
       ---------            -------
       APPL1                Samba 3.0.14a-Debian

       Workgroup            Master
       ---------            -------
       WORKGROUP            APPL1

Samba-Benutzer anlegen

Script zum anlegen von Benutzern

useradd -m user1
echo user1:pw1 | chpasswd
smbpasswd -a user1
useradd -m user2
echo user2:pw2 | chpasswd
smbpasswd -a user2