Sichere Samba Config ?

N

NightStalk3r

Jungspund
So, habe jetzt nach 2h Fehlersuche es endlich geschafft die Sambafreigabe zum laufen zu bekommen (Nachdem ich festgestellt habe dass /data auf root gelaufen ist und nicht auf /users), dachte ich bin zu blöd den Samba zu konfigurieren.

So, am Samba sind die Standardfreigaben aus, es gibt nur einen freigegebenen Ordner, nämlich "data", der einzigste User der darauf zugreifen darf, ist "nightstalk3r"

# 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: 2009-01-08
[global]
workgroup = WORKGROUP
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 = No

## Share disabled by YaST
# [homes]
# comment = Home Directories
# valid users = %S, %D%w%S
# browseable = No
# read only = No
# inherit acls = Yes

## Share disabled by YaST
# [profiles]
# comment = Network Profiles Service
# path = %H
# read only = No
# store dos attributes = Yes
# create mask = 0600
# directory mask = 0700

## Share disabled by YaST
# [users]
# comment = All users
# path = /home
# read only = No
# inherit acls = Yes
# veto files = /aquota.user/groups/shares/

## Share disabled by YaST
# [groups]
# comment = All groups
# path = /home/groups
# read only = No
# inherit acls = Yes

## Share disabled by YaST
# [printers]
# comment = All Printers
# path = /var/tmp
# printable = Yes
# create mask = 0600
# browseable = No

## Share disabled by YaST
# [print$]
# comment = Printer Drivers
# path = /var/lib/samba/drivers
# write list = @ntadmin root
# force group = ntadmin
# create mask = 0664
# directory mask = 0775

[data]
writeable = yes
write list = nightstalk3r
path = /data
comment = File-server3
valid users = nightstalk3r
create mode = 777
inherit acls = Yes
directory mode = 777

Sollte soweit eigentlich alles passen denke ich ?
 
ich schreib immer noch ein
Code:
browseable = yes
dazu.

aber am schnellsten und einfachsten gehts wohl mit yast.
 
Unter global kannst du noch Security = user setzen, meine ich jedenfalls ^^.
 

Ähnliche Themen

Samba 4.9.5-Debian - Kennwort von unix übernehmen

Zugriff Ubuntu 16.04. auf Freigabe 18.04. LTS nicht möglich

SMB Zugriff auf Homeshare

Samba Dateien und Ordner verschieben

Samba 4.5.12-Debian Rechtevergabe

Zurück
Oben