
I just found this old article I've written down once to configure Samba on a Linux installation. This article was written in Dutch, but I didn't want it to get lost, so I added it to my blog.
Installatie Samba
- Installatie pakket
- Ga naar /etc/samba/smb.conf en pas volgende wijzingen toe:
- Toegang tot werkgroep:
- Netwerknaam computer:
- Sharen van de home folder:
- Toevoegen gebruiker aan SMB PASSW DB:
- Herstart Samba
$ sudo aptitude install samba
# Change this to the workgroup/NT-domain name your Samba server will part of
workgroup = MSHOME# server string is the equivalent of the NT Description field server string = %h server (Samba, Ubuntu)
# Un-comment the following (and tweak the other settings below to suit) # to enable the default home directory shares. This will share each # user's home directory as \\server\username [homes] comment = Home Directories browseable = yes # By default, \\server\username shares can be connected to by anyone # with access to the samba server. Un-comment the following parameter # to make sure that only "username" can connect to \\server\username # This might need tweaking when using external authentication schemes ; valid users = %S # By default, the home directories are exported read-only. Change next # parameter to 'yes' if you want to be able to write to them. writable = yes
$ sudo smbpasswd -a jochus New SMB password: Retype new SMB password:
$ sudo /etc/init.d/samba restart
Installatie SMBFS
- Verder wil ik ook mijn windows-server data schijf kunnen mounten. Er zijn hiervoor 2 mogelijkheden. Ofwel gebruik je een commandline tooltje als ''smbclient'', ofwel ga je data schijf mounten alsof het echte harde schijven zijn
- Installeer smbfs
- Om andere gebruikers de map te kunnen mounten, moeten we deze ook rechten geven
- Maak een mount point aan
- Om aan de schijf te kunnen geraken moeten we inloggen met Windows credentials
- Vul in
- Voor de veiligheid
- Voeg aan /etc/fstab het volgende toe:
- Mounten gaat nu via:
$ sudo aptitude install smbfs
$ sudo chmod u+s /usr/bin/smbmnt /usr/bin/smbumount
$ sudo mkdir /mnt/data
$ sudo nano /etc/samba/user
USERNAME PASSWORD
$ sudo chmod 0600 /etc/samba/user
//server/share /mnt/data smbfs credentials=/etc/samba/user,rw,uid=bob 0 0
$ mount /mnt/data
Add new comment