Set up a Samba Share for the KONICA MINOLTA magicolor 4690mf

This blog post documents the steps needed to set up a Samba Windows share on a Ubuntu based computer in order to let the Konica Minolta magicolor 4690mf scanner save scanned images directly to that folder.

Main resource: http://wiki.ubuntuusers.de/Samba_server (German)

sudo aptitude install samba-common samba

You might also install the samba documenation (also as pdf: /usr/share/doc/samba-doc-pdf/Samba3-HOWTO.pdf.gz /usr/share/doc/samba-doc-pdf/Samba3-Developers-Guide.pdf.gz, and tools for the samba user database)

sudo aptitude install samba-doc-pdf samba-doc tdb-tools

Add a new user with no other rights:

sudo  adduser --no-create-home --disabled-login --shell /bin/false --force-badname Scanner

we need --force-badname because Scanner contains a capital D

sudo smbpasswd -a Scanner

and set up the share in the samba configuration:

[scan]
comment = A share for direct scanning.
# Share is active:
available = yes
path = /home/yourusername/scan
guest ok = no
writeable = no
read only = no
valid users = Scanner
invalid users = root bin daemon nobody named sys tty disk mem kmem users yourusername
browseable = yes
# Rechte bei neuen Dateien/Verzeichnissen
# Neue Dateien werden mit diesen Rechten versehen
create mode = 0664
# New directories will be created with these permissions:
directory mode = 0775
# User and group affiliation
# Whoever logs in to samba, the files will be pinned to your user account
force user = yourusername
# ... and to your group:
force group = yourusername
# Users, groups who still have write access:
#write list = paul,@beispiel

Comments