Am 26.07.2019 um 14:05 schrieb Fokke Nauta:
> [C:\Program Files\JPSoft\TCCLE14x64]net use s: \\raspberrypi\pishare
> /user:pi /persistent:yes xyz
> System error 1326 has occurred.
>
> The user name or password is incorrect.
>
> I know there is a user "pi" on the pi, and I know the password is correct.
Are both users (the system user and the samba user) valid? See my text
above.
>
> Tried this as well:
> [C:\Program Files\JPSoft\TCCLE14x64]net use s: \\raspberrypi\pishare
> /user:'Fokke Nauta' /persistent:yes xyz
> This resulted in an error message, showing me the syntax.
I will try to help you without reading every post in this thread.
I have pasted your smb.conf part with the share.
I have added a user pi with adduser pi.
sudo adduser pi
I have controlled the entry by typing grep pi /etc/passwd:
sudo grep pi /etc/passwd
pi:x:1002:1002:,,,:/home/pi:/bin/bash
Then I added a samba user by typing
sudo smbpasswd -a pi
I controlled this with
sudo pdbedit -L -v pi
I then made the share dir with
sudo mkdir /home/pi
Now the user pi shall have access to it
sudo chown pi:pi /home/pi
Check with
ls -la /home
drwxr-xr-x 2 pi pi 4096 Jul 26 14:28 pi/
Now go to the Windows machine and open a command shell and type
net view \\yourlinuxmachine
it should be
pishare Platte Pi Shared Folder
in it.
Now use the following command to share the share in Windows with the
letter S
net use s: \\yourlinuxmachine\pishare /user:pi /persistent:no pipass
Der Befehl wurde erfolgreich ausgeführt.
That works all in my environment: linux ubuntu, samba V 4.10.0, Windows
10 Ver 1809.
Hope it helps!!!
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)
|