Go to advanced search

by hortimech
Thu Oct 10, 2019 8:11 am
Forum: Troubleshooting
Topic: samba home share allows (!) access without password
Replies: 5
Views: 162

Re: samba home share allows (!) access without password

I added 'guest ok = no' to the homes section of smb.conf and restarted smbd and nmbd on the pi, but the problem still persists. It would, you just added a default line. This is your 'homes' share: [homes] comment = Home Directories browseable = yes read only = no create mask = 0775 directory mask =...
by hortimech
Tue Oct 01, 2019 3:51 pm
Forum: Advanced users
Topic: Command Line Terminal in web window.
Replies: 2
Views: 198

Re: Command Line Terminal in web window.

Do you mean something like shellinabox ?
sudo apt-get install shellinabox
by hortimech
Sat Sep 28, 2019 11:28 am
Forum: Networking and servers
Topic: Slow samba server
Replies: 10
Views: 292

Re: Slow samba server

gkreidl wrote:
Sat Sep 28, 2019 7:59 am
I don't agree. The samba server itself may not be the cause of his problem, but this is what he experiences: slow samba transfers.

IMHO, the OP's bad transfer speed may be caused by the WiFi connection.
Then it isn't a Samba problem, it is a network problem.
by hortimech
Sat Sep 28, 2019 7:04 am
Forum: Networking and servers
Topic: Slow samba server
Replies: 10
Views: 292

Re: Slow samba server

Hi, could one of the moderators rename this thread, I am unsure what the OP's problem is, but it sure isn't a slow Samba :)
by hortimech
Fri Sep 27, 2019 6:21 pm
Forum: General discussion
Topic: Сannot see the shared disk on the computer
Replies: 11
Views: 370

Re: Сannot see the shared disk on the computer

Ace Combat wrote:
Fri Sep 27, 2019 4:23 pm
to hortimech:
Thanks, but what need to do if Win7 on PC?
Not entirely sure, I no longer use it because it went into extended support in 2015 and this ends in Jan 2020, but I would Imagen it entails turning SMBv1 off and making Network Discovery work instead.
by hortimech
Wed Sep 25, 2019 7:12 am
Forum: General discussion
Topic: Сannot see the shared disk on the computer
Replies: 11
Views: 370

Re: Сannot see the shared disk on the computer

I think what the OP is trying to say is that he has Samba running on the rpi, but cannot see any of his shares from a Windows PC. If this is the case and he is running the latest raspbian, he will be using Samba 4.9.5 and this isn't visible from Windows 10 because ntlm auth is turned off. Turning nt...
by hortimech
Thu Sep 19, 2019 7:24 am
Forum: Troubleshooting
Topic: Network share name different in Win 10 to Raspberry Pi folder name
Replies: 2
Views: 78

Re: Network share name different in Win 10 to Raspberry Pi folder name

I am prepared to bet that your smb.conf has a line like this '[nas], please post your smb.conf to prove it one way or the other.
by hortimech
Mon Sep 16, 2019 3:43 pm
Forum: Beginners
Topic: ARRRRGGGHHHH Its happened again! - Lost Samba settings
Replies: 46
Views: 977

Re: ARRRRGGGHHHH Its happened again! - Lost Samba settings

Would you like to try our documentation ? https://wiki.samba.org/index.php/Setting_up_Samba_as_a_Standalone_Server That page you pointed to is okay as far as it goes, but it doesn't tell you why you should do things and it gets things wrong and adds default settings to smb.conf, the sample one provi...
by hortimech
Mon Sep 16, 2019 12:17 pm
Forum: Beginners
Topic: ARRRRGGGHHHH Its happened again! - Lost Samba settings
Replies: 46
Views: 977

Re: ARRRRGGGHHHH Its happened again! - Lost Samba settings

Is the ntfs-3g package installed ?
If it isn't install it
If it is, try adding these lines to your smb.conf:

Code: Select all

