customize webpage adding users

Begonnen von Lectere, 23 September 2013, 17:00:37

Vorheriges Thema - Nächstes Thema

Lectere

I'd like to add two users to access my FHEM, one for my girlfriend, so she turn off/on everything, and control heating etc. But I don't want her to be able to execute commands, or delete anything.

Is that possible with FHEM, if so how?

Also I want a friend of mine to be able to only see one page/room, and only give him access to turn on one of my WOL def's in FHEM.

Is that possible with FHEM, if so, how?

I've been looking for it, but it seems you can only create one user...? perhaps I'm missing something?
SMSPassword redundant two-factor authentication for Netscaler, Vmware View, Cisco, Juniper, etc via SMS

http://www.smspassword.com

rudolfkoenig

>  But I don't want her to be able to execute commands, or delete anything.

You can reach something like this by defining dedicated FHEMWEB instances, and setting for these instances some/all of the http://fhem.de/commandref.html#hiddenroom special values. You can also hide selected rooms/special entries. Then set the http://fhem.de/commandref.html#basicAuth attribute for each of the instances.

Be aware that this is not a waterproof solution, as entering the proper commands in the URL directly will still execute a FHEM command. It only helps to avoid accidentally changing/deleting something.

Lectere

She's still be able to delete properties of the visable items, and there is still the big command box on top, and even worse, the 'save config' button...

Might be a nice feature, because to conclude, now the web-interface is allways in 'nerd mode'. And there is no 'consumer mode'.
SMSPassword redundant two-factor authentication for Netscaler, Vmware View, Cisco, Juniper, etc via SMS

http://www.smspassword.com

rudolfkoenig

>  She's still be able to delete properties of the visable items, and there is still the big command box on top, and even worse, the 'save config' button...

Please read my text more carefully, and if you are in doubt test it first, before replying.

All of the mentioned items can be disabled with the hiddenroom attribute. What you cannot disable is to manually craft a special URL (typing it in the Browser-URL-Input field), through which you can execute arbitrary fhem commands.