Go to advanced search

by hortimech
Tue Jun 11, 2019 4:34 pm
Forum: Troubleshooting
Topic: Windows explorer can no longer see my Pi shared drive
Replies: 5
Views: 107

Re: Windows explorer can no longer see my Pi shared drive

I think your problem is the setup you have chosen, your BT router will probably be a homehub, This is a combined router and modem, in its present setup it should now just be setup as modem with everything else turned off (wifi, dhcp etc) One would be to make your netgear router into just an Access p...
by hortimech
Sat Jun 08, 2019 6:53 am
Forum: General discussion
Topic: script problem (again) - scratching my head...
Replies: 9
Views: 303

Re: script problem (again) - scratching my head...

Well, no and yes :D
You don't actually need it, if your script works for you, then you are okay without it, but if you want to learn how to use shell script better, then it can point you to any errors.
by hortimech
Fri Jun 07, 2019 6:58 am
Forum: General discussion
Topic: script problem (again) - scratching my head...
Replies: 9
Views: 303

Re: script problem (again) - scratching my head...

Yes , I always run my scripts through shellcheck, that's why it was '/bin/dash', I suppose I could have used '/bin/sh' instead, the result would have been the same, the suggested script wasn't portable. Why did I set it to '/bin/dash' ? Just to test the script, my default shell is '/bin/bash' so 'as...
by hortimech
Thu Jun 06, 2019 8:29 am
Forum: General discussion
Topic: script problem (again) - scratching my head...
Replies: 9
Views: 303

Re: script problem (again) - scratching my head...

Very nice changes, but it isn't portable, what if the OP is using dash ? The first problem that would be hit is that dash doesn't use arrays :) Try this instead: #!/bin/bash NAM=$(basename "$0") KODIDISK1="/tmp/one" KODIDISK2="/tmp/two" fcp_usage () { cat<<EOF ${NAM}: [ --help | -h ] ${NAM}: [ video...
by hortimech
Sun Jun 02, 2019 7:51 am
Forum: Troubleshooting
Topic: Samba problem with chars like é and ó
Replies: 7
Views: 505

Re: Samba problem with chars like é and ó

I take it you are mounting the drive somehow, so try adding '-o utf8'
by hortimech
Sun Jun 02, 2019 7:44 am
Forum: Troubleshooting
Topic: Samba file sharing setup help please
Replies: 13
Views: 297

Re: Samba file sharing setup help please

Well, the rpi Samba documentation seems to be getting better :) The example share is this: [share] path = /home/pi/shared read only = no public = yes writable = yes Just two problems, if you look carefully you will see that if something is not 'read only' it is writable and something that is writabl...
by hortimech
Sat Jun 01, 2019 7:28 am
Forum: Troubleshooting
Topic: Samba file sharing setup help please
Replies: 13
Views: 297

Re: Samba file sharing setup help please

Why are you still using Raspbian Jessie ? The cause of your problem is still SMBv1, your version of Samba uses it by default, but Windows 10 doesn't and you only get network browsing with SMBv1. It isn't used any more because it is insecure, I would upgrade to Raspbian Stretch and get used to either...
by hortimech
Fri May 31, 2019 7:53 pm
Forum: Troubleshooting
Topic: Samba file sharing setup help please
Replies: 13
Views: 297

Re: Samba file sharing setup help please

No it is probably because SMBv1 is off on Samba 4.5.x by default, you need SMBv1 for network browsing.
Is it possible to navigate to the share by its UNC ?
by hortimech
Fri May 17, 2019 6:06 pm
Forum: Troubleshooting
Topic: Windows 2003 server can not connect to SAMBA shares
Replies: 4
Views: 118

Re: Windows 2003 server can not connect to SAMBA shares

Lets get this out of the way, Windows server 2003, like XP, is EOL, so getting updates for it will be slim (a few days ago I would have said impossible, but then Microsoft went and released a security release) It is likely that your windows server is trying to speak in NTLMv1 and Samba, like the oth...
by hortimech
Mon May 13, 2019 7:06 am
Forum: Troubleshooting
Topic: Connecting to my Windows 7 network
Replies: 65
Views: 941

Re: Connecting to my Windows 7 network

Valiant effort guys,, this chap will see his files eh ;) I think that this might just be all the OP needs to sit down and read? https://kodi.wiki/view/Adding_video_sources If not it may just get everyone using the same language, so we can centre in on the actual issue here? No, it's more likely to ...
by hortimech
Sun May 12, 2019 7:46 pm
Forum: Troubleshooting
Topic: Connecting to my Windows 7 network
Replies: 65
Views: 941

Re: Connecting to my Windows 7 network

Don't bother, if you had to install Samba you weren't using it, and I know exactly what is in your new smb.conf

You might as well remove Samba, you obviously do not need it, but I still think NTLMv1 is at the root of your problem, perhaps your Win7 PC is using it instead of NTLMv2
by hortimech
Sun May 12, 2019 7:31 am
Forum: Troubleshooting
Topic: Connecting to my Windows 7 network
Replies: 65
Views: 941

Re: Connecting to my Windows 7 network

OK, from what I have read, you are trying to connect via SMB and it doesn't work, try adding 'ntlm auth = yes' to your smb.conf (it will be in /etc/samba). Restart Samba and see if this cures your problem. If it doesn't, please post your smb.conf, but, before posting, remove all lines that start wit...
by hortimech
Fri May 10, 2019 8:57 pm
Forum: Troubleshooting
Topic: Connecting to my Windows 7 network
Replies: 65
Views: 941

