RiotMode
(Philipp)
September 1, 2017, 12:33am
1
Hi,
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 ?
Thanks
1 Like
hr3
(Harry)
September 1, 2017, 6:37am
2
There are different ways to edit, see http://docs.openhab.org/configuration/editors.html
Why didn’t you use Eclipse SmartHome Designer?
rlkoshak
(Rich Koshak)
September 1, 2017, 1:16pm
4
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.
1 Like
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).
RiotMode
(Philipp)
September 1, 2017, 3:53pm
6
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 ?
thanks
rlkoshak
(Rich Koshak)
September 1, 2017, 4:00pm
7
On the Pi run and post the results of:
ls -l /etc/openhab2
groups
The above is assuming that you are logged into the pi as openhabian.
1 Like
RiotMode
(Philipp)
September 1, 2017, 4:01pm
8
[18:01:06] openhabian@openHABianPi:~$ ls -l /etc/openhab2
total 44
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
SMB SHARE:
i cant edit the files
Heyho.
Pretty weird.
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.
2 Likes
RiotMode
(Philipp)
September 1, 2017, 4:31pm
10
[18:01:21] openhabian@openHABianPi:~$ ls -l /etc/openhab2/items
total 12
-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.
1 Like
RiotMode
(Philipp)
September 1, 2017, 4:54pm
13
Thanks thom for the help! - that helped - now its working!
sudo openhabian-config
Apply Improvements -> Fix Permissions
2 Likes
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?
ThomDietrich:
sudo nano home.items
Grüße
1 Like