Go to advanced search

by hortimech
Fri Aug 23, 2019 8:19 am
Forum: Beginners
Topic: Installing Samba [SOLVED]
Replies: 9
Views: 216

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

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

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

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

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

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

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

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

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

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...
by hortimech
Thu Aug 15, 2019 7:45 am
Forum: Troubleshooting
Topic: Stuck installing Samba on Pi-4 running Buster
Replies: 7
Views: 201

Re: Stuck installing Samba on Pi-4 running Buster

andrum99 wrote:
Thu Aug 15, 2019 6:37 am
Feel free to submit a PR to update the docs - there's even a direct link at the bottom of the page to the github repo ;)
Quite prepared to do this, but not on git-hub, we left there and went to git-lab, so I deleted my membership and I will not rejoin :)
by hortimech
Wed Aug 14, 2019 6:43 pm
Forum: Networking and servers
Topic: Windows 10 permssions to Pi shared folder?
Replies: 9
Views: 329

Re: Windows 10 permssions to Pi shared folder?

Sorry but even the Samba site has such statements as: or set it to Never (default) :lol: Advantage is that you then can see what values are set to for that share. Thanks for pointing out that error on the Samba wiki, I have fixed it :D As I said, what you do, is up to you, but you shouldn't pass yo...
by hortimech
Wed Aug 14, 2019 5:06 pm
Forum: Networking and servers
Topic: Windows 10 permssions to Pi shared folder?
Replies: 9
Views: 329

Re: Windows 10 permssions to Pi shared folder?

We have had this discussion before - I put defaults in just in case they change from version to version and the home folder is shared to simplify my development work! Do you have any other values that could solve the OPs issues? What you do is up to you, but you should stick to best practise when g...
by hortimech
Wed Aug 14, 2019 11:03 am
Forum: Networking and servers
Topic: Windows 10 permssions to Pi shared folder?
Replies: 9
Views: 329

Re: Windows 10 permssions to Pi shared folder?

In the share sections I have: available = yes browsable = yes writeable = yes create mask = 0644 directory mask = 0755 public = no You might just as well have these lines: read only = no create mask = 0644 All the rest are default settings :) Also, it isn't best practise to share a users home direc...
by hortimech
Wed Aug 14, 2019 7:48 am
Forum: Troubleshooting
Topic: Stuck installing Samba on Pi-4 running Buster
Replies: 7
Views: 201

Re: Stuck installing Samba on Pi-4 running Buster

First who writes the documentation for Raspberrypi ? That documentation referred to, is a mess, why reference wikipedia when Samba has its own wiki / For a page that is about setting up Samba on a Raspberrypi, it seems to have a lot to say about Windows (and no, you don't need to turn Network Discov...
by hortimech
Tue Aug 13, 2019 8:09 am
Forum: Troubleshooting
Topic: Buster can't see other computers on network
Replies: 9
Views: 320

Re: Buster can't see other computers on network

No, I am not saying that you cannot browse the network with Buster, you just do it another way. Buster will use Avahi for browsing instead of netbios, but Windows doesn't have Avahi.

Yes, network browsing is a feature, but it is an insecure feature.
by hortimech
Mon Aug 12, 2019 4:04 pm
Forum: Troubleshooting
Topic: Buster can't see other computers on network
Replies: 9
Views: 320

Re: Buster can't see other computers on network

Yes, you are quite right, you shouldn't use SMBv1 because it is insecure, Windows is turning it off and it will be turn off in the next version of Samba (4.11.0). Unfortunately, turning off SMBv1 also turns off network browsing, Windows now has 'network discovery', but this only works with Windows m...
by hortimech
Mon Aug 12, 2019 9:53 am
Forum: Troubleshooting
Topic: Buster can't see other computers on network
Replies: 9
Views: 320

Re: Buster can't see other computers on network

# interface names are normally preferred ; interfaces = 127.0.0.0/8 eth0 # Only bind to the named interfaces and/or networks; you must use the # 'interfaces' option above to use this. # It is recommended that you enable this feature if your Samba machine is # not protected by a firewall or is a fir...
by hortimech
Mon Aug 12, 2019 8:11 am
Forum: Troubleshooting
Topic: Buster can't see other computers on network
Replies: 9
Views: 320

Re: Buster can't see other computers on network

Your effective smb.conf is this: [global] workgroup = KPJLXP log file = /var/log/samba/log.%m max log size = 1000 logging = file panic action = /usr/share/samba/panic-action %d server role = standalone server obey pam restrictions = yes unix password sync = yes passwd program = /usr/bin/passwd %u pa...
by hortimech
Sun Aug 11, 2019 4:32 pm
Forum: Troubleshooting
Topic: Buster can't see other computers on network
Replies: 9
Views: 320

Re: Buster can't see other computers on network

Can you post your entire smb.conf, mainly because if you remove the commented lines, what you posted becomes this:

Code: Select all

[global]
workgroup = KPJLXP
wins server = 192.168.0.210
and this is nowhere near enough
by hortimech
Wed Aug 07, 2019 7:14 am
Forum: Beginners
Topic: How to move to the next line when entering a multi-line script
Replies: 5
Views: 166

Re: How to move to the next line when entering a multi-line script

And a quick google search found that the OP is using the WRONG script.

See here: https://github.com/e1ioan/rokuphp and use the 'install.sh' script instead.
by hortimech
Wed Aug 07, 2019 7:05 am
Forum: Beginners
Topic: How to move to the next line when entering a multi-line script
Replies: 5
Views: 166

Re: How to move to the next line when entering a multi-line script

I'm not even going to ask why you want to install the outdated PHP5 instead of using the current PHP7. It isn't that the OP wants to install php5, it is the script that does. It does this without telling the user that probably nothing else that needs php will work. I would be going back to Roku and...
by hortimech
Tue Aug 06, 2019 7:19 am
Forum: Networking and servers
Topic: ip camera recordings to samba server
Replies: 11
Views: 440

Re: ip camera recordings to samba server

[2019/08/05 10:19:45.783884, 0] ../source4/smbd/server.c:587(binary_smbd_main) samba version 4.9.5-Debian started. Copyright Andrew Tridgell and the Samba Team 1992-2018 [2019/08/05 10:19:45.974752, 0] ../source4/smbd/server.c:743(binary_smbd_main) At this time the 'samba' binary should only be use...
by hortimech
Sun Aug 04, 2019 12:41 pm
Forum: Networking and servers
Topic: ip camera recordings to samba server
Replies: 11
Views: 440

Re: ip camera recordings to samba server

Either your smb.conf is misconfigured, or 'samba-ad-dc' is attempting to start. To put this in layman's terms, your smb.conf is set up as a standalone server and something is trying to start Samba as an Active Directory Domain Controller, or so it seems. Try running these commands: sudo systemctl di...
by hortimech
Sat Aug 03, 2019 7:45 am
Forum: Troubleshooting
Topic: How do I enable Samba on Buster
Replies: 7
Views: 330

Re: How do I enable Samba on Buster

Thanks, it is a pity the Foundation tutorial doesn't mention this. It might not (and yes it should), but our wikipage does: https://wiki.samba.org/index.php/Setting_up_Samba_as_a_Standalone_Server I also wish that when people posted examples, they stuck to best practices, 'Andyroo' posted this: [xx...

Go to advanced search