restconf www-data group membership clarification

This commit is contained in:
Olof hagsand 2018-07-13 16:51:51 +02:00
parent 719ea93398
commit d61f86c1e0
2 changed files with 19 additions and 3 deletions

View file

@ -2,6 +2,11 @@
### Installation using Nginx ### Installation using Nginx
Ensure www-data is member of the CLICON_SOCK_GROUP (default clicon). If not, add it:
```
sudo usermod -a -G clicon www-data
```
Define nginx config file: /etc/nginx/sites-available/default Define nginx config file: /etc/nginx/sites-available/default
``` ```
server { server {

View file

@ -1,4 +1,4 @@
i# Clixon FAQ # Clixon FAQ
## What is Clixon? ## What is Clixon?
@ -41,14 +41,25 @@ The example:
sudo make install sudo make install
``` ```
## Do I need to setup anything? ## Do I need to setup anything? (IMPORTANT)
The config demon requires a valid group to create a server UNIX socket. The config demon requires a valid group to create a server UNIX socket.
Define a valid CLICON_SOCK_GROUP in the config file or via the -g option Define a valid CLICON_SOCK_GROUP in the config file or via the -g option
or create the group and add the user to it. The default group is 'clicon'. or create the group and add the user to it. The default group is 'clicon'.
Add yourself and www-data, if you intend to use restconf.
On linux: On linux:
```
sudo groupadd clicon sudo groupadd clicon
sudo usermod -a -G clicon user sudo usermod -a -G clicon <user>
sudo usermod -a -G clicon www-data
```
Verify:
```
grep clicon /etc/group
clicon:x:1001:<user>,www-data
```
## What about reference documentation? ## What about reference documentation?
Clixon uses Doxygen for reference documentation. Clixon uses Doxygen for reference documentation.