On Monday, October 3, 2016 at 2:47:20 PM UTC-4, Garrick Cruise-Smith wrote: > > Hi , Vince this is helpful. I think I am confused as thought PI user ID > had full privileges, weewx folder seems to have full read write access. Do > I need to set up another user to allow USB comms ? > > garrick,
by default, only the root user can use a usb device. what are your options? - run the command as root. in this case, running weewx as a daemon at system startup does this automatically for you. - run the command using sudo. this works fine for one-off, setup, and experimentation. - embed sudo in scripts. this can be tricky, unless you configure sudo to not need a password. see the sudo docs for how this is done. - use a udev rule to change permissions on the usb device. see the appropriate .rules file in the util/udev directory of the weewx distribution for examples. there is a wiki entry about how to run weewx as a non-root user: https://github.com/weewx/weewx/wiki/Run%20as%20a%20non%20root%20user normally it is not a problem to run weewx as root, but if you need to harden the system, creating a separate weewx user can be a good thing. m -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
