Koozali.org: home of the SME Server

Obsolete Releases => SME Server 9.x => Topic started by: LANMonkey on August 31, 2016, 01:42:14 AM

Title: [SOLVED] Cannot mount Windows 10 share for backup
Post by: LANMonkey on August 31, 2016, 01:42:14 AM
I have a Public share available on my Windows desktop that I would like to use for backing up SME.  But, I am getting errors,

Code: [Select]
Backup of xxx.xxxxx.org started at Tue Aug 30 16:29:21 2016
*** No backup allowed or error during backup ***
Error while mounting <//10.0.0.XX/Users/Public/Backups>
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

Code: [Select]
Error while mounting <//10.0.0.XX/Users/Public/Backups>
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
Backup terminated: backup failed - status: 256

I can reach the same share using the same address (forward slashes changed to back slashes) on both the host computer and another LAN computer.  One thing I notice is that no password is required and you cannot leave the password blank in the Workstation Configuration page of the Administration site.  I've tried entering spaces, but that doesn't work.

Seems like a simple routine job, what is the procedure?  Or, how do I figure out what is going wrong?
Title: Re: Cannot mount Windows 10 share for backup
Post by: idp_qbn on September 01, 2016, 02:15:15 AM
I did something similar with a NAS box some time ago and this is what I did (as far as I can remember):

1) I created a user on the NAS box, which created a Windows share on the NAS.
2) I then used the username/password of the new NAS user in the "Configure Workstation backup" setup.

This setup worked well for 18 months or so, then we replaced it with a second SME Server running AFFA.

Hope this helps. I am sure there are other ways but I am not that savvy.

Cheers
Ian
Title: Re: Cannot mount Windows 10 share for backup
Post by: LANMonkey on September 01, 2016, 05:56:03 PM
idp_qpn, I've done the same thing on NAS4Free.  But doing the same thing on a windows machine is bound to be different.  That's where I am stuck.
Title: Re: Cannot mount Windows 10 share for backup
Post by: Stefano on September 01, 2016, 05:58:30 PM
Which W10 version are we talking about?
Title: Re: Cannot mount Windows 10 share for backup
Post by: LANMonkey on September 01, 2016, 06:12:17 PM
Which W10 version are we talking about?

This is Windows 10 Pro version 1511.
Title: Re: Cannot mount Windows 10 share for backup
Post by: Stefano on September 02, 2016, 10:14:07 AM
ok.. are them both (SME and W10) in the same workgroup?

BTW, try to mount it manually with
Code: [Select]
cd /mnt
mkdir w10test
mount -t cifs -o username=user,password=yourpassword //windowsmachineIP/share ./w10test

and see if the mount works.. if not, take a look at messages log and report back.. maybe M$ changes something (strange enough, isn't it?)
Title: Re: Cannot mount Windows 10 share for backup
Post by: LANMonkey on September 02, 2016, 06:29:44 PM
.. if not, take a look at messages log and report back..

Which logs do I look for?  I don't see anything in the "messages" log.  Is it a samba log?  There a few of them too. 
Title: Re: Cannot mount Windows 10 share for backup
Post by: LANMonkey on September 03, 2016, 01:06:41 AM
Other inquiries to CIFS logs say to search "messages" also.

My messages log is completely filled with the following:

Code: [Select]
Sep  2 15:57:51 xxxx php: PHP Fatal error:  Directive 'allow_call_time_pass_reference' is no longer available in PHP in Unknown on line 0

This is showing up every second, not every minute or hour, but every second.

A quick search of this forum suggests it has something to do with Horde.  If I get rid of it, might I see some clues about how to connect with a Public share on my Windows 10 workstation?  How might I get rid of it?

Here is what I found on the forum here:

https://forums.contribs.org/index.php/topic,50969.msg258611.html#msg258611
Title: Re: Cannot mount Windows 10 share for backup
Post by: LANMonkey on September 03, 2016, 07:19:03 PM
Other inquiries to CIFS logs say to search "messages" also.

My messages log is completely filled with the following:

Code: [Select]
Sep  2 15:57:51 xxxx php: PHP Fatal error:  Directive 'allow_call_time_pass_reference' is no longer available in PHP in Unknown on line 0

This is showing up every second, not every minute or hour, but every second.

A quick search of this forum suggests it has something to do with Horde.  If I get rid of it, might I see some clues about how to connect with a Public share on my Windows 10 workstation?  How might I get rid of it?

Here is what I found on the forum here:

https://forums.contribs.org/index.php/topic,50969.msg258611.html#msg258611

This is a bug:  https://bugs.contribs.org/show_bug.cgi?id=9416

I commented out (deleted) the relevant line and also did an upgrade and the problem appears to be gone.  Also some Samba software looks to be upgraded.  I'll see if things have changed and post later.
Title: Re: Cannot mount Windows 10 share for backup
Post by: LANMonkey on September 04, 2016, 11:47:33 PM
Success!  The problem was that in Windows 10 you can use two different passwords to log on to your account if you use your Microsoft (Hotmail, etc.) account password.  You can use the MS account password and also create PIN to log in, giving you two passwords.  If you are using the MS account or PIN to log in locally, to log into the share from a remote machine, you must use the MS account password and local user name.

This is a very handy tool, thanks to Stefano for posting it:

cd /mnt
mkdir w10test
mount -t cifs -o username=user,password=yourpassword //windowsmachineIP/share ./w10test


DON'T use the admin web site to troubleshoot connection problems for backup.  It is takes too much time.  Use the above commands from PuTTY.
Title: Re: [SOLVED] Cannot mount Windows 10 share for backup
Post by: guest22 on September 05, 2016, 06:14:16 AM
Should be wikinized.
Title: Re: [SOLVED] Cannot mount Windows 10 share for backup
Post by: Stefano on September 05, 2016, 09:57:25 AM
Success!  The problem was that in Windows 10 you can use two different passwords to log on to your account if you use your Microsoft (Hotmail, etc.) account password.  You can use the MS account password and also create PIN to log in, giving you two passwords.  If you are using the MS account or PIN to log in locally, to log into the share from a remote machine, you must use the MS account password and local user name.

windows, how do you want to get crazy today? (Cit.)