allow insecure wide links = yes
wide links = yes
by hortimech
Mon Sep 16, 2019 10:11 am
Forum: Beginners
Topic: ARRRRGGGHHHH Its happened again! - Lost Samba settings
Replies: 46
Views: 977

Re: ARRRRGGGHHHH Its happened again! - Lost Samba settings

Is there anything in the log file now ?
look in /var/log/samba/log.%m , where '%m' should a computer name

If not, add 'log level = 3' to smb.conf, restart smbd and try again

Is 'SMBv1' allowed on your Win10 computer ?
by hortimech
Mon Sep 16, 2019 9:36 am
Forum: Beginners
Topic: ARRRRGGGHHHH Its happened again! - Lost Samba settings
Replies: 46
Views: 977

Re: ARRRRGGGHHHH Its happened again! - Lost Samba settings

OK, try this smb.conf: [global] log file = /var/log/samba/log.%m logging = file map to guest = Bad User max log size = 1000 obey pam restrictions = Yes pam password change = Yes panic action = /usr/share/samba/panic-action %d server role = standalone server unix password sync = Yes usershare allow g...
by hortimech
Mon Sep 16, 2019 9:13 am
Forum: Beginners
Topic: ARRRRGGGHHHH Its happened again! - Lost Samba settings
Replies: 46
Views: 977

Re: ARRRRGGGHHHH Its happened again! - Lost Samba settings

OK, that shows that 'smbd' is running, but 'nmbd' isn't, you only really need 'nmbd' for network browsing, so that shouldn't be your problem. Running: smbclient -L localhost -N Should produce output like this: Unable to initialize messaging context Anonymous login successful Sharename Type Comment -...
by hortimech
Mon Sep 16, 2019 8:47 am
Forum: Troubleshooting
Topic: Samba uses machine name instead of netbios name.
Replies: 4
Views: 204

Re: Samba uses machine name instead of netbios name.

There are two ways to find a Samba machine, network browsing and via dns. If you use dns, the NetBIOS name must the same as the computers short hostname, but if you use network browsing, I suppose you could use any valid name. However, I cannot really see any valid reason to do this. It would be eas...
by hortimech
Mon Sep 16, 2019 8:22 am
Forum: Beginners
Topic: ARRRRGGGHHHH Its happened again! - Lost Samba settings
Replies: 46
Views: 977

Re: ARRRRGGGHHHH Its happened again! - Lost Samba settings

I'm beginning to wonder whether this is something to do with windows 10 deprecating Workgroups? When did they do that ? I have these lines in smb.conf: client min protocol = SMB2_02 server min protocol = SMB2_02 I run wsdd.py from here: https://github.com/christgau/wsdd Everything works :) if you r...
by hortimech
Sun Sep 15, 2019 5:26 pm
Forum: Beginners
Topic: ARRRRGGGHHHH Its happened again! - Lost Samba settings
Replies: 46
Views: 977

Re: ARRRRGGGHHHH Its happened again! - Lost Samba settings

Now getting:- smbclient -L localhost -N Unable to initialize messaging context Anonymous login successful tree connect failed: NT_STATUS_ACCESS_DENIED ??????????? Strange, on my rpi I get: Unable to initialize messaging context Anonymous login successful Sharename Type Comment --------- ---- ------...
by hortimech
Sun Sep 15, 2019 8:51 am
Forum: Troubleshooting
Topic: Samba uses machine name instead of netbios name.
Replies: 4
Views: 204

Re: Samba uses machine name instead of netbios name.

There is a valid reason why this is happening, the NetBIOS name MUST be the computers hostname, you cannot change what is displayed on Windows by setting the 'netbios name' parameter.
by hortimech
Sat Sep 14, 2019 1:15 pm
Forum: Beginners
Topic: ARRRRGGGHHHH Its happened again! - Lost Samba settings
Replies: 46
Views: 977

Re: ARRRRGGGHHHH Its happened again! - Lost Samba settings

sorry, by mydir as was referring to my actual dir which is 'CCTV_In'. I've just loaded 'sudo apt-get install smbclient', I thought all the stuff to do with Samba would have been loaded together? Thanks, will start checks again. ran that code and got smbclient -L -N Unable to initialize messaging co...
by hortimech
Sat Sep 14, 2019 7:13 am
Forum: Networking and servers
Topic: Make RPi show in Network List in Windows 8 or 10
Replies: 9
Views: 569

Re: Make RPi show in Network List in Windows 8 or 10

Yes that NetBIOS domain name is too long, by 'RKGROUP'. You are limited to 15 characters :) People really must get used to the lack of Network Browsing, the protocols it relies on are going away and by default they will be deprecated in Samba 4.11.0 (the next, imminent version) and then, bit by bit,...
by hortimech
Fri Sep 13, 2019 7:19 pm
Forum: Beginners
Topic: ARRRRGGGHHHH Its happened again! - Lost Samba settings
Replies: 46
Views: 977

Re: ARRRRGGGHHHH Its happened again! - Lost Samba settings

You posted " 'windows cannot access 'mydir' ", but you do not have a share called 'mydir'

To use smbclient, you will have to install it, 'sudo apt-get install smbclient'

After you install it, try this:

Code: Select all

smbclient -L -N
by hortimech
Sun Sep 08, 2019 9:53 am
Forum: Networking and servers
Topic: Make RPi show in Network List in Windows 8 or 10
Replies: 9
Views: 569

Re: Make RPi show in Network List in Windows 8 or 10

On another note, while SMB3 is said to be a good protocol, it does not support the Unix extensions present in SMB1. There have been proposals to rectify this, but the code is experimental and not included by default. Fortunately this only affects mounting Samba shares from one Pi to another Pi, whi...
by hortimech
Sat Sep 07, 2019 8:20 pm
Forum: Networking and servers
Topic: Make RPi show in Network List in Windows 8 or 10
Replies: 9
Views: 569

Re: Make RPi show in Network List in Windows 8 or 10

Or you could use a version of Web Service Discovery for Linux: https://github.com/christgau/wsdd
This is the protocol Windows is using instead of network browsing.
by hortimech
Tue Sep 03, 2019 12:14 pm
Forum: Beginners
Topic: Seeing SAMBA shared in Windows 10 Network display
Replies: 3
Views: 124

Re: Seeing SAMBA shared in Windows 10 Network display

Windows 10 has SMBv1 turned off by default, you need SMBv1 for network browsing. Windows now uses 'network discovery' instead, but unless you install wdds.py (a python3 script), Linux machines are not visible to Windows.

For Linux to Linux network browsing, Avahi is now being used.
by hortimech
Fri Aug 23, 2019 8:19 am
Forum: Beginners
Topic: Installing Samba [SOLVED]
Replies: 9
Views: 331

Re: Installing Samba [SOLVED]

Bit lost now, If you now install winbind, I could talk you through provisioning a Samba AD DC, or to put it another way, you do not need most of the packages you installed. By installing the 'samba' package, you should get these packages installed as well: python-dnspython python-samba samba-common ...
by hortimech
Thu Aug 22, 2019 10:47 am
Forum: Beginners
Topic: Installing Samba [SOLVED]
Replies: 9
Views: 331

Re: Installing Samba

What OS are you using ? If it is raspbian, the default smb.conf, with all commented lines removed (lines that start with '#' or ';') looks like this: [global] workgroup = WORKGROUP log file = /var/log/samba/log.%m max log size = 1000 logging = file panic action = /usr/share/samba/panic-action %d ser...
by hortimech
Wed Aug 21, 2019 7:00 pm
Forum: Networking and servers
Topic: Server starts on wrong IP
Replies: 11
Views: 787

Re: Server starts on wrong IP

I am also running the latest Raspbian and it works for me, so there must be something else going on here. How is the ipaddress being set ? Is it a static ip or is it set via dhcp. If the latter, it should work, but if is a static IP, then don't comment the line, but change '127.0.1.1' to the static ...

Go to advanced search