Replies: 3 comments 7 replies
-
Given this isn't really an issue with sane-scan-pdf, but rather a scanbd configuration problem, I've converted this into a discussion. Hopefully scanbd users can help each other out here, and if we can figure out the right way to set this up, we can update the README and/or the wiki. |
Beta Was this translation helpful? Give feedback.
-
I've got a similar problem atm: Calling Using scanbd and pushing the button on my scanner (Fujitsu ScanSnap S1500) leads to this:
In the beginning, I had more |
Beta Was this translation helpful? Give feedback.
-
Hello, I got very far to get my fujitsu ix1500 running with sane and scanbd by paperload.
|
Beta Was this translation helpful? Give feedback.
-
I'm still trying to get sane-scan-pdf to work with scanbd. After solving some configuration issues, I am now stuck.
In the debian bugtracker, there is an unresolved bug from 2016 that seems to describe my problem fairly well:
This seem to be the root of the permissions issues I [1] and others [2] have been facing.
After working around the units issue by adding --no-default-size [3], I got very similar issues later in post processing with parallel:
parallel: Error: Cannot change into non-executable dir /root/.parallel: Permission denied
.As described in the bug report quoted above, I configured scanbd to drop its privileges to user saned (114) and group scanner (110). On startup of sanebd, I do get the following output which looks promising:
However, when pressing the scan button, no matter what I set scanbd.conf's user setting to, scanbd always outputs
scanbd: setting env: USER=root
andscanbd: setting env: HOME=/root
when scanning, despite the debug output at startup, which seems to be in line with the quoted sanebd bug report (see debug log at the end).In the shim script that calls sane-scan-pdf, I added a line HOME=/home/username which got me past the
parallel: Error: Cannot change into non-executable dir /root/.parallel: Permission denied
error, but then caused all sorts of other issues until I exited the shell, so I guess that's not really a good idea either.Do you have any idea how to solve this? I wonder how @nyn44e got it to work?
Beta Was this translation helpful? Give feedback.
All reactions