• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

[gelöst] Samba nicht erreichbar

MatzUp

Hacker
Ich möchte gerne OpenSuse11.4 als Samba-Fileserver verwenden.
Ich habe unter Yast den Samba-Server gestartet und eingerichtet.
Jedoch kann ich nicht von einem Winows Rechner auf den Server zugreifen.
Firewall ist offen. IP vom Server habe ich mehrmals überprüft.
Samba Dienst ist gestartet.

Hat jemand eine Idee was das Problem sein könnte?

smb.conf Datein:
# smb.conf is the main Samba configuration file. You find a full commented
# version at /usr/share/doc/packages/samba/examples/smb.conf.SUSE if the
# samba-doc package is installed.
# Date: 2011-03-01
[global]
workgroup = BACKUP
passdb backend = tdbsam
printing = cups
printcap name = cups
printcap cache time = 750
cups options = raw
map to guest = Bad User
include = /etc/samba/dhcp.conf
logon path = \\%L\profiles\.msprofile
logon home = \\%L\%U\.9xprofile
logon drive = P:
usershare allow guests = Yes
add machine script = /usr/sbin/useradd -c Machine -d /var/lib/nobody -s /bin/false %m$
domain logons = Yes
domain master = Yes
ldap suffix =
local master = Yes
os level = 65
preferred master = Yes
security = user
wins server =
wins support = No
[homes]
comment = Home Directories
valid users = %S, %D%w%S
browseable = No
read only = No
inherit acls = Yes
[profiles]
comment = Network Profiles Service
path = %H
read only = No
store dos attributes = Yes
create mask = 0600
directory mask = 0700
[users]
comment = All users
path = /home
read only = No
inherit acls = Yes
veto files = /aquota.user/groups/shares/
[groups]
comment = All groups
path = /home/groups
read only = No
inherit acls = Yes
[printers]
comment = All Printers
path = /var/tmp
printable = Yes
create mask = 0600
browseable = No
[print$]
comment = Printer Drivers
path = /var/lib/samba/drivers
write list = @ntadmin root
force group = ntadmin
create mask = 0664
directory mask = 0775

[f1]
comment = festplatte1
guest ok = Yes
browseable = Yes
create mode = 0664
directory mode = 0775
force group = users
force user = backup
inherit acls = Yes
path = /mnt/f1
read only = No

[netlogon]
comment = Network Logon Service
path = /var/lib/samba/netlogon
write list = root
 
OP
M

MatzUp

Hacker
Wenn mit dem Logfile diese Datei gemeint ist: "/var/log/samba/log.smbd"
Dann ist der Inhalt folgendes:

[2011/04/05 16:41:10, 0] lib/fault.c:250(dump_core_setup)
Unable to setup corepath for smbd: Permission denied
[2011/04/05 16:41:10, 0] smbd/server.c:1134(main)
smbd version 3.5.7-1.17.1-2505-SUSE-SL11.4-x86_64 started.
Copyright Andrew Tridgell and the Samba Team 1992-2010
[2011/04/05 16:41:10.996559, 1] ../lib/util/params.c:513(OpenConfFile)
params.c:OpenConfFile() - Unable to open configuration file "/etc/samba/dhcp.conf":
Permission denied
[2011/04/05 16:41:10.997540, 0] smbd/server.c:1149(main)
error opening config file
[2011/04/05 16:52:23, 0] lib/fault.c:250(dump_core_setup)
Unable to setup corepath for smbd: Permission denied
[2011/04/05 16:52:23, 0] smbd/server.c:1134(main)
smbd version 3.5.7-1.17.1-2505-SUSE-SL11.4-x86_64 started.
Copyright Andrew Tridgell and the Samba Team 1992-2010
[2011/04/05 16:52:23.117988, 1] ../lib/util/params.c:513(OpenConfFile)
params.c:OpenConfFile() - Unable to open configuration file "/etc/samba/dhcp.conf":
Permission denied
[2011/04/05 16:52:23.119334, 0] smbd/server.c:1149(main)
error opening config file
[2011/04/05 16:54:25, 0] lib/fault.c:250(dump_core_setup)
Unable to setup corepath for smbd: Permission denied
[2011/04/05 16:54:25, 0] smbd/server.c:1134(main)
smbd version 3.5.7-1.17.1-2505-SUSE-SL11.4-x86_64 started.
Copyright Andrew Tridgell and the Samba Team 1992-2010
[2011/04/05 16:54:25.378934, 1] ../lib/util/params.c:513(OpenConfFile)
params.c:OpenConfFile() - Unable to open configuration file "/etc/samba/dhcp.conf":
Permission denied
[2011/04/05 16:54:25.379867, 0] smbd/server.c:1149(main)
error opening config file
[2011/04/05 16:58:27, 0] lib/fault.c:250(dump_core_setup)
Unable to setup corepath for smbd: Permission denied
[2011/04/05 16:58:27, 0] smbd/server.c:1134(main)
smbd version 3.5.7-1.17.1-2505-SUSE-SL11.4-x86_64 started.
Copyright Andrew Tridgell and the Samba Team 1992-2010
[2011/04/05 16:58:27.222681, 1] ../lib/util/params.c:513(OpenConfFile)
params.c:OpenConfFile() - Unable to open configuration file "/etc/samba/dhcp.conf":
Permission denied
[2011/04/05 16:58:27.223451, 0] smbd/server.c:1149(main)
error opening config file
 
OP
M

MatzUp

Hacker
Ich hab die Lösung herausgefunden. Es war das selbe Problem wie in diesem Thread:
http://www.linux-club.de/viewtopic.php?f=6&t=112904

Das Profil von smb und nmp aus AppAmor gelöscht und nun funktionierst.

Ich hab noch ein weiteres Problem mit der Rechtevergabe aber dazu erstelle ich einen extra Thread damit das alles seine Ordnung hat.
 
OP
M

MatzUp

Hacker
MatzUp schrieb:
Ich hab noch ein weiteres Problem mit der Rechtevergabe aber dazu erstelle ich einen extra Thread damit das alles seine Ordnung hat.

Auch das Problem ist nun schon gelöst. Ich musste nur die UNIX-Rechte auf dem Freigabeordner mit den Rechten von Samba abstimmen.
 
Oben