as per subject line cannot connect to osmc share from windows 10, the user name or password is incorrect System error 1326
I have enabled SMB 1 in Windows months ago and this has been working up until yesterday, now all I get is incorrect username and password. I can SSH into my Rapsberry PI and have reset the password, rebooted both, also ran apt-get distro-upgrade on the PI and Windows updates (18363:778)
I have looked for answers for a day now and cannot find anything that helps me.
If anyone can assist that would be great! I have plenty of free time
Well would have been helpful if you sould have provided the logs from OSMC via grab-logs -A, anyhow you can try:
Either from Win10 cmd net use * /del and then net use \\<IP of OSMC>\osmc /user:osmc
Or Start > Control Panel > User Accounts > Credential Manager to clear all OSMC records.
I have run grab-logs Logs available at https://paste.osmc.tv/canuqavezu. I never knew that was a command.
C:\Users\Stuart>net use * /del
There are no entries in the list.
C:\Users\Stuart>net use \192.168.1.7\osmc /user:osmc
System error 53 has occurred.
The network path was not found.
C:\Users\Stuart>net use \osmc-lounge
The password or user name is invalid for \osmc-lounge.
Enter the user name for ‘osmc-lounge’: osmc
Enter the password for osmc-lounge:
System error 1326 has occurred.
The user name or password is incorrect.
C:\Users\Stuart>ping -a 192.168.1.7
Pinging OSMC-LOUNGE [192.168.1.7] with 32 bytes of data:
Reply from 192.168.1.7: bytes=32 time=3ms TTL=64
Reply from 192.168.1.7: bytes=32 time=6ms TTL=64
Reply from 192.168.1.7: bytes=32 time=8ms TTL=64
Reply from 192.168.1.7: bytes=32 time=6ms TTL=64
Ping statistics for 192.168.1.7:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 3ms, Maximum = 8ms, Average = 5ms
osmc@osmc-lounge:~$ sudo apt-get install samba
Reading package lists… Done
Building dependency tree
Reading state information… Done
samba is already the newest version (2:4.5.16+dfsg-1+deb9u2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
Setting up samba (2:4.5.16+dfsg-1+deb9u2) …
Failed to preset unit: Unit file /etc/systemd/system/samba-ad-dc.service is masked.
/usr/bin/deb-systemd-helper: error: systemctl preset failed on samba-ad-dc.service: No such file or directory
Job for smbd.service failed because the control process exited with error code.
See “systemctl status smbd.service” and “journalctl -xe” for details.
invoke-rc.d: initscript smbd, action “start” failed.
osmc@osmc-lounge:~$ sudo apt-get remove --purge smb-app-osmc samba
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following packages were automatically installed and are no longer required:
libfile-copy-recursive-perl python-dnspython tdb-tools update-inetd
Use ‘sudo apt autoremove’ to remove them.
The following packages will be REMOVED:
samba* smb-app-osmc*
0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
After this operation, 10.8 MB disk space will be freed.
Do you want to continue? [Y/n] Y
(Reading database … 28167 files and directories currently installed.)
Removing smb-app-osmc (1.2.2) …
Removing ‘diversion of /etc/samba/smb.conf to /etc/samba/smb.conf.distributed by smb-app-osmc’
Removing ‘diversion of /etc/init.d/samba to /etc/init.d/samba.distributed by smb-app-osmc’
Removing ‘diversion of /lib/systemd/system/samba.service to /lib/systemd/system/samba.service.distributed by smb-app-osmc’
Removing samba (2:4.5.16+dfsg-1+deb9u2) …
Processing triggers for libc-bin (2.24-11+deb9u4) …
(Reading database … 27970 files and directories currently installed.)
Purging configuration files for samba (2:4.5.16+dfsg-1+deb9u2) …
Purging configuration files for smb-app-osmc (1.2.2) …
Processing triggers for systemd (232-25+deb9u12) …
osmc@osmc-lounge:~$ sudo apt-get autoremove
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following packages will be REMOVED:
libfile-copy-recursive-perl python-dnspython tdb-tools update-inetd
0 upgraded, 0 newly installed, 4 to remove and 0 not upgraded.
After this operation, 845 kB disk space will be freed.
Do you want to continue? [Y/n] Y
(Reading database … 27959 files and directories currently installed.)
Removing update-inetd (4.44) …
Removing libfile-copy-recursive-perl (0.38-1) …
Removing python-dnspython (1.15.0-1+deb9u1) …
Removing tdb-tools (1.3.11-2) …
osmc@osmc-lounge:~$ sudo rm -r /etc/samba/
osmc@osmc-lounge:~$ sudo apt-get install samba
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following additional packages will be installed:
libfile-copy-recursive-perl python-dnspython tdb-tools update-inetd
Suggested packages:
bind9 bind9utils ctdb ldb-tools smbldap-tools winbind ufw
Recommended packages:
attr logrotate samba-dsdb-modules samba-vfs-modules
The following NEW packages will be installed:
libfile-copy-recursive-perl python-dnspython samba tdb-tools update-inetd
0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
Need to get 1051 kB of archives.
After this operation, 11.5 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 Index of /debian stretch/main armhf python-dnspython all 1.15.0-1+deb9u1 [102 kB]
Get:2 Index of /debian stretch/main armhf tdb-tools armhf 1.3.11-2 [25.7 kB]
Get:3 Index of /debian stretch/main armhf libfile-copy-recursive-perl all 0.38-1 [20.6 kB]
Get:4 Index of /debian stretch/main armhf update-inetd all 4.44 [20.8 kB]
Get:5 Index of /debian stretch/main armhf samba armhf 2:4.5.16+dfsg-1+deb9u2 [882 kB]
Fetched 1051 kB in 2s (392 kB/s)
Preconfiguring packages …
Selecting previously unselected package python-dnspython.
(Reading database … 27817 files and directories currently installed.)
Preparing to unpack …/python-dnspython_1.15.0-1+deb9u1_all.deb …
Unpacking python-dnspython (1.15.0-1+deb9u1) …
Selecting previously unselected package tdb-tools.
Preparing to unpack …/tdb-tools_1.3.11-2_armhf.deb …
Unpacking tdb-tools (1.3.11-2) …
Selecting previously unselected package libfile-copy-recursive-perl.
Preparing to unpack …/libfile-copy-recursive-perl_0.38-1_all.deb …
Unpacking libfile-copy-recursive-perl (0.38-1) …
Selecting previously unselected package update-inetd.
Preparing to unpack …/update-inetd_4.44_all.deb …
Unpacking update-inetd (4.44) …
Selecting previously unselected package samba.
Preparing to unpack …/samba_2%3a4.5.16+dfsg-1+deb9u2_armhf.deb …
Unpacking samba (2:4.5.16+dfsg-1+deb9u2) …
Setting up python-dnspython (1.15.0-1+deb9u1) …
Processing triggers for libc-bin (2.24-11+deb9u4) …
Processing triggers for systemd (232-25+deb9u12) …
Setting up tdb-tools (1.3.11-2) …
update-alternatives: using /usr/bin/tdbbackup.tdbtools to provide /usr/bin/tdbbackup (tdbbackup) in auto mode
Setting up libfile-copy-recursive-perl (0.38-1) …
Setting up update-inetd (4.44) …
Setting up samba (2:4.5.16+dfsg-1+deb9u2) …
Samba is not being run as an AD Domain Controller, masking samba-ad-dc-service.
Please ignore the following error about deb-systemd-helper not finding samba-ad-dc-service.
Created symlink /etc/systemd/system/multi-user.target.wants/nmbd.service → /lib/systemd/system/nmbd.service.
Failed to preset unit: Unit file /etc/systemd/system/samba-ad-dc.service is masked.
/usr/bin/deb-systemd-helper: error: systemctl preset failed on samba-ad-dc.service: No such file or directory
Created symlink /etc/systemd/system/multi-user.target.wants/smbd.service → /lib/systemd/system/smbd.service.
Job for smbd.service failed because the control process exited with error code.
See “systemctl status smbd.service” and “journalctl -xe” for details.
invoke-rc.d: initscript smbd, action “start” failed.
Apr 30 19:46:07 osmc-lounge systemd[1]: Starting Samba SMB Daemon…
Apr 30 19:46:07 osmc-lounge systemd[1]: smbd.service: Main process exited, code=exited, status=1/FAILURE
Apr 30 19:46:07 osmc-lounge systemd[1]: Failed to start Samba SMB Daemon.
Apr 30 19:46:07 osmc-lounge systemd[1]: smbd.service: Unit entered failed state.
Apr 30 19:46:07 osmc-lounge systemd[1]: smbd.service: Failed with result ‘exit-code’.
dpkg: error processing package samba (–configure):
subprocess installed post-installation script returned error exit status 1
Processing triggers for libc-bin (2.24-11+deb9u4) …
Processing triggers for systemd (232-25+deb9u12) …
Errors were encountered while processing:
samba
E: Sub-process /usr/bin/dpkg returned an error code (1)
osmc@osmc-lounge:~$ sudo apt-get install samba
Reading package lists… Done
Building dependency tree
Reading state information… Done
samba is already the newest version (2:4.5.16+dfsg-1+deb9u2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
Setting up samba (2:4.5.16+dfsg-1+deb9u2) …
Failed to preset unit: Unit file /etc/systemd/system/samba-ad-dc.service is masked.
/usr/bin/deb-systemd-helper: error: systemctl preset failed on samba-ad-dc.service: No such file or directory
Job for smbd.service failed because the control process exited with error code.
See “systemctl status smbd.service” and “journalctl -xe” for details.
invoke-rc.d: initscript smbd, action “start” failed.