i am new to Raspberry and OpenHAB.
I want to change home.sitemap, home.items, etc… in ATOM Editor and not via Terminal - but it wont let me:
“Unable to save file: Permission denied ‘/Volumes/openHAB-conf/items/home.items’”
i am connected via SMB - how can i do this ?
There are different ways to edit, see
Why didn’t you use Eclipse SmartHome Designer?
Visual Studio Code with openHAB extension?
You need to configure smb to give write permissions to the user used to connect to the share.
I recommend considering using openHABian which will set up the smb share to allow this for you.
If you have a standard setup, you could issue the following command in Linux:
smbpasswd -a openhab
and then restart Samba and connect to the Samba share using the user openhab. However, make sure that all files in /etc/openhab2 belong to that user (should be the case in a fresh setup).
thank you guys, for all the good answers!
i am using openHABian - and i am connected with SMB via Mac-Finder.
( user: openhabian and my password)
i am connected with openhabian user but i am not allowed to change anything
the manual says:
If you are using openHABian, the needed set of network shares is already configured for you, you just need to mount them locally.
i see all the files - but i cant edit/save them
what am i missing ?
On the Pi run and post the results of:
ls -l /etc/openhab2
The above is assuming that you are logged into the pi as openhabian.
[18:01:06] openhabian@openHABianPi:~$ ls -l /etc/openhab2
drwxrwxr-x+ 2 openhab openhabian 4096 Aug 30 23:42 html
drwxrwxr-x+ 3 openhab openhabian 4096 Aug 30 23:42 icons
drwxrwxr-x+ 2 openhab openhabian 4096 Aug 31 00:22 items
drwxrwxr-x+ 2 openhab openhabian 4096 Aug 30 23:42 persistence
drwxrwxr-x+ 2 openhab openhabian 4096 Aug 31 00:29 rules
drwxrwxr-x+ 2 openhab openhabian 4096 Aug 30 23:42 scripts
drwxrwxr-x+ 2 openhab openhabian 4096 Sep 1 02:00 services
drwxrwxr-x+ 2 openhab openhabian 4096 Aug 31 00:23 sitemaps
drwxrwxr-x+ 2 openhab openhabian 4096 Aug 30 23:42 sounds
drwxrwxr-x+ 2 openhab openhabian 4096 Aug 31 00:21 things
drwxrwxr-x+ 2 openhab openhabian 4096 Aug 30 23:42 transform
[18:01:08] openhabian@openHABianPi:~$ groups
openhabian adm tty dialout cdrom sudo audio video plugdev games users input netdev openhab gpio i2c spi
i cant edit the files
Are you using the openHAB-share share?
could you also check the permissions of
ls -l /etc/openhab2/items ?
Whatever is going on should be solved after executing “Fix Permissions” from the
sudo openhabian-config menu once.
ls -l /etc/openhab2/items
[18:01:21] openhabian@openHABianPi:~$ ls -l /etc/openhab2/items
-rw-rw-r-- 1 root root 6890 Sep 1 04:52 home.items
-rw-rw-r-- 1 openhab openhabian 226 Jun 28 01:13 readme.txt
i installed and created the files with this tutorial:
should i delete the home.* files and create new ones in the mac-finder ?
or how to “fix permissions” ?
No, don’t delete it, just execute “Fix Permissions” once. Check out the “openHAB-share” share, there is a whole README file dedicated to these kinds of problems…
Also, please do not use sudo whenever some random internet source tells you to.
just execute “Fix Permissions” once
Thanks thom for the help! - that helped - now its working!
Apply Improvements -> Fix Permissions
Thanks So much! I had to register to Thank you Guys! After hours I found this.
I also Set Up my Pi with the MKsmarthouse Tutorial…
Now I wonder what caused this reaction is “sudo nano” wrong?
sudo nano home.items