Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow ttrssd to run as a specified user (take two) #306

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

rwv37
Copy link

@rwv37 rwv37 commented Oct 3, 2024

The Tiny Tiny RSS update daemon, ttrssd, from package www/tt-rss, currently runs as user www. This change is meant to enable (optionally) running as a different user, by setting a new flag ttrssd_run_as_user in /etc/rc.conf. For example, to run as the user mmm, add the following line to /etc/rc.conf:

ttrssd_run_as_user="mmm"

If this new flag is not specified, it defaults to running as www (reproducing the behavior from before this change).

I've modified my previous PR for this as suggested by @derekschrock:

ttrssd (from www/tt-rss) currently runs as the user "www", and there doesn't seem to be a way to override that. This change adds an optional flag that can be specified in /etc/rc.conf to do so.

The flag is "ttrssd_run_as_user"; for example to run as the user "mmm", add the following line to /etc/rc.conf:

ttrssd_run_as_user="mmm"

If it is not specified, it defaults to "www" (reproducing the behavior from before this change).
Update ttrssd.in - allow ttrssd to run as a specified user
Part of a change to allow ttrssd to run as a specified user rather than always as ``www`` - ``chmod`` the ``update*.php`` files at install time rather than relying on the user to do it manually (in which case it would be overwritten upon reinstall or update).

This part of the change was suggested by @derekschrock in response to [my earlier PR](freebsd#304).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant