Go to advanced search

by hortimech
Tue Jan 15, 2019 3:07 pm
Forum: Beginners
Topic: Raspberry Samba/CIFS Documentation incomplete?
Replies: 9
Views: 358

Re: Raspberry Samba/CIFS Documentation incomplete?

It wasn't until after my last post that I realised something. You cannot use 'valid user' with 'guest ok'. If you have 'valid user = pi', then only 'pi' will be able to connect, even if 'guest ok = yes' is set. If you try to connect as a guest user (this is a user unknown to the OS and Samba), you w...
by hortimech
Tue Jan 15, 2019 11:51 am
Forum: Beginners
Topic: Raspberry Samba/CIFS Documentation incomplete?
Replies: 9
Views: 358

Re: Raspberry Samba/CIFS Documentation incomplete?

We (Samba) have moved from git-hub to git-lab, so I have no need for a git-hub account. It was however my decision to close my account before we moved. Lets take the share at the bottom of the page as an example: [share] path = /home/pi/shared available = yes valid users = pi read only = no browsabl...
by hortimech
Tue Jan 15, 2019 9:33 am
Forum: Beginners
Topic: Raspberry Samba/CIFS Documentation incomplete?
Replies: 9
Views: 358

Re: Raspberry Samba/CIFS Documentation incomplete?

Not rude, a fact. A removed myself from git-hub when Microsoft bought it, so I cannot do anything there. I contacted rpi to advise them that the share set up was totally wrong and what came of it ? My first email was ignored and my follow up to it was virtually ignored. If you are wondering why I am...
by hortimech
Mon Jan 14, 2019 9:33 pm
Forum: Beginners
Topic: Raspberry Samba/CIFS Documentation incomplete?
Replies: 9
Views: 358

Re: Raspberry Samba/CIFS Documentation incomplete?

Good luck with that, I told them the documentation was wrong, but they didn't want to know.

Try reading the Samba documentation:

https://wiki.samba.org/index.php/Settin ... one_Server

It doesn't mention the rpi, but it is correct and should point you in the right direction.
by hortimech
Wed Jan 09, 2019 9:22 am
Forum: Beginners
Topic: Samba share without SMB1 on Windows 10
Replies: 1
Views: 56

Re: Samba share without SMB1 on Windows 10

Samba, like Windows, negotiates the protocol, so if your Windows machine isn't using SMBv1, then Samba will not be using it. You will probably be using SMBv3 as this is the default for Windows 10.
by hortimech
Sun Dec 30, 2018 1:53 pm
Forum: Troubleshooting
Topic: Samba acting unusual with Raspbian [Solved]
Replies: 3
Views: 71

Re: Samba acting unusual with Raspbian

Do not read the rpi Samba documentation, it is wrong.

Go and read this:

https://wiki.samba.org/index.php/Settin ... one_Server
by hortimech
Fri Dec 21, 2018 5:51 pm
Forum: Beginners
Topic: distinguish between booting and rebooting
Replies: 16
Views: 673

Re: distinguish between booting and rebooting

DougieLawson wrote:
Fri Dec 21, 2018 5:27 pm
devuan isn't worth the pain. Get used to systemd and embrace the way it improves the boot process.
It doesn't improve the boot process, it takes longer to boot!
systemd is like the curates egg, good in parts, pity the good bits are so small :cry:
by hortimech
Fri Dec 21, 2018 12:35 pm
Forum: Beginners
Topic: distinguish between booting and rebooting
Replies: 16
Views: 673

Re: distinguish between booting and rebooting

DougieLawson wrote:
Fri Dec 21, 2018 10:11 am
There's no popular DebIan or Redhat based distro that still runs with sysvinit.
I suppose it depends on your definition of 'popular', but there is Devuan and on an rpi3 it is 64bit.
by hortimech
Tue Dec 18, 2018 5:14 pm
Forum: Troubleshooting
Topic: Permission denied error even when using sudo.
Replies: 17
Views: 429

Re: Permission denied error even when using sudo.

And, of course it should have been

Code: Select all

sh -c 'echo | sudo tee -a _autoplaylist.txt'
by hortimech
Tue Dec 18, 2018 5:13 pm
Forum: Troubleshooting
Topic: Permission denied error even when using sudo.
Replies: 17
Views: 429

Re: Permission denied error even when using sudo.

Try:

[code}
sh -c 'echo | sudo tee -a _autoplaylist.txt'
[/code]
by hortimech
Fri Nov 16, 2018 9:07 pm
Forum: Troubleshooting
Topic: Samba issues with new Pi
Replies: 4
Views: 312

Re: Samba issues with new Pi

Do you have these files installed: exfat-fuse exfat-utils ?
by hortimech
Fri Nov 16, 2018 6:35 pm
Forum: Networking and servers
Topic: USB Drive with Samba Share and Users
Replies: 8
Views: 1196

Re: USB Drive with Samba Share and Users

Two ways of doing this, run Samba as workgroup member or as an AD DC. The workgroup will be more work, you will have to create the windows users on the rpi, both as Unix and Samba users, you will also have to keep the windows and Samba users passwords in sync. With a domain it is a lot easier, you j...
by hortimech
Fri Nov 16, 2018 10:08 am
Forum: Troubleshooting
Topic: Samba issues with new Pi
Replies: 4
Views: 312

Re: Samba issues with new Pi

