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

INSANED_USER and INSANED_GROUP variables have no effect #13

Open
antimatter84 opened this issue Jul 9, 2018 · 2 comments
Open

INSANED_USER and INSANED_GROUP variables have no effect #13

antimatter84 opened this issue Jul 9, 2018 · 2 comments
Assignees
Labels

Comments

@antimatter84
Copy link

antimatter84 commented Jul 9, 2018

The environments file says:

# event handler scripts are executed with privileges of this user
INSANED_USER=andreas
INSANED_GROUP=andreas

but they are not.

I have set INSANED_USER and INSANED_GROUP as above and I have a dummy event handler "copy" in place and it only contains this for testing:

#!/bin/bash
echo "Running as $(whoami)" >/tmp/copy.log

When pressing the copy button at the scanner the log file contains:

Running as root

Shouldn't this be "andreas"? I looked through the code but it does not seem, that INSANED_USER or INSANED_GROUP is picked up anywhere.

System: Linux Mint 19 Cinnamon

@abusenius abusenius added the bug label Jul 9, 2018
@abusenius abusenius self-assigned this Jul 9, 2018
@abusenius
Copy link
Owner

Indeed, systemd/insaned.service is not using these variables.

@hankschwie
Copy link

hankschwie commented May 8, 2019

And it seems you can't change the user/group in insaned.service either; if you try, the service does not start anymore. So seemingly there is no way to send emails from the accounts of the current user via thunderbird or evolution since they are started by root. Is there a solution for this?

The only workaround I found so far is to add insaned manually to autostart, not using the systemd-version.

EDIT: I found a way, I posted my solution here:
[https://github.com/coaxial/insaned-config/issues/7]

system Ubuntu 18.04

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants