Go to advanced search

by hortimech
Mon Sep 16, 2019 3:43 pm
Forum: Beginners
Topic: ARRRRGGGHHHH Its happened again! - Lost Samba settings
Replies: 46
Views: 631

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: 631

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: 631

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: 631

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: 631

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: 99

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: 631

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: 631

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: 99

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: 631

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: 416

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: 631

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: 416

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: 416

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: 106

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: 275

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: 275

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: 683

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 ...
by hortimech
Wed Aug 21, 2019 6:40 pm
Forum: Beginners
Topic: Installing Samba [SOLVED]
Replies: 9
Views: 275

Re: Installing Samba

Well, after removing all the comments and default lines, this is the effective smb.conf: [global] workgroup = workgroup idmap uid = 16777216-33554431 idmap gid = 16777216-33554431 winbind use default domain = false winbind offline logon = false username map = /etc/samba/smbusers guest ok = yes secur...
by hortimech
Wed Aug 21, 2019 4:12 pm
Forum: Beginners
Topic: Installing Samba [SOLVED]
Replies: 9
Views: 275

Re: Installing Samba

You can ignore that variable, if it isn't set, it will be blank and so ignored.

Does /etc/samba/smb.conf exist and if so, what does it contain ?
by hortimech
Wed Aug 21, 2019 11:15 am
Forum: Networking and servers
Topic: Server starts on wrong IP
Replies: 11
Views: 683

Re: Server starts on wrong IP

As I mentioned the problem was in this line: host = socket.gethostbyname(socket.gethostname()) It returned 127.0.1.1 which was wrong/confusing as Tornado server actually started on 10.0.0.11 The server starts on the same address 10.0.0.11 no mater if I have that line in /etc/hosts or not. If I dele...
by hortimech
Wed Aug 21, 2019 11:07 am
Forum: Beginners
Topic: Installing Samba [SOLVED]
Replies: 9
Views: 275

Re: Installing Samba

Yes :)



OH, you mean how do I fix this :D

Run these commands:

Code: Select all

sudo systemctl start smbd
sudo systemctl start nmbd

sudo systemctl enable smbd
sudo systemctl enable nmbd
by hortimech
Tue Aug 20, 2019 4:54 pm
Forum: Networking and servers
Topic: Server starts on wrong IP
Replies: 11
Views: 683

Re: Server starts on wrong IP

I just told you how to, comment '127.0.1.1' out in /etc/hosts, it will start using the correct IP supplied by dhcp, this comes up fairly frequently on the Samba mailing list.
by hortimech
Tue Aug 20, 2019 8:01 am
Forum: Networking and servers
Topic: Server starts on wrong IP
Replies: 11
Views: 683

Re: Server starts on wrong IP

Problem is that '127.0.1.1' doesn't appear in your output from 'ip a' Try looking in /etc/hosts, I think you will find something like this: 127.0.0.1 localhost ::1 localhost ip6-localhost ip6-loopback ff02::1 ip6-allnodes ff02::2 ip6-allrouters 127.0.1.1 raspberrypi If you are using dhcp, just comme...
by hortimech
Thu Aug 15, 2019 8:14 am
Forum: Networking and servers
Topic: Windows 10 permssions to Pi shared folder?
Replies: 9
Views: 1032

Re: Windows 10 permssions to Pi shared folder?

These are your effective shares: [homes] comment = Home Directories browseable = no create mask = 0700 directory mask = 0700 valid users = %S [printers] comment = All Printers browseable = no path = /var/spool/samba printable = yes create mask = 0700 [print$] comment = Printer Drivers path = /var/li...

Go to advanced search