Re: Connecting to my Windows 7 network

What do you mean how? I already said it on my first post. What else do you want to know? Linking the ethernet cable to the modem, checking the IPv4 on my W7, loading that in Kodi under SMB protocol, and getting nothing. That could have meant anything, you could be connecting from the other side of ...
by hortimech
Fri May 10, 2019 11:55 am
Forum: Troubleshooting
Topic: Connecting to my Windows 7 network
Replies: 65
Views: 941

Re: Connecting to my Windows 7 network

Of course, the obvious question is, how are you trying to connect ?
by hortimech
Fri Apr 19, 2019 12:24 pm
Forum: Troubleshooting
Topic: Samba client keeps asking for password and can't login.
Replies: 11
Views: 5090

Re: Samba client keeps asking for password and can't login.

Why are you forcing everyone to be 'root' ? this is very insecure.

Talking off insecure, this is possibly your problem, the version of Samba that comes with raspbian has NTLMv1 turned off, but your Windows clients may not have, try adding 'ntlm auth = yes' to smb.conf and see if this helps.
by hortimech
Sun Mar 24, 2019 12:19 pm
Forum: Troubleshooting
Topic: Samba Error in RPi3B
Replies: 8
Views: 235

Re: Samba Error in RPi3B

Hmm, 'max server protocol = NT1' should work, is SMBv1 turned off on the client as well ?

You need SMBv1 for network browsing and, as it is very insecure, it is now usually turned off by default. It is being replaced by mapping drives, connecting to a UNC or by 'Network Discovery' on Windows.
by hortimech
Sun Mar 24, 2019 9:55 am
Forum: Troubleshooting
Topic: Samba Error in RPi3B
Replies: 8
Views: 235

Re: Samba Error in RPi3B

There is a good reason why 'max protocol = SMB1' doesn't work, the 'SMB1' part doesn't exist!
Try this instead 'server max protocol = NT1'

You also better get used to no network browsing, it is going away.
by hortimech
Thu Mar 21, 2019 4:43 pm
Forum: Beginners
Topic: Sharing an existing folder using Samba
Replies: 27
Views: 1323

Re: Sharing an existing folder using Samba

I'd be happy to accept a pull request on changes to the docs in this area. And I would be quite willing to totally rewrite your Samba page, just not on git-hub , we left there and went to git-lab. I am a member of the Samba team and I have been trying, for some time, to point out to the Rpi team th...
by hortimech
Thu Mar 21, 2019 11:12 am
Forum: Beginners
Topic: Sharing an existing folder using Samba
Replies: 27
Views: 1323

Re: Sharing an existing folder using Samba

Hmm, you have this: drwxr-x---+ 5 root root 4096 Mar 21 10:42 pi This means that only root can read, write and enter the 'pi' directory, members of the root group can read and enter the 'pi' directory, 'others' are denied any access, but this isn't the full picture. If you examine the permissions, y...
by hortimech
Wed Mar 20, 2019 9:29 pm
Forum: Beginners
Topic: SMB Samba Share - HELP ME PLEASE! :)
Replies: 10
Views: 267

Re: SMB Samba Share - HELP ME PLEASE! :)

smbstatus shows connections not shares, try 'smbclient -L localhost'
When prompted for a password, just press 'enter'
by hortimech
Wed Mar 20, 2019 4:33 pm
Forum: Beginners
Topic: Sharing an existing folder using Samba
Replies: 27
Views: 1323

Re: Sharing an existing folder using Samba

Hi Hortimech, Thanks for your answers. The permission thing, rwx and groups/users, I was ok with. Probably one of the few things I remember from my UNIX days. But what I can't understand is why I get message telling me I don't have access to the server when I try to connect the share, Z1_Disk, to m...
by hortimech
Wed Mar 20, 2019 4:14 pm
Forum: Beginners
Topic: SMB Samba Share - HELP ME PLEASE! :)
Replies: 10
Views: 267

Re: SMB Samba Share - HELP ME PLEASE! :)

mrsharpey wrote:
Wed Mar 20, 2019 3:52 pm
Thanks for the replies so far. From what I can gather the share isn't being created whatsoever.
What do you mean by <isn't being created> ?
Samba doesn't create the share folder, you have to.
by hortimech
Wed Mar 20, 2019 9:12 am
Forum: Beginners
Topic: SMB Samba Share - HELP ME PLEASE! :)
Replies: 10
Views: 267

Re: SMB Samba Share - HELP ME PLEASE! :)

It’s possibly the version of SMB you are running. By default Samba uses SMBv1 and Windows has removed that :roll: And if Debian was using a supported Samba version, Raspbian wouldn't be using SMBv1 either. You could try: 1) Enable SMBv1 on the PC again 2) Configure min protocol as SMB2 - see https:...
by hortimech
Tue Mar 19, 2019 2:02 pm
Forum: Beginners
Topic: Sharing an existing folder using Samba
Replies: 27
Views: 1323

Re: Sharing an existing folder using Samba

OK, if we examine one of those permission lines we find this: drwxrwxrwx 3 root root 4096 Mar 15 14:55 /media/pi/Z3_Disk The first block 'drwxrwxrwx' are the permissions The third and fourth are the owner & group The last is the path to the directory Breaking the permissions down, it becomes this: d...

Go to advanced search