Try this smb.conf: [global] map to guest = Bad User log file = /var/log/samba/%m log level = 1 [Media1] Comment = Media1 Folder Path = /media/veracrypt1 read only =no create mask = 0777 directory mask = 0777 guest ok = yes [Media2] Comment = Media2 Folder Path = /media/veracrypt2 read only =no creat...
by hortimech
Sun Nov 11, 2018 1:24 pm
Forum: Beginners
Topic: My complaining about Raspberry, Python and Kivy
Replies: 10
Views: 503

Re: My complaining about Raspberry, Python and Kivy

Yes, Python 3.7 is stable as far as Python is concerned, but not from an OS point of view. If you are writing code and it will only be used by yourself, then you can install and use whatever program versions you like, but you then will not be running a supported version of your OS. It is up to you t...
by hortimech
Fri Nov 09, 2018 8:03 pm
Forum: Networking and servers
Topic: User permissions in samba file shares
Replies: 4
Views: 226

Re: User permissions in samba file shares

As you have seen, I added a 'valid users' line to some of the shares, this means that only the specified users will be allowed to access those shares. You are correct that any Samba user that exists will be able to connect to the other shares, but you could add a 'valid users' line to those shares a...
by hortimech
Fri Nov 09, 2018 6:55 pm
Forum: Networking and servers
Topic: User permissions in samba file shares
Replies: 4
Views: 226

Re: User permissions in samba file shares

OK, this is your smb.conf with all the commented and default lines removed, plus the lines that do what you require: [global] workgroup = WORKGROUP dns proxy = no log file = /var/log/samba/log.%m max log size = 1000 syslog = 0 panic action = /usr/share/samba/panic-action %d server role = standalone ...
by hortimech
Wed Nov 07, 2018 9:24 pm
Forum: Troubleshooting
Topic: yet another samba connect issue
Replies: 11
Views: 223

Re: yet another samba connect issue

The OP used sudo, so I did too. I was just trying to show where he went wrong, so it wasn't multiple uses of sudo, it would have been just one. The OP could have needed to use sudo, so carping about excessive use of sudo doesn't really help anybody, so you will just have to put up with the use of su...
by hortimech
Wed Nov 07, 2018 2:01 pm
Forum: Troubleshooting
Topic: yet another samba connect issue
Replies: 11
Views: 223

Re: yet another samba connect issue

yes i did sudo mkdir -m 1777 /internet_monitor while i was in /home/pi/data Then you created the directory at /internet_monitor, not at /home/pi/data/internet_monitor The command should have been 'sudo mkdir -m 1777 internet_monitor' Or 'sudo mkdir -m 1777 ./internet_monitor' Or 'sudo mkdir -m 1777...
by hortimech
Wed Nov 07, 2018 10:02 am
Forum: Troubleshooting
Topic: yet another samba connect issue
Replies: 11
Views: 223

Re: yet another samba connect issue

OOPS, I forgot to mention something, you created the share directory with:

sudo mkdir -m 1777 /internet_monitor

But in the share there is this:

Path = /home/pi/data/internet_monitor

' /home/pi/data/internet_monitor' != '/internet_monitor'
by hortimech
Wed Nov 07, 2018 9:49 am
Forum: Troubleshooting
Topic: yet another samba connect issue
Replies: 11
Views: 223

Re: yet another samba connect issue

You have set up a standalone server and because you have 'map to guest = bad user' set in [global] and 'guest ok = yes' in the share, anybody should be able to access the share. With those settings unknown users are allowed access, but they will still have to attempt to login, read 'man smb.conf' fo...
by hortimech
Sun Nov 04, 2018 5:40 pm
Forum: Networking and servers
Topic: USB Drive with Samba Share and Users
Replies: 8
Views: 1196

Re: USB Drive with Samba Share and Users

I think you need to read this:

https://wiki.samba.org/index.php/Settin ... one_Server

What is the filesystem on the USB drive ?
by hortimech
Fri Nov 02, 2018 12:15 pm
Forum: Beginners
Topic: Samba for RaspberryPi
Replies: 18
Views: 17703

Re: Samba for RaspberryPi

Thanks, it's nice to know what we do is useful :D
by hortimech
Fri Nov 02, 2018 8:55 am
Forum: Beginners
Topic: Samba for RaspberryPi
Replies: 18
Views: 17703

Re: Samba for RaspberryPi

That's different, with those packages you can run Samba as a standalone server, or a PDC/BDC, but you cannot run as an AD DC or Unix domain member (no winbind)
by hortimech
Thu Nov 01, 2018 9:48 pm
Forum: Beginners
Topic: Samba for RaspberryPi
Replies: 18
Views: 17703

Re: Samba for RaspberryPi

When the same error happened to me on my early installations, as it was a fresh install I just re-flashed the the Raspbian (then Jessie), and then installed samba and samba-common-bin , then edited /etc/samba/smb.conf to set the workgroup and shares Nowadays I don't get the same error on fresh inst...
by hortimech
Thu Nov 01, 2018 3:58 pm
Forum: Beginners
Topic: Samba for RaspberryPi
Replies: 18
Views: 17703

Re: Samba for RaspberryPi

OK, Samba is composed of 4 deamons; Samba, smbd, nmbd and winbindd. To run a Samba AD DC, you need to start the 'samba' daemon, this will start the smbd & winbindd daemons To start a Unix domain member, you need to start the smbd & winbindd daemons, you can also optionally start the nmbd daemon To s...

Go to advanced search