Nachdem ich einen neuen Cubietruck eingerichtet habe, stoße ich auf ein Problem, wobei ich (Linux-unerfahren) nicht weiterkomme:
FHEM läuft normal laut Logfile aber die fhem.cfg läßt sich aus dem Browser (Weboberfläche) nicht ändern/abspeichern:
Meldung: "fhem.cfg: Permission denied"
root@cubietruck:/# cd opt
root@cubietruck:/opt# ls -la
total 16
drwxr-xr-x 4 root root 4096 Jan 11 16:58 .
drwxr-xr-x 22 root root 4096 Jan 10 10:29 ..
drwxr-xr-x 10 root root 4096 Jan 11 11:34 fhem
drwxr-xr-x 3 root root 4096 Jan 11 16:59 hmcfgusb
root@cubietruck:/opt# cd fhem
root@cubietruck:/opt/fhem# ls -la
total 332
drwxr-xr-x 10 root root 4096 Jan 11 11:34 .
drwxr-xr-x 4 root root 4096 Jan 11 16:58 ..
-rw-r--r-- 1 root root 86945 Jan 11 11:34 CHANGED
-rw-r--r-- 1 root root 31535 Jan 11 11:34 configDB.pm
drwxr-xr-x 32 root root 4096 Jan 10 14:35 contrib
drwxr-xr-x 2 root root 4096 Jan 10 14:35 demolog
drwxr-xr-x 4 root root 4096 Jan 11 11:34 docs
drwxr-xr-x 5 root root 16384 Jan 11 11:34 FHEM
-rw-r--r-- 1 root root 35457 Jan 10 23:15 fhem.cfg
-rw-r--r-- 1 root root 12559 Nov 9 14:16 fhem.cfg.demo
-rw-r--r-- 1 root root 105189 Jan 11 11:34 fhem.pl
drwxr-xr-x 2 root root 4096 Jan 11 17:42 log
-rw-r--r-- 1 root root 761 Nov 9 14:16 README_DEMO.txt
drwxr-xr-x 3 root root 4096 Jan 11 11:34 restoreDir
drwxr-xr-x 2 root root 4096 Jan 11 11:34 unused
drwxr-xr-x 8 root root 4096 Jan 10 14:35 www
Wie setze ich die Rechte richtig?
cd /opt
sudo chmod -R a+w fhem
Nun geht es wieder.
besser noch so:
chown -R fhem:dialout /opt/fhem
noch besser so:
chown -R fhem:root /opt/fhem
(so wird es auch im Installationsskript gemacht)