LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-10-2018, 04:57 PM   #16
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,793

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140

BTW, I note that the Ubuntu guide you referred to mentioned using the following config directives in the saned.socket unit file
Code:
# Defaults for the saned initscript, from sane-utils

# To enable under systemd please read README.Debian
# Set to yes to start saned under SysV
RUN=no

# Set to the user saned should run as
RUN_AS_USER=saned
I don't use that (and it's not mentioned in 'man saned' either), so my /etc/systemd/system/saned.socket looks like this
Code:
[Unit]
Description=saned incoming socket

[Socket]
ListenStream=6566
Accept=yes
MaxConnections=1

[Install]
WantedBy=sockets.target
 
Old 03-10-2018, 05:03 PM   #17
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,793

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
Quote:
Thank you so much for trying to solve this. The 'funny' thing is that I also made it work some time ago on my older PC, and it worked immediately with no issues...
There is a chance that this relates to the particular sane-backends version (sane-backends 1.0.26git) in use on your system I guess. Are you able to upgrade the host perhaps?
 
Old 03-11-2018, 04:14 AM   #18
burkina76
LQ Newbie
 
Registered: Mar 2018
Posts: 21

Original Poster
Rep: Reputation: Disabled
I changed saned.socket by removing the first lines, now it's exactly the same as yours, but still no luck.
I also updated the host to 1.0.27 via github, nothing changes.
It's very interesting that you get the same behaviour I have using StandardInput=null. I'm using StandardInput=socket, as you do, but it may be that, for some reasons, this option is not set, and the issue is due to that...
 
Old 03-11-2018, 04:58 AM   #19
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,793

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
What happens if you remove (or comment out) the User= and Group= directives?
 
Old 03-11-2018, 05:48 AM   #20
burkina76
LQ Newbie
 
Registered: Mar 2018
Posts: 21

Original Poster
Rep: Reputation: Disabled
Nothing...
 
Old 03-11-2018, 06:07 AM   #21
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,793

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
Does /etc/default/saned exist? If so, what does it contain?
 
Old 03-11-2018, 06:34 AM   #22
burkina76
LQ Newbie
 
Registered: Mar 2018
Posts: 21

Original Poster
Rep: Reputation: Disabled
Well, I don't know what happens, but now it works...
Looking at the log, now the correct IP appears asking access, and the access is granted. I can use the scanner from the client.
The only thing that occurs to me is that I didn't perform a reboot after the upgrade to 1.0.27. After the reboot, now it seems to work, it may be thanks to the update. At least, this seems to me the only possibility.
I will test it in the next few days, and let you know if it stops working again.
Thanks a lot for the help, I was completely stuck...
 
Old 03-11-2018, 02:23 PM   #23
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,793

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
Glad to have walked with you on this one, and good to read of you success with this finally!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
NFS server denies access Curunir Linux - Networking 6 06-17-2016 01:05 PM
SELinux denies access - Can't send my first email ElijahDaniel Linux - Security 2 12-17-2007 01:48 AM
squid denies access to clients Ronin_tekorei Linux - Server 9 05-11-2007 09:35 PM
ripperX denies me access to CD Drive d00bid00b Linux - Software 10 04-30-2006 03:34 PM
in.rsdh denies access to root sylliaad Linux - Security 2 07-13-2005 06:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration