[Gelöst] (Schreib)Rechteproblem? fhem.cfg: Permission denied

Begonnen von Clyde, 11 Januar 2015, 18:13:28

Vorheriges Thema - Nächstes Thema

Clyde

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?
2x Cubietruck, CUL868, HM-USB-CFG2
FS20, FHT, KS300, HM, MAX, Tradfri

Clyde

2x Cubietruck, CUL868, HM-USB-CFG2
FS20, FHT, KS300, HM, MAX, Tradfri

moonsorrox

Intel-NUC i5: FHEM-Server 6.1 :: Perl v5.18.2

Homematic: HM-USB-CFG2,HM-CFG-LAN Adapter, HM-LC-BL1-FM, HM-LC-Sw1PBU-FM, HM-LC-Sw1-PI-2, HM-WDS10-TH-O, HM-CC-TC, HM-LC-SW2-FM

betateilchen

noch besser so:

chown -R fhem:root /opt/fhem

(so wird es auch im Installationsskript gemacht)
-----------------------
Formuliere die Aufgabe möglichst einfach und
setze die Lösung richtig um - dann wird es auch funktionieren.
-----------------------
Lesen gefährdet die Unwissenheit!