How do I find out what the HA system-user is? I tried creating a user called homeassistant on the Synology and gave it explicit permissions to everything, and using those credentials still results in a return code 111.
HAās os is root, HA uses root + you āyour-user/login nameā, samba is samba-user ā¦ what user did you use to mount-on hassio ?
Sorry if this is a really basic question, but does that depend on how I connected to run it? I used putty to connect to the ssh that I configured in the Terminal & SSH Add-on.
I guess you then logged into Ha, with your HA username, so you should have the right ācredentialsā then āAdministratorā in HA, root in terminal/SSH ā¦ easiest way is to login through ssh again and type āwhoamiā
ā¦and this sounds like āgreekā to me and āescape special charactersā ? ā¦ donāt use them if itās not supported
PS: Have you read/tried any of the examples above ?, on howto Mount ā¦ or maybe some other āhalfā official guide
Ah, TIL, thank you. I know whoami works in a windows command line, didnāt even think to try that.
I think I butchered that. I meant that putting them in ''s would indicate itās a string, like in SQL. I just tried to replicate and Iām not seeing the error I did before, so there must have been something else going on. At any rate, removing the ''s has the same effect. Shouldnāt one of them return an error for a bad password? I did enable debug but the only mention of homeassistant.components.shell_command in the log is it with a bunch of other components.
This is the first method I have tried. Honestly I wasnāt sure which of the other methods applied to me, and figured I should ask for advice on what to try. If you know of a guide that I could take a look at that would be awesome. Iāll also keep looking.
is it a windows āpartitioned(ntfs)ā disk you try to share ? ā¦ if so , i wouldnāt even try to do that, but feel free to read ābackwardsā from here, post by post, and even try āotherā search terms along your ālearning-stepsā, might be other Topics , with a solution for you ā¦, beside reading post/topics gets you additional knowledge about your own system Linux/window/samba/network etc
I donāt believe so. To my understanding the Synology DSM is a heavily modified Debian distro. Does that mean that I should be using a different method to mount the drive? Sorry, I havenāt had a lot of exposure to linux so am trying to learn about that in addition to how to get HA to do what I want.
Thank you for the advise. I did find another thread along these lines but it talked a lot about portainer which apparently is discontinued. I will keep digging through it to see if I can glean anything.
I just looked in the Storage manager for the Synology and it looks like itās a btrfs. I suppose thatās going to be a completely different method.
dont use username or password with āspaceā or other special characters, unless you are sure that all device, OS, Software that should communicate with eachother supports this,
i suppose so, but itās the mount that seems wrong , i donāt know anything about synology
But you get a " Connection refused", so either you donāt have right user/passwd, or not enabled samba on your nas, or wrong path
ā¦ thats why i asked about the ādiskā ā¦ user āguestā ?, i would never have used this, but same user as either HA or samba, and in regards to the path, i obviously canāt say anything as i dont know your system ā¦ but i try to be āgenericā, so if a mount a disk in linux, i use same file-system/cluster size on the disk,i even have an extra disk for files, configs/backups etc, same file system ā¦ why complicate things or ācreateā additional" fault points ?, various techs is complicated enough ā¦ and donāt forget to make sure you use supported nfs version
PS: and donāt for get to change this ā¦ Donāt use āspecial charactersā you donāt even know if supported
So I tried to take the Synology out of the picture and just share a folder on my win10 laptop, changed security to give āEveryoneā access, and Iām still getting permission denied errors, when trying both nfs and cifs. I did temporarily turn off Windows firewall so I donāt think itās a port issue, unless my router is doing something weird. I think Iām going to walk away from this one and maybe come back fresh another day. Thanks for your help @boheme61
Which integration/ADD-Onn are you using ? and how does your settings look like there ?
Are you sure you have followed the āInstallationā guide for your Samba ? as i donāt use configuration.yaml but th ADD-Onn to configure the Samba, above looks pretty āsimpleā as there is no āallow_hosts:ā etc. , and as i mention before " Donāt use username/password with space or other āspecialā characters
I think you are in the wrong thread.
This thread is about mounting an external samba share from a samba server not about using Home Assistant as a samba server!
ok, yes it seems so when going through all posts from scratch, didnāt even know that HA was able to ātalkā samba, without an Add-On or Integration ā¦ but maybe thatās not needed, when trying to authenticate to the external samba-server
So at-least i can try to give a āFinalā hint, if itās helpful ā¦
From: below, thou seems like various solution for Supervised vs HassOS
ā¦ And some more from Reddit:
level 2
Op Ā· 4 mo. ago
I tried to config NFS in QNAP NFS and mount from regular linux host, but got connection refused:
mount -t nfs 192.168.1.200:/Download /mnt/download
mount: mounting 192.168.1.200:/Download on /mnt/download failed: Connection refused
2
level 1
Ā· 4 mo. ago
Impossible? Not exactly.
Difficult/next-to-impossible? Yeah pretty much.
You have the right general idea, though I believe only NFS is possible and itās extremely picky about versions/configuration.
You will also need to run these commands from outside of the home assistant container though, which means that it canāt be done through the HA terminal or ssh add-on. Youāll need to use the debug-mode ssh to access the host system in order to run the mount commands.
This involves using a USB flash drive to import an ssh key (password is not an option, youāll have to use keys) and once successful you can ssh into :2222 to access the host system.
OK, so managed to get into Debug (on 22222) but I dont have the cifs.utils installed. What package manager is being used, or how can I install the cifs and nfs utils for mount?