PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Seltsames Samba Problem



Benshee
17.03.09, 21:17
Hallo Leute,

habe da ein eigenartiges Problem. Ich möchte gerne einen Linux Rechner als Router und Samba (File) Server nutzen. Dafür habe ich mir jetzt Fedora 10 ausgeguggt und soweit funktioniert auch alles. Nur ein Problem, wenn der Linux Rechner startet, funktioniert die Freigabe erstmal nicht. Rufe ich dann das grafische Admintool von Samba auf und gehe auf Servereinstellungen, schau alles durch und klicke auf OK und schließen, dann funktioniert der Datenaustausch wunderbar. Natürlich kann ich so den Server/Router nicht im runlevel 3 starten.
Der SMB Dienst läuft die ganze Zeit und ein neustart bringt auch keine Abhilfe.

Woran kann das liegen?

Hier mal meine smb.conf


#
workgroup = MSHEIMNETZ
server string = Samba Server

; netbios name = MYSERVER

; interfaces = lo eth0 192.168.12.2/24 192.168.13.2/24
; hosts allow = 127. 192.168.12. 192.168.13.

max log size = 50

security = share
passdb backend = tdbsam


; realm = MY_REALM

; password server = <NT-Server-Name>


; domain master = yes
; domain logons = yes

# the login script name depends on the machine name
; logon script = %m.bat
# the login script name depends on the unix user used
; logon script = %u.bat
; logon path = \\%L\Profiles\%u
# disables profiles support by specifing an empty path
; logon path =

; add user script = /usr/sbin/useradd "%u" -n -g users
; add group script = /usr/sbin/groupadd "%g"
; add machine script = /usr/sbin/useradd -n -c "Workstation (%u)" -M -d /nohome -s /bin/false "%u"
; delete user script = /usr/sbin/userdel "%u"
; delete user from group script = /usr/sbin/userdel "%u" "%g"
; delete group script = /usr/sbin/groupdel "%g"



; local master = no
; os level = 33
; preferred master = yes


; wins support = yes
; wins server = w.x.y.z
; wins proxy = yes

; dns proxy = yes


; load printers = yes
cups options = raw

; printcap name = /etc/printcap
#obtain list of printers automatically on SystemV
; printcap name = lpstat
; printing = cups


; map archive = no
; map hidden = no
; map read only = no
; map system = no
; encrypt passwords = yes
guest ok = yes
guest account = Benshee
; store dos attributes = yes


#============================ Share Definitions ==============================

[homes]
comment = Home Directories
browseable = no
writable = yes
; valid users = %S
; valid users = MYDOMAIN\%S

[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
; guest ok = no
; writable = No
printable = yes

# Un-comment the following and create the netlogon directory for Domain Logons
; [netlogon]
; comment = Network Logon Service
; path = /var/lib/samba/netlogon
; guest ok = yes
; writable = no
; share modes = no


# Un-comment the following to provide a specific roving profile share
# the default is to use the user's home directory
; [Profiles]
; path = /var/lib/samba/profiles
; browseable = no
; guest ok = yes


# A publicly accessible directory, but read only, except for people in
# the "staff" group
; [public]
; comment = Public Stuff
; path = /home/samba
; public = yes
; writable = yes
; printable = no
; write list = +staff

[Media]
path = /home/Media
writeable = yes
; browseable = yes
guest ok = yes



Und ja es ist beabsichtigt, dass das ganze auf share steht mit nem Gastaccount. :)

Ich hoffe mir kann da jemand helfen :)

Achja noch ne kleine Frage zu nem anderen Thema:
Ich hab ne ppp Verbindung (UMTS Modem) am laufen, dieser startet auch automatisch, aber nur wenn ich mich anmelde. Im runlevel 3 leider nicht, wie kann ich das ändern?

Schonmal vielen dank.

Grüße,
Benshee

michaxyz
18.03.09, 09:21
Hallo,

ich sehe erst einmal nicht, wo das Problem liegen kann, würde bei der Art deiner Problemmeldung aber aucherst einmal anders vorgehen.

