• The forum software that supports hummy.tv has been upgraded to XenForo 2.3!

    Please bear with us as we continue to tweak things, and feel free to post any questions, issues or suggestions in the upgrade thread.

Passwords for drive mappings and SSH

Hello,
I have a HDR-FOX T2 running customised firmware. I have a Windows 10 PC with a drive mapping to the Hummy (\\xxx.xxx.xxx.xxx\My Video). With the upcoming demise of Windows 10, I'm trying to set up a Linux Mint computer instead. How do I mount the same location in Linux? I know I need SMB1.0, but I'm having trouble with the username and password. They don't seem to be stored anywhere on my Windows 10 computer and I can't find anywhere in the web-if to discover/change them. Do I even need username/password??

While I'm on the subject of passwords, I've got the same issue with SSH. That definitely needs a password, but I've no idea what it is or where in web-if to find it.

Thanks in advance for any help you can offer.
 
Yes, you can connect to the Humax's SMB 1.0 share from Linux Mint.

1. Confirm the samba service is running on the humax via webif's service management page.
2. Install the cifs-utils package on mint. sudo apt install cifs-utils
3. Create a directory on Mint for the mount. e.g sudo mkdir /home/[username]/humax
4. sudo mount.cifs -o vers=1.0,guest "//[IP address]/My Video" /home/[username]/humax

Replace [username] and [IP address] as applicable for you.
The default username=root and password=blank [no password] but guest access works fine.
This works fine for me on Ubuntu.

I've not tried a permanent connection. I believe you need to add an entry to /etc/fstab
Google is your friend.

There's a beta Samba 3 package for the humax that might be of interest.

If the connection is simply to watch recorded content on your PC, I find streaming using VLC's UPNP easier.
You could also go down the NFS or FTP route for the connection depending on your use case.

Have you used SSH to connect to the humax before. Did you generate a public/private key?
 
Most Linux desktops do support SMB as standard, typically via gvfs-smb on gnome based distro's or kio-fuse on KDE.
The file managers make the process of connecting to SMB shares very easy.

Many distro's don't include smb 1.0 support by default for security, hence the need to install cifs-utils and mount manually.

FWIW, The NFS package is likely to provide faster transfer speeds compared to the humax built SMB 1.0, hence the beta SMB 3.0 package suggestion.
 
They don't seem to be stored anywhere on my Windows 10 computer and I can't find anywhere in the web-if to discover/change them. Do I even need username/password??
The username is "root". It's a whole world of pain to use anything else (at least I found it so when trying it). I'm not sure what the default password is, but you can change it on the command line on the Humax using smbpasswd -L
I've got the same issue with SSH. That definitely needs a password, but I've no idea what it is or where in web-if to find it.
The default user is "root" and the default password is "humax".
You can change the password in /mod/etc/dropbear/shadow if you like (but see below first) e.g.
Code:
echo "root:$(openssl passwd mysecret 2>/dev/null):10993:0:99999:7:::" >/mod/etc/dropbear/shadow
replacing "mysecret" with whatever you want the password to be.

Of course, having a default user of "root" is a bit of a pain - I just wanted to use my normal name, so:
Code:
sed -i 's/root/prpr/' /mod/etc/dropbear/passwd /mod/etc/dropbear/shadow
Obviously you substitute your Linux machine's user name for mine.

But passwords are hassle, so you should create a public/private key pair, as already suggested.
The public key needs to go into /mod/.ssh (which you need to create: mkdir /mod/.ssh) and then on the Linux machine e.g.
Code:
echo "echo \"$(cat id_ed25519.pub)\" >/mod/.ssh/authorized_keys"|ssh -T humaxip
Finally, with the private key on your Linux machine in the correct place/with the correct permissions, you can just do: ssh humaxip substituting humaxip as appropriate, and it should all work.
 
How might that work if the Humax has a hostname but no static IP address?

Also, do the mystery fields following the password when writing to /mod/etc/dropbear/shadow have the usual significance for /etc/shadow entries, ie:
3. Number of days from Jan 1, 1970 to the day of the last password change, or 0 to force a password change.
4. Minimum number of days required between password changes (0, meaning no minimum, if absent).
5. Maximum password age in days, after which a password change is forced.
6. How many days before password expiry (5) is the user warned of expiry.
7. How many days after password expiry is the account disabled.

So in the code example 10993 could be somewhere around early February 2000.
 
How might that work if the Humax has a hostname but no static IP address?
You can use a hostname in place of an IP address without any problems. I do.
Also, do the mystery fields following the password when writing to /mod/etc/dropbear/shadow have the usual significance for /etc/shadow entries
No idea. I guess they aren't used by anything.
 
  • Like
Reactions: /df
Yes, you can connect to the Humax's SMB 1.0 share from Linux Mint.
....
4. sudo mount.cifs -o vers=1.0,guest "//[IP address]/My Video" /home/[username]/humax

Replace [username] and [IP address] as applicable for you.
Hmm, every time I try this it tells me it cannot find the IP address - even though I can quite happily open a web page on the hummy using the same address.
 
Yes, you can connect to the Humax's SMB 1.0 share from Linux Mint.

1. Confirm the samba service is running on the humax via webif's service management page.
2. Install the cifs-utils package on mint. sudo apt install cifs-utils
3. Create a directory on Mint for the mount. e.g sudo mkdir /home/[username]/humax
4. sudo mount.cifs -o vers=1.0,guest "//[IP address]/My Video" /home/[username]/humax

Replace [username] and [IP address] as applicable for you.
The default username=root and password=blank [no password] but guest access works fine.
This works fine for me on Ubuntu.
Thank you, this has worked. Not really sure why it wouldn't work yesterday - samba service was already running, cifs-utils was already installed.
One of the AI's was pretty adamant I needed escape characters for the space in "My Video", perhaps that's where it went wrong.
Anyway, I'm in so thank you.

I'll have a look at the samba 3 thread too.
 
every time I try this it tells me it cannot find the IP address
Quote the exact error message and exact command used. Comments such as this are pointless.
Have you checked the Samba service is actually running?

FWIW, I can get the command as above to work, BUT only if the configuration of the share on the Humax has "public = yes" added (which is none of them by default), or the "guest account = root" and "guest ok = yes" lines are uncommented and the Samba service is restarted. I get "permission denied" otherwise.
To make it work without any mucking about I needed to do this:
Code:
sudo mount.cifs -o vers=1.0,user=root,password=mysecret "//humaxip/My Video" ~/humax
with the usual substitutions.
If you still have the default password (which is a null string), then you can omit the password= bit.
I'm using the Samba beta 3.6.25-1
 
Back
Top