PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Samba Freigabe automatisch mounten



Freehawk
02.11.07, 15:32
Hallo zusammen,

ich suche nach einer Möglichkeit Samba Freigaben automatisch auf meinem Debian Rechner zu mounten.

Die Freigaben sind nicht immer vorhanden.

Ich habe gegooglet und die Möglichkeit mit autofs gefunden und irgendwo habe ich gelesen dass man das auch einfach in die fstab eintragen kann.

Welche Möglichkeit ist die bessere bzw. gibt es noch andere Möglichkeiten?

Und hat vielleicht jemand ein deutsches Howto dazu?

Gruß
Markus

Freehawk
05.11.07, 11:46
Hat denn niemand einen Rat für mich wie ich das Problemchen lösen kann?

Gruß
Markus

kreol
05.11.07, 11:51
Bei NFS z.B. gibts Mountoptions wie bg, timeo etc. pp. Hast Du schon einen Blick auf "man mount" bei "cifs" geworfen? Da findet sich bestimmt was für die fstab.


Kreol

asi_dkn
05.11.07, 11:52
ich hab das eigentlich nie gebraucht, aber wie wäre es wenn du einfach mal per autofs was versuchst und für dich selbst entscheidest ob es deinen ansprüchen gerecht wird oder nicht? das in der fstab dürfte wohl nicht so das sein was du willst, da du dort entweder als root mountest oder eben das user / gruppen ID fest setzt und immer mit demselben user gemountet wird.

Freehawk
05.11.07, 19:35
So ich habe jetzt mit autofs rumprobiert und bekomme es nicht hin.

Es kommt ein access deny Fehler.

Meldungen aus syslog:

Nov 5 20:28:10 debian automount[2445]: >> 2447: tree connect failed: ERRDOS - ERRnoaccess (Access denied.)
Nov 5 20:28:10 debian automount[2445]: >> SMB connection failed
Nov 5 20:28:10 debian automount[2445]: mount(generic): failed to mount //192.168.2.10/Daten (type smbfs) on /misc/daten
Nov 5 20:28:10 debian automount[2445]: failed to mount /misc/daten
Nov 5 20:28:10 debian automount[2448]: >> 2450: tree connect failed: ERRDOS - ERRnoaccess (Access denied.)
Nov 5 20:28:10 debian automount[2448]: >> SMB connection failed
Nov 5 20:28:10 debian automount[2448]: mount(generic): failed to mount //192.168.2.10/Daten (type smbfs) on /misc/daten
Nov 5 20:28:10 debian automount[2448]: failed to mount /misc/daten
Nov 5 20:28:10 debian automount[2451]: >> 2453: tree connect failed: ERRDOS - ERRnoaccess (Access denied.)
Nov 5 20:28:10 debian automount[2451]: >> SMB connection failed
Nov 5 20:28:10 debian automount[2451]: mount(generic): failed to mount //192.168.2.10/Daten (type smbfs) on /misc/daten
Nov 5 20:28:10 debian automount[2451]: failed to mount /misc/daten

Hier noch meine Configfiles dazu:

#
# $Id: auto.master,v 1.4 2005/01/04 14:36:54 raven Exp $
#
# Sample auto.master file
# This is an automounter map and it has the following format
# key [ -mount-options-separated-by-comma ] location
# For details of the format look at autofs(5).
/misc /etc/auto.misc --timeout=60
#/smb /etc/auto.smb
#/misc /etc/auto.misc
#/net /etc/auto.net

#
# $Id: auto.misc,v 1.2 2003/09/29 08:22:35 raven Exp $
#
# This is an automounter map and it has the following format
# key [ -mount-options-separated-by-comma ] location
# Details may be found in the autofs(5) manpage

#cd -fstype=iso9660,ro,nosuid,nodev :/dev/cdrom

daten -fstype=smbfs,login=freehawk,passwd=XXX ://192.168.2.10/Daten

# the following entries are samples to pique your imagination
#linux -ro,soft,intr ftp.example.org:/pub/linux
#boot -fstype=ext2 :/dev/hda1
#floppy -fstype=auto :/dev/fd0
#floppy -fstype=ext2 :/dev/fd0
#e2floppy -fstype=ext2 :/dev/fd0
#jaz -fstype=ext2 :/dev/sdc1
#removable -fstype=ext2 :/dev/hdd

Kann mir vielleicht jemand weiterhelfen? Der Username und das Password stimmen, aber irgendwie geht es nicht.

Gruß
Markus

Freehawk
06.11.07, 19:58
Hallo zusammen,

hat denn niemand eine Idee zu meinem Problem?

Ich bin fast am verzweifeln.

Gruß
Markus