gstd-1.x icon indicating copy to clipboard operation
gstd-1.x copied to clipboard

gstd as non-root user?

Open phil-marble opened this issue 7 years ago • 4 comments

Running gstd assumes write access to /var/log /var/run, etc. There appear to be no command line options (or perhaps they are undocumented?) for overriding this behavior when starting.

phil-marble avatar Apr 02 '18 23:04 phil-marble

Hi @phil-marble, currently you can set the desired logging (/var/log/) and PID (/var/run) directories during configuration. Something like:

./configure --with-gstd-runstatedir=/var/run --with-gstd-logstatedir=/var/log/

The default values are set to $prefix/var/run/gstd/ and $prefix/var/log/gstd/ respectively. You may want to check the config.log file to verify your current configuration.

The make install process give the specified directory read and write access. Gstd should run as non-root.

Currently, there is no way to specify these directories via command line arguments. There's nothing impeding this though and its a small change. It's just not implemented.

Does this unblock you?

michaelgruner avatar Apr 04 '18 02:04 michaelgruner

I'm not blocked, I'd just like to see these as runtime configurable via command line options, eventually.

phil-marble avatar Apr 04 '18 20:04 phil-marble

Agreed. Marked as enhancement already.

michaelgruner avatar Apr 04 '18 20:04 michaelgruner

Thanks!

phil-marble avatar Apr 04 '18 20:04 phil-marble