On 26/07/2019 15:16, Helmut Harnisch wrote:
> 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
sudo adduser fokke
twice entered UNIX password
> I have controlled the entry by typing grep pi /etc/passwd:
>
> sudo grep pi /etc/passwd
sudo grep fokke /etc/passwd
> pi:x:1002:1002:,,,:/home/pi:/bin/bash
fokke:x:1001:1001:,,,:/home/fokke:/bin/bash
sudo smbpasswd -a fokke
>
> Then I added a samba user by typing
>
> sudo smbpasswd -a pi
sudo smbpasswd -a fokke
twice entered smb password
>
> I controlled this with
>
> sudo pdbedit -L -v pi
sudo pdbedit -L -v fokke
resulted in:
Unix username: fokke
NT username:
Account Flags: [U ]
User SID: S-1-5-21-3147481771-2983603259-3968742567-1001
Primary Group SID: S-1-5-21-3147481771-2983603259-3968742567-513
Full Name:
Home Directory: \\raspberrypi\fokke
HomeDir Drive:
Logon Script:
Profile Path: \\raspberrypi\fokke\profile
Domain: RASPBERRYPI
Account desc:
Workstations:
Munged dial:
Logon time: 0
Logoff time: never
Kickoff time: never
Password last set: wo, 31 jul 2019 11:54:20 CEST
Password can change: wo, 31 jul 2019 11:54:20 CEST
Password must change: never
Last bad password : 0
Bad password count : 0
Logon hours : FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
>
> I then made the share dir with
>
> sudo mkdir /home/pi
sudo mkdir /home/fokke
answer:
mkdir: kan map ‘/home/fokke’ niet aanmaken: Bestand bestaat al
(can't create map as it already exists)
>
> Now the user pi shall have access to it
>
> sudo chown pi:pi /home/pi
sudo chown fokke:fokke /home/fokke
>
> Check with
>
> ls -la /home
ls -la /home
>
> drwxr-xr-x 2 pi pi 4096 Jul 26 14:28 pi/
totaal 16
drwxr-xr-x 4 root root 4096 jul 31 11:50 .
drwxr-xr-x 21 root root 4096 mei 19 14:37 ..
drwxr-xr-x 2 fokke fokke 4096 jul 31 11:50 fokke
drwxrwxrwx 20 pi pi 4096 jul 24 14:09 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.
[C:\Program Files\JPSoft\TCCLE14x64]net view \\raspberrypi
System error 53 has occurred.
The network path was not found.
> 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.
[C:\Program Files\JPSoft\TCCLE14x64]net use s: \\raspberrypi\pishare
/user:fokke /persistent:no
The password or user name is invalid for \\raspberrypi\pishare.
Enter the password for 'fokke' to connect to 'raspberrypi':
System error 1326 has occurred.
The user name or password is incorrect.
[C:\Program Files\JPSoft\TCCLE14x64]net use s: \\raspberrypi\pishare
/user:pi persistent:no
System error 1326 has occurred.
The user name or password is incorrect.
> That works all in my environment: linux ubuntu, samba V 4.10.0, Windows
> 10 Ver 1809.
>
> Hope it helps!!!
>
Many thanks for your extensive help. Tried it all but it won't work :-(
Fokke
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)
|