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

mike7000

Jungspund
Beiträge
22
Hallo,

ich habe meinen Fileserver erneuern müssen, Umstellung auf 18.04. LTS!

Ich habe eine Freigabe auf dem Fileserver A = FreigabeServer erstellt. Es kann der Fileserver A und ein Client im Netzwerk Client B darauf zugreifen.

Ich habe eine Freigabe auf dem Client B = Freigabe asus2 erstellt. Es kann der Client B und der Fileserver A darauf zugreifen.

Das ist auch ja so okay ☺

Nun habe ich auf dem Fileserver A eine zweite Festplatte eingebaut, das war auch immer so. Client B konnte immer darauf zugreifen. Leider musste ich ja nun Fileserver A neu installieren. Irgendwie passt das mit der Freigabe hier nicht mehr.

Die Freigabe heißt ED1 auf sdb1. Leider kann ich diese nicht im Netzwerk mehr sehen. Wenn ich diese auf Fileserver A freigeben möchte bekomme ich die Meldung: net usershare gab den Fehler 255 zurück. net usershare add cannit share path/media/....

wo muss ich hier schauen. Schreibrechte hat die ganze Festplatte auf Fileserver A mit Chmod 777.

Dies war meine Anleitung:
https://www.thomas-krenn.com/de/wiki/Einfache_Samba_Freigabe_unter_Debia ...

Dies ist meine smb.conf

# values are "standalone server", "member server", "classic primary

87.
# domain controller", "classic backup domain controller", "active

88.
# directory domain controller".

89.
#

90.
# Most people will want "standalone sever" or "member server".

91.
# Running as "active directory domain controller" will require first

92.
# running "samba-tool domain provision" to wipe databases and create a

93.
# new domain.

94.
server role = standalone server

95.


96.
# If you are using encrypted passwords, Samba will need to know what

97.
# password database type you are using.

98.
passdb backend = tdbsam

99.


100.
obey pam restrictions = yes

101.


102.
# This boolean parameter controls whether Samba attempts to sync the Unix

103.
# password with the SMB password when the encrypted SMB password in the

104.
# passdb is changed.

105.
unix password sync = yes

106.


107.
# For Unix password sync to work on a Debian GNU/Linux system, the following

108.
# parameters must be set (thanks to Ian Kahan <<kahan@informatik.tu-muenchen.de> for

109.
# sending the correct chat script for the passwd program in Debian Sarge).

110.
passwd program = /usr/bin/passwd %u

111.
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .

112.


113.
# This boolean controls whether PAM will be used for password changes

114.
# when requested by an SMB client instead of the program listed in

115.
# 'passwd program'. The default is 'no'.

116.
pam password change = yes

117.


118.
# This option controls how unsuccessful authentication attempts are mapped

119.
# to anonymous connections

120.
map to guest = bad user

121.


122.
########## Domains ###########

123.


124.
#

125.
# The following settings only takes effect if 'server role = primary

126.
# classic domain controller', 'server role = backup domain controller'

127.
# or 'domain logons' is set

128.
#

129.


130.
# It specifies the location of the user's

131.
# profile directory from the client point of view) The following

132.
# required a [profiles] share to be setup on the samba server (see

133.
# below)

134.
; logon path = \\%N\profiles\%U

135.
# Another common choice is storing the profile in the user's home directory

136.
# (this is Samba's default)

137.
# logon path = \\%N\%U\profile

138.


139.
# The following setting only takes effect if 'domain logons' is set

140.
# It specifies the location of a user's home directory (from the client

141.
# point of view)

142.
; logon drive = H:

143.
# logon home = \\%N\%U

144.


145.
# The following setting only takes effect if 'domain logons' is set

146.
# It specifies the script to run during logon. The script must be stored

147.
# in the [netlogon] share

148.
# NOTE: Must be store in 'DOS' file format convention

149.
; logon script = logon.cmd

150.


151.
# This allows Unix users to be created on the domain controller via the SAMR

152.
# RPC pipe. The example command creates a user account with a disabled Unix

153.
# password; please adapt to your needs

154.
; add user script = /usr/sbin/adduser --quiet --disabled-password --gecos "" %u

155.


156.
# This allows machine accounts to be created on the domain controller via the

157.
# SAMR RPC pipe.

158.
# The following assumes a "machines" group exists on the system

159.
; add machine script = /usr/sbin/useradd -g machines -c "%u machine account" -d /var/lib/samba -s /bin/false %u

160.


