Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Gelöst: xinetd und saned
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
wuesti
Apprentice
Apprentice


Joined: 07 Mar 2009
Posts: 191

PostPosted: Tue Mar 24, 2009 10:58 am    Post subject: Gelöst: xinetd und saned Reply with quote

Moin!

gentoo x86

Der saned ist so eingerichtet, dass er über das Netzwerk erreichbar ist.


Bei der Eingabe von scanimage -L auf dem Client wird der Scanner richtig angezeigt.
Die ensprechende Ausgabe auf dem Server ist:
Code:

saned -d
[saned] main: starting debug mode (level 2)
[saned] main: [1] bind failed: Address already in use
[saned] saned (AF-indep+IPv6) from sane-backends 1.0.19 ready
[saned] check_host: access by remote host: ::ffff:192.168.1.23
[saned] init: access granted to wuesti@::ffff:192.168.1.23
[saned] quit: exiting


Der xinetd ist wie folgt eingerichtet:
Code:
cat /etc/xinetd.d/sane-daemon
service sane-port
{
    socket_type = stream
    server = /usr/sbin/saned
    protocol = tcp
    user = root
    group = scanner
    wait = no
    disable = no
}


Starte ich ihn, erhalte ich bei Zugriff mit scanimage -L vom Client keine Antwort und in der /var/log/messages folgende Ausgabe:
Code:

Mar 24 12:35:45 pc-gentoo xinetd[26041]: FAIL: sane-port address from=192.168.1.23
Mar 24 12:35:45 pc-gentoo xinetd[26029]: START: sane-port pid=26041 from=192.168.1.23
Mar 24 12:35:45 pc-gentoo xinetd[26029]: EXIT: sane-port status=0 pid=26041 duration=0(sec)
Mar 24 12:39:25 pc-gentoo xinetd[26029]: Exiting...


Auch die /etc/services scheint zu stimmen:
Code:

cat /etc/services | grep sane
sane-port   6566/tcp         # SANE Network Scanner Control Port
sane-port   6566/udp


Experimente mit verschiedenen Usern und Gruppen in der /etc/xinetd.d/sane-daemon brachten nichts. Ich gehe aber eindeutig von einer falschen Konfiguration des xinetd aus.

Kann jemand helfen?

Vielen Dank
wuesti


Last edited by wuesti on Tue Mar 24, 2009 2:04 pm; edited 1 time in total
Back to top
View user's profile Send private message
wuesti
Apprentice
Apprentice


Joined: 07 Mar 2009
Posts: 191

PostPosted: Tue Mar 24, 2009 2:03 pm    Post subject: Fehler gefunden Reply with quote

Moin!

Kleine Ursache, große Wirkung: In der /etc/xinetd.conf stand noch der Eintrag
Code:
only_from   = localhost


Gruß
wuesti
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum