online 1
gast (50)

/ Forum / Linux

LinuxLinux

Fragevon linuxamateuer vom 19.12.2020, 18:51 Options

Samba Probleme

Hallo,
ich hatte ja bereits angekündigt, mich wieder zu melden, das tue ich jetzt.
Ich habe Debian auf meinem Server nun fertig installiert, und alles funktioieniert. Bis auf Samba.
Ich wollte ja nur den Server für alle Sichtbar machen, und auf ihm 2 Ordner ablegen: Musik und Bilder. Für diese sollten für jeden zugänglich sein, und dort sollte auch jeder Schreibrechte besitzen.
Und 5 mit Benutzerzugang.
Doch selbst mit einem Konfigurationsprogramm schlug jeder versuch fehl.

Könnt ihr mir helfen ?


Antwort schreiben

Antwort 1 von BSchlegel vom 21.12.2020, 14:41 Options

Welches angebliche Konfigurationsprogramm meinst du? Yast? Finger weg vom Yast, wenn du Samba konfigurieren möchtest!

Mach das bitte nur über die smb.cfg und starte danach die beiden Samba-Dienste nochmal neu (oder das System).

Hier ein simples Beispiel:
http://www.vogelgesang-berlin.de/server/Samba/samba2.htm

Antwort 2 von Supermax vom 21.12.2020, 14:47 Options

YaST gibts unter Debian ohnehin nicht ;) Und mit "WebMin" hatte ich eigentlich nie Probleme, weder unter SuSE noch unter Fedora oder Debian / Ubuntu.

Antwort 3 von BSchlegel vom 21.12.2020, 14:53 Options

Ist allerdings ein bekanntes Sicherheitsproblem.

Es macht durchaus Sinn, die smb.conf zu verstehen und von Hand zu editieren.
Gerade das Aufsetzen eines Servers sollte nicht mit 2 Mausklicks geschehen, zudem ist die smb.conf extrem mächtig und kennt so viele Optionen, die Webmin allein gar nicht ausreizen kann.

Antwort 4 von linuxamateuer vom 21.12.2020, 17:07 Options

Ich habs mit Webmin versucht,
vorher nur mit der smb.conf da war der Server sogar noch im Netz zu sehen, jetz leider nicht mehr.
Ich zeig euch meine smb.conf.
hier kommt sie:

## Sample configuration file for the Samba suite for Debian GNU/Linux.##
# This is the main Samba configuration file. You should read the
# smb.conf(5) manual page in order to understand the options #listed here. Samba has a huge number of configurable #options most of which are not shown in this example
# Any line which starts with a ; (semi-colon) or a # (hash)
# is a comment and is ignored. In this example we will use a #
# for commentary and a ; for parts of the config file that you
# may wish to enable
## NOTE: Whenever you modify this file you should run the #command "testparm" to check that you have not made any #basic syntactic errors.
#
#=== Global Settings ===
[global]
name resolve order = lmhosts host wins bcast
passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n *password\supdated\ssuccessfully* .
obey pam restrictions = yes
passwd program = /usr/bin/passwd %u
dns proxy = no
netbios name = krasserserver
printing = cups
logon script = logon.cmd
invalid users = root
default = homes
workgroup = Kaffeeteam
os level = 20
printcap name = cups
security = user
max log size = 1000
log file = /var/log/samba/log.%m
guest account = everyone
load printers = yes
socket options = TCP_NODELAY
wins server = w.x.y.z
logon drive = H:
username map = /etc/samba/user.map
domain master = auto
encrypt passwords = yes
passdb backend = tdbsam
logon home = \\%N\%U
printer admin = @ntadmin
netbios aliases = krasseltserver
server string = "Dataserver, Webserver, Mailserver"
unix password sync = yes
logon path = \\%N\%U\profile
add user script = /usr/sbin/adduser --quiet --disabled-password --gecos "" %u
syslog = 0
panic action = /usr/share/samba/panic-action
domain logons = yes
pam password change = no

#### Networking ####

; interfaces = 127.0.0.0/8 eth0
; bind interfaces only = true


#### Debugging/Accounting ####

; syslog only = no

####### Authentication #######

########## Domains ###########

########## Printing ##########

############ Misc ############

; include = /home/samba/etc/smb.conf.%m
# SO_RCVBUF=8192 SO_SNDBUF=8192
; message command = /bin/sh -c '/usr/bin/linpopup "%f" "%m" %s; rm %s' &
; idmap uid = 10000-20000
; idmap gid = 10000-20000
; template shell = /bin/bash
;
;
; winbind enum groups = yes
; winbind enum users = yes

#=== Share Definitions ===

[Eigene Musik]
writeable = yes
invalid users =
path = /Eigene-Musik/Musik
write list = root,michaelkrasselt,@users,@root
force directory mode = 755
force create mode = 755
comment = Musik für alle
valid users = michaelkrasselt,root,@users,@root
user = root,michaelkrasselt,@users,@root
public = yes
case sensitive = yes

Antwort 5 von linuxamateuer vom 21.12.2020, 17:08 Options

Ich seh da nähmlich irgentwie nicht durch

linuxamateuer

Antwort 6 von SweetSmile vom 22.12.2020, 14:48 Options

Ich würde erstmal klein anfangen und erstmal alles auskommentieren, was zum grundätzlichen Betrieb nicht notwendig ist.

Danach kannst du nach und nach jede Option einzeln dazuschalten.

Antwort 7 von linuxamateuer vom 23.12.2020, 14:24 Options

Also ungefähr so ?:

[global]
name resolve order = lmhosts host wins bcast
passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n *password\supdated\ssuccessfully* .
obey pam restrictions = yes
passwd program = /usr/bin/passwd %u
dns proxy = no
netbios name = krasserserver
printing = cups
logon script = logon.cmd
invalid users = root
default = homes
workgroup = Kaffeeteam
os level = 20
printcap name = cups
security = user
max log size = 1000
log file = /var/log/samba/log.%m
guest account = everyone
load printers = yes
socket options = TCP_NODELAY
wins server = w.x.y.z
logon drive = H:
username map = /etc/samba/user.map
domain master = auto
encrypt passwords = yes
passdb backend = tdbsam
logon home = \\%N\%U
printer admin = @ntadmin
netbios aliases = krasseltserver
server string = "Dataserver, Webserver, Mailserver"
unix password sync = yes
logon path = \\%N\%U\profile
add user script = /usr/sbin/adduser --quiet --disabled-password --gecos "" %u
syslog = 0
panic action = /usr/share/samba/panic-action
domain logons = yes
pam password change = no

[Eigene Musik]
writeable = yes
invalid users =
path = /Eigene-Musik/Musik
write list = root,michaelkrasselt,@users,@root
force directory mode = 755
force create mode = 755
comment = Musik für alle
valid users = michaelkrasselt,root,@users,@root
user = root,michaelkrasselt,@users,@root
public = yes
case sensitive = yes

Antwort 8 von Targona vom 23.12.2020, 16:35 Options

Immer noch VIEL ZU VIEL!

Antwort 9 von linuxamateuer vom 24.12.2020, 14:08 Options

wirklich ?!?
Sagt mir ma bitte, was kann ich alles noch weglassen ?

linuxamateuer

Ähnliche Themen

samba ? hilfe ...
flying-dutchman  10.07.2007 - 49 Hits - 3 Antworten

samba fileserver
lamb01  20.08.2007 - 85 Hits - 6 Antworten

fehler bei der installation von samba
streezer  31.10.2007 - 98 Hits - 10 Antworten

Samba-Freigabe unter Suse 10.3
geomec  16.11.2007 - 101 Hits - 2 Antworten

samba client installieren
ivy2310  19.10.2008 - 40 Hits - 4 Antworten

Hinweis

Diese Frage ist schon etwas älter, Sie können daher nicht mehr auf sie antworten. Sollte Ihre Frage noch nicht gelöst sein, stellen Sie einfach eine neue Frage im Forum..

Neue Einträge

Version: supportware 1.9.150 / 10.06.2022, Startzeit:Thu Jan 8 21:07:44 2026