Superb quality and spec AB-Com PULSe 4K SE only £99! FREE UK DELIVERY! 4K UHD, Enigma 2, Multiboot 4 images & more!...
Superb quality and spec AB-Com PULSe 4K Rev II Twin Satellite tuner only £149! FREE UK DELIVERY! 4K UHD, Enigma 2, SATA HDD facility, Multiboot 4 images & more!...

[VU+ Solo4K] SAMBA not working

FiFtHeLeMeNt

New member
Joined
Jul 31, 2017
Messages
21
Reaction score
0
Points
0
Age
45
Hi Guys,
SAMBA service doesnt work properly on my Solo4K. I have tried installing it from both GUI and SSH. It installs fine and runs properly, I confirmed it listens on port 445 and I can see my "VUSOLO4K" in network places in Windows 10 but when I open it, it hangs for a few seconds and then windows throws an error that windows can not find the share.
I tried a few hours to debug the issue, but smbd doesnt provide any logs, I tried everything possible, but no log is provided. it seems to me that smbd process crashes.
Here is the samba version which is installed from openvix repo : samba-base - 3.6.25-r8
 
I am running Samba on a solo4k 5.0.23 just fine. Can browse the HDD just fine on windows 10.
Can you please check your samba version with this command in terminal ?
Code:
smbd -V
 
are you sure you are using the correct creditionals?

i would try adding a password to the root user and then try again. could be not having a password causing the issue.

use the following command to add password to root.

from the cmdline
Code:
passwd root
and then enter the new password twice.

also make sure to reboot pc and receiver.
 
just realised i dont think you even need to install the smaba server to map to it from a PC. because i didnt.

on your desktop open file explorer and select PC. In the menu on the top of the file explorer window. select computer > map network drive.
map.webp
now enter your recivers ip address.
Code:
 \\<ipAddress>
ipMAp.webp
select browse and select the folder you want.
tick the use different creditionals box and enter the creditionals when asked

then click finish.
the reciever show now appear as a mapped drive on your PC
 
Last edited:
Thank you for your detailed response.
If you didnt install samba server, probably it had been installed by default.
There is no way that windows file sharing would work without samba server being installed and running.
It is not installed by default on image 5.0.23 for solo4k.
I am quite good with linux and have installed samba server many times before.
The problem is that it is not logging anything on my solo4k so I can not debug the issue.
I had blackhole image before this and samba was working out of the box perfectly.
I still believe there is something wrong with the samba server privided by openvix for solo4k.
solo4k is very different to other vu+ boxes, I believe it is the only receiver with an arm processor. others are mips.
is there anyway I can contact the devs of openvix ?
 
i just went and checked and it asked me to install it. so its definitly not installed. It could be using some other file sharing protocol like NFS. either that or win10 can map a FTP drive
 
As a last resort, I set a password for root user and it fixed the issue !
Thank you for your help guys :)
 
Hint 1:
Most - almost all - users will be able to just use the box name as a host.
So instead of mounting some fancy numbers (Which is pretty 90s), you could mount vusolo4k, e.g. \\vusolo4k\Harddisk or \\vusolo4k\Root

Hint 2:
Samba is configured to do "all or nothing".
Either you provide proper credentials and an empty password is not be considered as being proper - or - you provide no credentials at all (Windows will access the server as "guest" then, which does not exist on the server side and leds to an escalation to user root.


This is how Samba will treat login attempts:

User: root
Password: (empty)
-> Fails, due to "root" being a real existing user, but empty passwords not being allowed

User: r00t
Password: (empty)
-> Succeeds, due to "r00t" being a non-existant (= invalid) user

User: guest
Password: (empty)
-> Succeeds, due to "guest" being a non-existant (= invalid) user

Once you create a password for user "root" on the box, logins for root always succeed according to this pattern:
User: root
Password: (correct password)
-> Obviously succeeds

User: root
Password: (wrong one)
-> Also succeeds, due to the password being valid (non-empty) but bad :)


As you can see, almost any login attempt will succeed, except if the user tries to be (semi-)smart and provides the user name "root" while the configuration for user "root" was never finished (has no password).


Well, why was Samba pre-configured in this way?

Because it allows an important configuration change in just one step:
The default is entirely insecure, but very user-friendly. You can just double-click the box and then its shares in Windows to access the box.
I don't like this default but it has been that way since E2 evolved, so I re-designed it in a way that the behaviour is still the default but can easily be changed.


You can make Samba secure (Truely require credentials for access) by changing just this one line
Code:
guest account = root
in /etc/samba/smb.conf to
Code:
guest account = nobody

The default makes failed logins escalate to "root" rights, the changed setting makes failed logins degrade to the rights of user "nobody" (Who has zero rights at all).
That way you can easily lock out others, e.g. minors, from access to your harddisk, e.g. XXX recordings :)

You can even have Windows auto-logon to the Samba server, even with the usually different kind of user names in Windows:
Typical Linux user names are "root", "fsmith" and short stuff like that.
Windows on the other hand uses full names with whitespaces as user names, e.g. "Frank Smith".

To overcome this problem, Samba offers a "users.map", a configuration file in /etc/samba/private
There is a sample users.map in our Samba, for OpenViX it looks like this:

root = "OpenViX User" "OpenViX-Benutzer" "Administrator"
kids = "Charlie Brown"

Assuming you want secure access to the box and have created a password for user "root", you would normally have to specify "login using different credentials" in Windows to use user "root" and its credentials for the login ... on any machine in your network and whenever you re-configure the mount.
But instead you can also add your Windows' user name to the list behind root =, e.g. for "Frank Smith" you would change the first line above to
Code:
root = "Frank Smith"

Although Windows will still send "Frank Smith" as user name, Samba will then treat this login attempt as one from user "root", so if you use the same password for user "root" on the box and "Frank Smith" on Windows, Windows will auto-login when accessing from Frank Smiths account (but fail with other accounts) :)


Note:
The "kids" user exists and works, but E2 creates all files as "world readable", so it is of no use yet.
The idea/hope was, that someone would make E2 create recordings from blacklisted stations with rights 700 instead of 755, which would be all that is required to make the "kids" user not see/access them.

For the 7yrs old son "Mike Smith" you could then simply change the kids line to
kids = "Mike Smith"
in order to have Mike Smith get access to his "Disney Channel" recordings but not to those on Brazzers TV Europe ...

The "kids" user even already exists in vsftpd too ...
 

OpenViX Feeds Status

Back
Top