gemini84
(Geme84)
September 7, 2024, 9:56pm
1
Hi all,
I installed SAMBA on HA (container installation) following the guide at this URL
In this guide, you will learn how to install Samba for network file sharing, Portainer to help manage and troubleshoot your Docker containers and install an MQTT server. You do not need to install all, or even any of these programs as Home Assistant will run perfectly without them and they can also all be installed from within the Home Assistant Supervisor.
The advantage of installing these particular pieces of software outside of the Home Assistant Supervisor is that if you have an issue with Home Assistant not starting, you can still access your files via your network and access the Home Assistant Docker containers to get logs and help troubleshoot problems.
## Section 1 – Install Portainer
**1.1)** Connect to your machine using Putty.
**1.2)** Copy and paste this command into the Putty window and execute. You can paste into Putty by right clicking your mouse.
```
sudo docker run -d -p 8000:8000 -p 9000:9000 --name=portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce
```
**1.3)** Once installed, you will be able to access Portainer at `http://MACHINE_IP_ADDRESS:9000`. When you first log in, you will be presented with a screen that will ask you for a username, and password. Enter these, then click Create User. On the next screen, select Local and then Connect. You will now be able to click on the Containers tab on the side to view you installed containers.
## Section 2 – Install Samba
**2.1)** Connect to your machine using Putty.
This file has been truncated. show original
I don’t know why the first reboot I saw the Public folder but without the possibily to browse the content, and now after a server reboot I don’t see anything.
Configuration file is this:
[Public]
path = /usr/share/hassio
writable = yes
guest ok = yes
guest only = yes
read only = no
create mode = 0777
directory mode = 0777
force user = nobody
create mask = 0777
directory mask = 0777
force user = root
force create mode = 0777
force directory mode = 0777
hosts allow =
and I confirm that my local network is Workgroup (I use WINDOWS pc)
Many thanks
Br
nickrout
(Nick Rout)
September 7, 2024, 10:07pm
2
Did you start smbd?
Samba logs in the standard Linux manner. What do the logs show you?
What os are you on?
gemini84
(Geme84)
September 8, 2024, 2:16pm
3
nickrout:
smbd
rebooted, now I see the folder Public but unfortunatelly I cannot have access to it
francisp
(Francis)
September 8, 2024, 3:13pm
4
gemini84:
force user = nobody
gemini84:
force user = root
I have no idea what this does, but it can’t be right.
nickrout
(Nick Rout)
September 8, 2024, 9:29pm
5
No logs, no issue. I specifically referred to logs, why ignore people who try to help?
gemini84
(Geme84)
September 11, 2024, 8:07am
6
gemini84:
force user = nobody
I tried to set force user = nobody but is not correct.
Could it be that path is wrong ? path = /usr/share/hassio
Can you please tell me where I can find the correct path?
many thanks
nickrout
(Nick Rout)
September 11, 2024, 8:10am
7
Still you don’t produce any logs.
francisp
(Francis)
September 11, 2024, 8:52am
8
That is the correct path for HA Supervised , but since you run HA Container, ou have to check your docker compose file, or your docker run command.
gemini84
(Geme84)
September 21, 2024, 10:27pm
9
that’s what i did:
I didn’t installed SAMBA as container, but I installed it directly in UBUNTU Server.
I have portainer. Do you know how I can retrieve the the correct path to use?thanks
nickrout
(Nick Rout)
September 21, 2024, 10:53pm
10
You installed home assistant. Only you know where you store your home assistant data. Once you look at your own setup, you’ll know what to share.
francisp
(Francis)
September 22, 2024, 3:34am
11
Look at your docker compose file, or your docker run command.
gemini84
(Geme84)
September 22, 2024, 8:19pm
12
I’m a newbie . I installed SAMBA on UBUNTU Server ( not a conainer).
Do you know what is the command that i should use in order to understand the file pat?
gemini84
(Geme84)
September 22, 2024, 8:20pm
13
I installed SAMBA directly on UBUNTU Server. Do you know how I can retrieve this information?thanks
francisp
(Francis)
September 23, 2024, 3:09am
14
The one you started home-assistant with !