You are not logged in.

#1 2020-06-03 15:52:32

VanWyck
Member
Registered: 2020-06-03
Posts: 4

Cannot use printer's scan function without root (over wifi)

Hey gents,

Part of me is certain the issue is really stupid, but I can't seem to figure it out...
I have a Brother printer on my local network which I can use for printing with pretty much 0 issue, however I can't use it to scan without being root.

Both simple-scan and scanimage tell me no printer could be discovered, and I'm not sure what to do about it...
I tried adding my user to the lp and scanner groups, even though the archwiki says it's not needed anymore.
I also tried tinkering with udev rules without success. That being said I don't know if it'd help much, as I understand it, udev rules are applies to USB devices, not networked ones.

I tried reinstalling brscan (The right version for my printer) and sane. I just have no idea how to continue debugging this... I'd really appreciate a bit of help, thanks.

Offline

#2 2020-06-04 11:42:13

VanWyck
Member
Registered: 2020-06-03
Posts: 4

Re: Cannot use printer's scan function without root (over wifi)

I haven't made any progress so far... Does no one have any idea what I could look into?

Thanks in advance

Offline

#3 2020-06-04 11:51:44

seth
Member
Registered: 2012-09-03
Posts: 51,017

Re: Cannot use printer's scan function without root (over wifi)

You could wireshark the connection or simply  "netstat -tulpen" to see whether the scan service requires to open a priv'd local port (<1024)

Offline

#4 2020-06-04 20:36:56

VanWyck
Member
Registered: 2020-06-03
Posts: 4

Re: Cannot use printer's scan function without root (over wifi)

Doesn't look like there's anything wrong here... Then again I might be looking at it the wrong way.
How would that work though, considering I can reach the printer just fine as root?

Offline

#5 2020-06-04 20:48:17

seth
Member
Registered: 2012-09-03
Posts: 51,017

Re: Cannot use printer's scan function without root (over wifi)

How would that work though, considering I can reach the printer just fine as root?

nc -l -p 123 # you'll get an error
sudo nc -l -p 123

"Normal" users cannot open ports < 1024 - did you wireshark the connection?
There's also https://wiki.archlinux.org/index.php/SA … k_Scanning but I don't really see why this this would be user-specific.

Offline

#6 2020-06-04 21:16:38

VanWyck
Member
Registered: 2020-06-03
Posts: 4

Re: Cannot use printer's scan function without root (over wifi)

> "Normal" users cannot open ports < 1024

Ah, thanks, wasn't aware. ^^
Seems the only port that pops up when I try to scan something is 8612 though.

EDIT: As for the SANE link, I've already tried that, sadly it didn't work (As you said though, no idea how it'd be user related)

Last edited by VanWyck (2020-06-04 21:19:17)

Offline

#7 2020-06-05 05:11:29

seth
Member
Registered: 2012-09-03
Posts: 51,017

Re: Cannot use printer's scan function without root (over wifi)

compare "strace -f scanimage -L" as root and normal user.
You can redirect the output into a textfile "strace -f scanimage -L > strace.txt 2>&1" but be aware that you cannot "sudo strace" (you'll have to use a root shell)

Offline

Board footer

Powered by FluxBB