161.
# This allows Unix groups to be created on the domain controller via the SAMR

162.
# RPC pipe.

163.
; add group script = /usr/sbin/addgroup --force-badname %g

164.


165.
############ Misc ############

166.


167.
# Using the following line enables you to customise your configuration

168.
# on a per machine basis. The %m gets replaced with the netbios name

169.
# of the machine that is connecting

170.
; include = /home/samba/etc/smb.conf.%m

171.


172.
# Some defaults for winbind (make sure you're not using the ranges

173.
# for something else.)

174.
; idmap uid = 10000-20000

175.
; idmap gid = 10000-20000

176.
; template shell = /bin/bash

177.


178.
# Setup usershare options to enable non-root users to share folders

179.
# with the net usershare command.

180.


181.
# Maximum number of usershare. 0 (default) means that usershare is disabled.

182.
; usershare max shares = 100

183.


184.
# Allow users who've been granted usershare privileges to create

185.
# public shares, not just authenticated ones

186.
usershare allow guests = yes

187.


188.
#======================= Share Definitions =======================

189.


190.
# Un-comment the following (and tweak the other settings below to suit)

191.
# to enable the default home directory shares. This will share each

192.
# user's home directory as \\server\username

193.
;[homes]

194.
; comment = Home Directories

195.
; browseable = no

196.


197.
# By default, the home directories are exported read-only. Change the

198.
# next parameter to 'no' if you want to be able to write to them.

199.
; read only = yes

200.


201.
# File creation mask is set to 0700 for security reasons. If you want to

202.
# create files with group=rw permissions, set next parameter to 0775.

203.
; create mask = 0700

204.


205.
# Directory creation mask is set to 0700 for security reasons. If you want to

206.
# create dirs. with group=rw permissions, set next parameter to 0775.

207.
; directory mask = 0700

208.


209.
# By default, \\server\username shares can be connected to by anyone

210.
# with access to the samba server.

211.
# Un-comment the following parameter to make sure that only "username"

212.
# can connect to \\server\username

213.
# This might need tweaking when using external authentication schemes

214.
; valid users = %S

215.


216.
# Un-comment the following and create the netlogon directory for Domain Logons

217.
# (you need to configure Samba to act as a domain controller too.)

218.
;[netlogon]

219.
; comment = Network Logon Service

220.
; path = /home/samba/netlogon

221.
; guest ok = yes

222.
; read only = yes

223.


224.
# Un-comment the following and create the profiles directory to store

225.
# users profiles (see the "logon path" option above)

226.
# (you need to configure Samba to act as a domain controller too.)

227.
# The path below should be writable by all users so that their

228.
# profile directory may be created the first time they log on

229.
;[profiles]

230.
; comment = Users profiles

231.
; path = /home/samba/profiles

232.
; guest ok = no

233.
; browseable = no

234.
; create mask = 0600

235.
; directory mask = 0700

236.


237.
[printers]

238.
comment = All Printers

239.
browseable = no

240.
path = /var/spool/samba

241.
printable = yes

242.
guest ok = no

243.
read only = yes

244.
create mask = 0700

245.


246.


247.
[global]

248.
workgroup = WORKGROUP

249.
security = user

250.
map to guest = Bad Password

251.


252.
[homes]

253.
comment = Home Directories

254.
browsable = no

255.
read only = no

256.
create mode = 0750

257.


258.
[ED]

259.
path = /media/sguhl/ED/ED1

260.
public = yes

261.
writable = yes

262.
comment = smb share

263.
printable = no

264.
guest ok = yes

265.


266.


267.


268.
# Windows clients look for this share name as a source of downloadable

269.
# printer drivers

270.
[print$]

271.
comment = Printer Drivers

272.
path = /var/lib/samba/printers

273.
browseable = yes

274.
read only = yes

275.
guest ok = no

276.
# Uncomment to allow remote administration of Windows print drivers.

277.
# You may need to replace 'lpadmin' with the name of the group your

278.
# admin users are members of.

279.
# Please note that you also need to set appropriate Unix permissions

280.
# to the drivers directory for these users to have write rights in it

281.
; write list = root, @lpadmin

Hoffe um Hilfe!

VG
Mike
 

Ähnliche Themen

Samba 4.9.5-Debian - Kennwort von unix übernehmen

Nginx als Reverse Proxy für Nextcloud und Emby

SMB Zugriff auf Homeshare

Samba-Server mit Univention Corporate Server

Samba Dateien und Ordner verschieben

Oben