Cannot access samba shares

rmtevesjr
Beiträge: 71
Registriert: 12 Jul 2012, 14:57

Cannot access samba shares

Beitragvon rmtevesjr » 20 Dez 2018, 02:13

hi,
I finished installing the packages and configured the backend but I have a little problem here. I cannot access the samba shares opsi_repository, opsi_workbench, opsi_depot, etc. Any help would be very much appreciated.
I not much familiar of Linux that's why I'm still learning.

Benutzeravatar
n.wenselowski
uib-Team
Beiträge: 3195
Registriert: 04 Apr 2013, 12:15

Re: Cannot access samba shares

Beitragvon n.wenselowski » 23 Jan 2019, 13:59

Hi,

how do you want to access the shares?
What exactly does not work there?
Is there an error message? If so what does it say?


Kind regards

Niko

Code: Alles auswählen

import OPSI

rmtevesjr
Beiträge: 71
Registriert: 12 Jul 2012, 14:57

Re: Cannot access samba shares

Beitragvon rmtevesjr » 18 Mär 2019, 08:20

Hi Nikko,
After I added this in smb.conf ntlm auth = yes, I was able to access but after I reinstalled OPSi sever, again I can't access. The error is access denied.

Thanks.

Benutzeravatar
m.radtke
uib-Team
Beiträge: 785
Registriert: 10 Jun 2015, 12:19

Re: Cannot access samba shares

Beitragvon m.radtke » 18 Mär 2019, 14:05

Hi

what is the rror code when you run the following command?

Code: Alles auswählen

net use \\opsiserver\share


Cheers
Mathias
Kein Support per DM!
_________________________
opsi support - http://www.uib.de/
For productive opsi installations we recommend support contracts.

Benutzeravatar
ngbr
Ex-uib-Team
Beiträge: 130
Registriert: 27 Sep 2010, 11:41

Re: Cannot access samba shares

Beitragvon ngbr » 26 Mär 2019, 14:20

hi rmtevesjr,

we are working on the best workaround for this problem.

Microsoft seemingly has changed the behavior of Windows10 since v1803, I reckon.
Along with disabling SMBv1, the builtin Windows-Explorer will not ask you for credentials upon smb connection attempt. Instead, it believes, you are trying to access something insecure (which is not the case). SMB shares on opsi servers are (and have always been) secured by password.

2 ways to resolve the issue:

1. provide at least a username in your connection attempt. Possible via 'Map network drive' in Windows Explorer (don't forget to specify 'alternate user-account') . Same thing as using the command line, saying 'net use z: \\server\share /user:<yourUserHere>'

2. call the Credentialmanager (or 'control.exe /name Microsoft.CredentialManager' ) . Within Windows-Credentialmanger, add FQDN of your opsi - Server (or *.your.domain), providing a valid username. Password can be left blank, and needs to be specified upon connection attempt. This way, windows will know early enough you are planning to authenticate, so that access to your opsi shares will be possible again.

cheers
andre
---
hoping to help :)

if your problem was solved, pls mark this thread as 'SOLVED'. thank you .

-- no PN support --

Andre

Benutzeravatar
ngbr
Ex-uib-Team
Beiträge: 130
Registriert: 27 Sep 2010, 11:41

Re: Cannot access samba shares

Beitragvon ngbr » 26 Mär 2019, 17:10

hi again,

there is an easy way to add your opsi-Server via CLI :

Code: Alles auswählen

cmdkey /add:opsiserver.fq.dn /user:(domain\)yourUsername (/pass(:yourPassword))
---
hoping to help :)

if your problem was solved, pls mark this thread as 'SOLVED'. thank you .

-- no PN support --

Andre

Benutzeravatar
ngbr
Ex-uib-Team
Beiträge: 130
Registriert: 27 Sep 2010, 11:41

Re: Cannot access samba shares

Beitragvon ngbr » 26 Mär 2019, 18:31

one more comment:

Windows-Credentialmanger seems to work User-based.

greetings!
---
hoping to help :)

if your problem was solved, pls mark this thread as 'SOLVED'. thank you .

-- no PN support --

Andre

rmtevesjr
Beiträge: 71
Registriert: 12 Jul 2012, 14:57

Re: Cannot access samba shares

Beitragvon rmtevesjr » 17 Mai 2019, 03:30

Thanks Andre. I will try it.

Hi m.radtke, the error when I map using net use is "Access denied".

rmtevesjr
Beiträge: 71
Registriert: 12 Jul 2012, 14:57

Re: Cannot access samba shares

Beitragvon rmtevesjr » 17 Mai 2019, 05:10

Hi Andre, I tried both 1 and 2 above, I got "access denied" error. Thanks.

larsg
Beiträge: 222
Registriert: 16 Dez 2014, 18:06

Re: Cannot access samba shares

Beitragvon larsg » 17 Mai 2019, 08:33

i had something similiar after switching from ltsb 2016 to sac 1809.
although different from your case, windows told me that access to unsecure shares is blocked, which seems to be a new thing.

maybe it's still related to your issue, so have a look at this:
https://getadmx.com/?Category=Windows_1 ... uestLogons

if the registry value is set to disable, there is likely a GPO causing that, so make sure to sort that out before changing that registry value.
you can also run gpedit.msc on the client and change the GPO there, in case the GPO isn't set via AD.

something else comming to mind, try

Code: Alles auswählen

sudo opsi-setup --auto-configure-samba
on your opsi server.