Mein Vorschlag: Hochfahren OHNE den workaround.
Dann bräuchten wir die Ausgabe von
ps -A
testparm
iptables -L

Erläuterung: das erste Kommando soll sicherstellen, dass smbd (und möglicherweise nmbd) laufen, das zweite gibt die aktuell verwendete smb.conf aus. Drittens soll angeben, ob vielleicht eine firewall den Port (ist 139 oder 445) blockiert.

Wenn das ausgeschlossen ist, müssen wir mal weiter gucken.

Mfg MIchael

UranusI
25.03.09, 16:35
mir kommt es so vor als läuft der Dienst nicht, und schupst ihn über die grafische Oberfläche an.

barny
30.03.09, 19:34
Gleiche bei Fedora 9

root@darkschachtel ~]# uname -r
2.6.27.19-78.2.30.fc9.i686
ps -A

2311 ? 00:00:00 smbd
testparm

[root@darkschachtel ~]# testparm
Load smb config files from /etc/samba/smb.conf
Processing section "[printers]"
Processing section "[mp3]"
Processing section "[pics]"
Processing section "[netz]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions

[global]
workgroup = KREISCH-NET
server string = linux soerver
passdb backend = tdbsam
username map = /etc/samba/smbusers
log file = /var/log/samba/log.%m
max log size = 50
cups options = raw

[printers]
comment = tp0
path = /var/spool/samba
printable = Yes
browseable = No

[mp3]
path = /mp3
valid users = barny, mona

[pics]
path = /pics
valid users = barny, mona

[netz]
path = /daten/netz
valid users = barny, mona
read only = No
iptables -L

[root@darkschachtel ~]# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

So jetzt schubs ich das mal an durch das frondend
ps -A

4060 ? 00:00:00 smbd
4073 ? 00:00:00 smbd
?? gleich zweimal
testparn siehe oben
iptables -L siehe oben

Isengard
31.03.09, 19:48
Sieht aus als kann er den nmbd Dienst nicht durchstarten.
Starte den Server mal durch und poste mal die smbd.log und die nmbd.log direkt nach dem Neustart. Vlt. wird da ein Fehler klar.

barny
05.04.09, 11:52
Hallo
smbd.log

[2009/04/05 11:54:05, 0] smbd/server.c:main(1210)
smbd version 3.2.8-0.26.fc9 started.
Copyright Andrew Tridgell and the Samba Team 1992-2009
[2009/04/05 11:54:05, 0] printing/print_cups.c:cups_connect(78)
Unable to connect to CUPS server localhost:631 - Verbindungsaufbau abgelehnt
[2009/04/05 11:54:05, 0] printing/print_cups.c:cups_connect(78)
Unable to connect to CUPS server localhost:631 - Verbindungsaufbau abgelehnt

nmdb.log

[2009/04/05 09:36:24, 0] nmbd/nmbd.c:terminate(68)
Got SIGTERM: going down...
[2009/04/05 11:54:05, 0] nmbd/nmbd.c:main(849)
nmbd version 3.2.8-0.26.fc9 started.
Copyright Andrew Tridgell and the Samba Team 1992-2009
nach ausfuehren des frontends:
smbd.log

[2009/04/05 11:54:05, 0] smbd/server.c:main(1210)
smbd version 3.2.8-0.26.fc9 started.
Copyright Andrew Tridgell and the Samba Team 1992-2009
[2009/04/05 11:54:05, 0] printing/print_cups.c:cups_connect(78)
Unable to connect to CUPS server localhost:631 - Verbindungsaufbau abgelehnt
[2009/04/05 11:54:05, 0] printing/print_cups.c:cups_connect(78)
Unable to connect to CUPS server localhost:631 - Verbindungsaufbau abgelehnt
[2009/04/05 12:47:23, 0] smbd/server.c:main(1210)
smbd version 3.2.8-0.26.fc9 started.
Copyright Andrew Tridgell and the Samba Team 1992-2009
Hmmm...