LPD Daemon problem - Linux

This is a discussion on LPD Daemon problem - Linux ; Hi guys I have this strange problem, even though I tried to fix it - reading a lot of paper work. I still don't have a clue what's the problem. So here it is: When I try to start the ...

+ Reply to Thread
Results 1 to 6 of 6

Thread: LPD Daemon problem

  1. LPD Daemon problem

    Hi guys
    I have this strange problem, even though I tried to fix it - reading
    a lot of paper work. I still don't have a clue what's the problem.
    So here it is:
    When I try to start the deamon
    # lpd
    2004-01-15-01:27:22.338 hellraier Setup_log: open /dev/null failed -
    Permission denied
    In the same time the premitions of my /dev/null file are 666:
    crw-rw-rw- 1 root root 1, 3 юли 18
    1994 /dev/null
    When I try to start the server as a user it says the following:
    $ lpd
    2004-01-15-01:27:43.563 hellraiser lpd: Cannot open lock file
    '/var/run/lpd.515' - Permission denied
    When I fix the premitions of /var/run/lpd.515 file to 666 it says:
    $ lpd
    Fatal error - Cannot bind to lpd port '515'

    My OS is Slackware 9.0 - there is no other /dev/null file in my system
    at least locate does'n find it.

    How can I solve this problem.

    ThanX AnyHow

  2. Re: LPD Daemon problem

    Oddicy wrote:

    > When I try to start the deamon
    > # lpd
    > 2004-01-15-01:27:22.338 hellraier Setup_log: open /dev/null failed -
    > Permission denied
    > In the same time the premitions of my /dev/null file are 666:
    > crw-rw-rw- 1 root root 1, 3 юли 18
    > 1994 /dev/null

    ^^^^^^^^^^^^^^^^^^^^^
    What locale are you using?

    Try this, post the file /tmp/trace.txt if you can't understand it.

    strace -o /tmp/trace.txt -f lpd

    I notice that you're using a different locale. What happens when you
    start lpd with the following

    LANG=C lpd

    --
    Cameron Kerr
    cameron.kerr@paradise.net.nz : http://nzgeeks.org/cameron/
    Empowered by Perl!

  3. Re: LPD Daemon problem

    >What locale are you using?
    >
    > Try this, post the file /tmp/trace.txt if you can't understand it.
    >
    > strace -o /tmp/trace.txt -f lpd
    >
    > I notice that you're using a different locale. What happens when you
    > start lpd with the following
    >
    > LANG=C lpd


    O.K. now. Setting this

    # LANG=C lpd
    2004-01-16-09:25:31.454 hellraiser Setup_log: open /dev/null failed -
    Permission denied

    As you can see the problem still ocures.
    Now here I'll post my strace output:

    # cat trace.lpd.txt
    30099 execve("/usr/sbin/lpd", ["lpd"], [/* 36 vars */]) = 0
    30099 brk(0) = 0x804ed4c
    30099 open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file
    or directory)
    30099 open("/etc/ld.so.cache", O_RDONLY) = 3
    30099 fstat64(3, {st_mode=S_IFREG|0644, st_size=53891, ...}) = 0
    30099 old_mmap(NULL, 53891, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40015000
    30099 close(3) = 0
    30099 open("/usr/lib/liblpr.so.0", O_RDONLY) = 3
    30099 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\24 0
    \1"..., 1024) = 1024
    30099 fstat64(3, {st_mode=S_IFREG|0755, st_size=575828, ...}) = 0
    30099 old_mmap(NULL, 577060, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) =
    0x40023000
    30099 mprotect(0x400aa000, 24100, PROT_NONE) = 0
    30099 old_mmap(0x400aa000, 24576, PROT_READ|PROT_WRITE,
    MAP_PRIVATE|MAP_FIXED, 3, 0x87000) = 0x400aa000
    30099 close(3) = 0
    30099 open("/usr/lib/libssl.so.0", O_RDONLY) = 3
    30099 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\30 0\204"...,
    1024) = 1024
    30099 fstat64(3, {st_mode=S_IFREG|0555, st_size=196592, ...}) = 0
    30099 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE,
    MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x400b0000
    30099 old_mmap(NULL, 200644, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) =
    0x400b1000
    30099 mprotect(0x400df000, 12228, PROT_NONE) = 0
    30099 old_mmap(0x400df000, 12288, PROT_READ|PROT_WRITE,
    MAP_PRIVATE|MAP_FIXED, 3, 0x2d000) = 0x400df000
    30099 close(3) = 0
    30099 open("/usr/lib/libcrypto.so.0", O_RDONLY) = 3
    30099 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0@\2 71\2"...,
    1024) = 1024
    30099 fstat64(3, {st_mode=S_IFREG|0555, st_size=1026744, ...}) = 0
    30099 old_mmap(NULL, 1035832, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0)
    = 0x400e2000
    30099 mprotect(0x401ca000, 85560, PROT_NONE) = 0
    30099 old_mmap(0x401ca000, 73728, PROT_READ|PROT_WRITE,
    MAP_PRIVATE|MAP_FIXED, 3, 0xe7000) = 0x401ca000
    30099 old_mmap(0x401dc000, 11832, PROT_READ|PROT_WRITE,
    MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x401dc000
    30099 close(3) = 0
    30099 open("/lib/libc.so.6", O_RDONLY) = 3
    30099 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0p\\ \1\000"...,
    1024) = 1024
    30099 fstat64(3, {st_mode=S_IFREG|0755, st_size=1435624, ...}) = 0
    30099 old_mmap(NULL, 1256740, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0)
    = 0x401df000
    30099 mprotect(0x40309000, 36132, PROT_NONE) = 0
    30099 old_mmap(0x40309000, 20480, PROT_READ|PROT_WRITE,
    MAP_PRIVATE|MAP_FIXED, 3, 0x12a000) = 0x40309000
    30099 old_mmap(0x4030e000, 15652, PROT_READ|PROT_WRITE,
    MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4030e000
    30099 close(3) = 0
    30099 open("/lib/libdl.so.2", O_RDONLY) = 3
    30099 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0000 \31\0"...,
    1024) = 1024
    30099 fstat64(3, {st_mode=S_IFREG|0755, st_size=11812, ...}) = 0
    30099 old_mmap(NULL, 11476, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) =
    0x40312000
    30099 mprotect(0x40314000, 3284, PROT_NONE) = 0
    30099 old_mmap(0x40314000, 4096, PROT_READ|PROT_WRITE,
    MAP_PRIVATE|MAP_FIXED, 3, 0x1000) = 0x40314000
    30099 close(3) = 0
    30099 munmap(0x40015000, 53891) = 0
    30099 rt_sigaction(SIGHUP, {0x804b720, [], SA_RESTART|0x4000000},
    {SIG_DFL}, 8) = 0
    30099 rt_sigaction(SIGINT, {0x80499bc, [], SA_RESTART|0x4000000},
    {SIG_DFL}, 8) = 0
    30099 rt_sigaction(SIGQUIT, {0x8049b4c, [], SA_RESTART|0x4000000},
    {SIG_DFL}, 8) = 0
    30099 rt_sigaction(SIGTERM, {0x804970c, [], SA_RESTART|0x4000000},
    {SIG_DFL}, 8) = 0
    30099 rt_sigaction(SIGUSR1, {SIG_IGN}, {SIG_DFL}, 8) = 0
    30099 rt_sigaction(SIGUSR2, {SIG_IGN}, {SIG_DFL}, 8) = 0
    30099 rt_sigaction(SIGCHLD, {SIG_DFL}, {SIG_DFL}, 8) = 0
    30099 rt_sigaction(SIGPIPE, {SIG_IGN}, {SIG_DFL}, 8) = 0
    30099 rt_sigprocmask(SIG_SETMASK, [], [RTMIN], 8) = 0
    30099 getuid32() = 0
    30099 open("/dev/null", O_RDWR) = 3
    30099 dup(3) = 4
    30099 dup(4) = 5
    30099 close(5) = 0
    30099 brk(0) = 0x804ed4c
    30099 brk(0x804fd4c) = 0x804fd4c
    30099 brk(0x8050000) = 0x8050000
    30099 umask(077) = 022
    30099 geteuid32() = 0
    30099 getuid32() = 0
    30099 getegid32() = 0
    30099 getgid32() = 0
    30099 setuid32(0) = 0
    30099 setresuid32(0xffffffff, 0, 0xffffffff) = 0
    30099 getuid32() = 0
    30099 open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE) = 5
    30099 fstat64(5, {st_mode=S_IFREG|0644, st_size=20747072, ...}) = 0
    30099 mmap2(NULL, 2097152, PROT_READ, MAP_PRIVATE, 5, 0) = 0x40315000
    30099 mmap2(NULL, 28672, PROT_READ, MAP_PRIVATE, 5, 0x387) =
    0x40015000
    30099 mmap2(NULL, 167936, PROT_READ, MAP_PRIVATE, 5, 0x1243) =
    0x40515000
    30099 close(5) = 0
    30099 brk(0x8051000) = 0x8051000
    30099 stat64("/etc/lpd.conf", {st_mode=S_IFREG|0644, st_size=20398,
    ....}) = 0
    30099 open("/etc/lpd.conf", O_RDONLY|O_NOCTTY) = 5
    30099 fstat64(5, {st_mode=S_IFREG|0644, st_size=20398, ...}) = 0
    30099 read(5, "# lpd.conf\n# VERSION=3.8.20\n# lp"..., 10239) = 10239
    30099 brk(0x8053000) = 0x8053000
    30099 read(5, "lt lpd_port=515 (STRING)\n# Purp"..., 10239) = 10159
    30099 brk(0x8058000) = 0x8058000
    30099 read(5, "", 10239) = 0
    30099 close(5) = 0
    30099 uname({sys="Linux", node="stanman", ...}) = 0
    30099 gettimeofday({1074237853, 642024}, NULL) = 0
    30099 getpid() = 30099
    30099 open("/etc/resolv.conf", O_RDONLY) = 5
    30099 fstat64(5, {st_mode=S_IFREG|0644, st_size=41, ...}) = 0
    30099 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE,
    MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001c000
    30099 read(5, "search interbild.net\nnameserver "..., 4096) = 41
    30099 read(5, "", 4096) = 0
    30099 close(5) = 0
    30099 munmap(0x4001c000, 4096) = 0
    30099 socket(PF_UNIX, SOCK_STREAM, 0) = 5
    30099 connect(5, {sin_family=AF_UNIX, path="/var/run/.nscd_socket"},
    110) = -1 ENOENT (No such file or directory)
    30099 close(5) = 0
    30099 open("/etc/nsswitch.conf", O_RDONLY) = 5
    30099 fstat64(5, {st_mode=S_IFREG|0644, st_size=1083, ...}) = 0
    30099 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE,
    MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001c000
    30099 read(5, "#\n# /etc/nsswitch.conf\n#\n# An ex"..., 4096) = 1083
    30099 read(5, "", 4096) = 0
    30099 close(5) = 0
    30099 munmap(0x4001c000, 4096) = 0
    30099 open("/etc/ld.so.cache", O_RDONLY) = 5
    30099 fstat64(5, {st_mode=S_IFREG|0644, st_size=53891, ...}) = 0
    30099 old_mmap(NULL, 53891, PROT_READ, MAP_PRIVATE, 5, 0) = 0x4053e000
    30099 close(5) = 0
    30099 open("/lib/libnss_files.so.2", O_RDONLY) = 5
    30099 read(5, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\24 0\35"...,
    1024) = 1024
    30099 fstat64(5, {st_mode=S_IFREG|0755, st_size=43673, ...}) = 0
    30099 old_mmap(NULL, 39848, PROT_READ|PROT_EXEC, MAP_PRIVATE, 5, 0) =
    0x4054c000
    30099 mprotect(0x40555000, 2984, PROT_NONE) = 0
    30099 old_mmap(0x40555000, 4096, PROT_READ|PROT_WRITE,
    MAP_PRIVATE|MAP_FIXED, 5, 0x8000) = 0x40555000
    30099 close(5) = 0
    30099 munmap(0x4053e000, 53891) = 0
    30099 open("/etc/host.conf", O_RDONLY) = 5
    30099 fstat64(5, {st_mode=S_IFREG|0644, st_size=27, ...}) = 0
    30099 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE,
    MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001c000
    30099 read(5, "order hosts, bind\nmulti on\n", 4096) = 27
    30099 read(5, "", 4096) = 0
    30099 close(5) = 0
    30099 munmap(0x4001c000, 4096) = 0
    30099 open("/etc/hosts", O_RDONLY) = 5
    30099 fcntl64(5, F_GETFD) = 0
    30099 fcntl64(5, F_SETFD, FD_CLOEXEC) = 0
    30099 fstat64(5, {st_mode=S_IFREG|0644, st_size=626, ...}) = 0
    30099 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE,
    MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001c000
    30099 read(5, "#\n# hosts\t\tThis file describes a"..., 4096) = 626
    30099 read(5, "", 4096) = 0
    30099 close(5) = 0
    30099 munmap(0x4001c000, 4096) = 0
    30099 socket(PF_UNIX, SOCK_STREAM, 0) = 5
    30099 connect(5, {sin_family=AF_UNIX, path="/var/run/.nscd_socket"},
    110) = -1 ENOENT (No such file or directory)
    30099 close(5) = 0
    30099 open("/etc/hosts", O_RDONLY) = 5
    30099 fcntl64(5, F_GETFD) = 0
    30099 fcntl64(5, F_SETFD, FD_CLOEXEC) = 0
    30099 fstat64(5, {st_mode=S_IFREG|0644, st_size=626, ...}) = 0
    30099 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE,
    MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001c000
    30099 read(5, "#\n# hosts\t\tThis file describes a"..., 4096) = 626
    30099 read(5, "", 4096) = 0
    30099 close(5) = 0
    30099 munmap(0x4001c000, 4096) = 0
    30099 socket(PF_UNIX, SOCK_STREAM, 0) = 5
    30099 connect(5, {sin_family=AF_UNIX, path="/var/run/.nscd_socket"},
    110) = -1 ENOENT (No such file or directory)
    30099 close(5) = 0
    30099 open("/etc/hosts", O_RDONLY) = 5
    30099 fcntl64(5, F_GETFD) = 0
    30099 fcntl64(5, F_SETFD, FD_CLOEXEC) = 0
    30099 fstat64(5, {st_mode=S_IFREG|0644, st_size=626, ...}) = 0
    30099 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE,
    MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001c000
    30099 read(5, "#\n# hosts\t\tThis file describes a"..., 4096) = 626
    30099 close(5) = 0
    30099 munmap(0x4001c000, 4096) = 0
    30099 socket(PF_UNIX, SOCK_STREAM, 0) = 5
    30099 connect(5, {sin_family=AF_UNIX, path="/var/run/.nscd_socket"},
    110) = -1 ENOENT (No such file or directory)
    30099 close(5) = 0
    30099 open("/etc/ld.so.cache", O_RDONLY) = 5
    30099 fstat64(5, {st_mode=S_IFREG|0644, st_size=53891, ...}) = 0
    30099 old_mmap(NULL, 53891, PROT_READ, MAP_PRIVATE, 5, 0) = 0x4053e000
    30099 close(5) = 0
    30099 open("/lib/libnss_compat.so.2", O_RDONLY) = 5
    30099 read(5, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0P\2 6\0\000"...,
    1024) = 1024
    30099 fstat64(5, {st_mode=S_IFREG|0755, st_size=49939, ...}) = 0
    30099 old_mmap(NULL, 46424, PROT_READ|PROT_EXEC, MAP_PRIVATE, 5, 0) =
    0x40556000
    30099 mprotect(0x40561000, 1368, PROT_NONE) = 0
    30099 old_mmap(0x40561000, 4096, PROT_READ|PROT_WRITE,
    MAP_PRIVATE|MAP_FIXED, 5, 0xa000) = 0x40561000
    30099 close(5) = 0
    30099 open("/lib/libnsl.so.1", O_RDONLY) = 5
    30099 read(5, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0P<\0\000"...,
    1024) = 1024
    30099 fstat64(5, {st_mode=S_IFREG|0755, st_size=87653, ...}) = 0
    30099 old_mmap(NULL, 85024, PROT_READ|PROT_EXEC, MAP_PRIVATE, 5, 0) =
    0x40562000
    30099 mprotect(0x40574000, 11296, PROT_NONE) = 0
    30099 old_mmap(0x40574000, 4096, PROT_READ|PROT_WRITE,
    MAP_PRIVATE|MAP_FIXED, 5, 0x11000) = 0x40574000
    30099 old_mmap(0x40575000, 7200, PROT_READ|PROT_WRITE,
    MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40575000
    30099 close(5) = 0
    30099 munmap(0x4053e000, 53891) = 0
    30099 uname({sys="Linux", node="stanman", ...}) = 0
    30099 open("/etc/passwd", O_RDONLY) = 5
    30099 fcntl64(5, F_GETFD) = 0
    30099 fcntl64(5, F_SETFD, FD_CLOEXEC) = 0
    30099 fstat64(5, {st_mode=S_IFREG|0644, st_size=571, ...}) = 0
    30099 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE,
    MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001c000
    30099 _llseek(5, 0, [0], SEEK_CUR) = 0
    30099 read(5, "root:x:0:0::/root:/bin/bash\nbin:"..., 4096) = 571
    30099 close(5) = 0
    30099 munmap(0x4001c000, 4096) = 0
    30099 open("/etc/group", O_RDONLY) = 5
    30099 fcntl64(5, F_GETFD) = 0
    30099 fcntl64(5, F_SETFD, FD_CLOEXEC) = 0
    30099 fstat64(5, {st_mode=S_IFREG|0644, st_size=532, ...}) = 0
    30099 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE,
    MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001c000
    30099 _llseek(5, 0, [0], SEEK_CUR) = 0
    30099 read(5, "root::0:root,StanTheMan\nbin::1:r"..., 4096) = 532
    30099 close(5) = 0
    30099 munmap(0x4001c000, 4096) = 0
    30099 open("/etc/passwd", O_RDONLY) = 5
    30099 fcntl64(5, F_GETFD) = 0
    30099 fcntl64(5, F_SETFD, FD_CLOEXEC) = 0
    30099 fstat64(5, {st_mode=S_IFREG|0644, st_size=571, ...}) = 0
    30099 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE,
    MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001c000
    30099 _llseek(5, 0, [0], SEEK_CUR) = 0
    30099 read(5, "root:x:0:0::/root:/bin/bash\nbin:"..., 4096) = 571
    30099 close(5) = 0
    30099 munmap(0x4001c000, 4096) = 0
    30099 setuid32(0) = 0
    30099 open("/etc/group", O_RDONLY) = 5
    30099 fcntl64(5, F_GETFD) = 0
    30099 fcntl64(5, F_SETFD, FD_CLOEXEC) = 0
    30099 fstat64(5, {st_mode=S_IFREG|0644, st_size=532, ...}) = 0
    30099 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE,
    MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001c000
    30099 _llseek(5, 0, [0], SEEK_CUR) = 0
    30099 read(5, "root::0:root,StanTheMan\nbin::1:r"..., 4096) = 532
    30099 read(5, "", 4096) = 0
    30099 close(5) = 0
    30099 munmap(0x4001c000, 4096) = 0
    30099 setgroups32(0x2, 0x8052b98) = 0
    30099 setgid32(0x7

    ------------
    ThanX AnyHow ---Oddicy---
    ------------

  4. Re: LPD Daemon problem

    Oddicy wrote:

    > # LANG=C lpd
    > 2004-01-16-09:25:31.454 hellraiser Setup_log: open /dev/null failed -
    > Permission denied
    >
    > As you can see the problem still ocures.
    > Now here I'll post my strace output:
    >
    > # cat trace.lpd.txt
    > 30099 execve("/usr/sbin/lpd", ["lpd"], [/* 36 vars */]) = 0

    ....
    > 30099 open("/dev/null", O_RDWR) = 3


    Well, this is the only place that opens /dev/null, and it opens without
    problem.

    > 30099 setresuid32(0xffffffff, 0, 0xffffffff) = 0


    This call sets the only the effective UID to root, and succeeds, so
    that's in the clear.

    > 30099 uname({sys="Linux", node="stanman", ...}) = 0


    Hmmm, why does is the host called stanman here, when the log message
    says hellhaiser?

    > 30099 setuid32(0) = 0

    ....
    > 30099 setgroups32(0x2, 0x8052b98) = 0
    > 30099 setgid32(0x7


    Ahh, where is the rest of that call?

    If you want to repeat it, use the command

    strace -f -e trace=open,process lpd

    Anyway, it looks like it has succeeded in that run. Strange.

    What lpd software are you running? What Distro and version?

    What are the permissions on /usr/sbin/lpd (or whatever `which lpd`
    returns)? strace doesn't respect setuid bits etc (unless its set setuid
    root, see the manpage).

    --
    Cameron Kerr
    cameron.kerr@paradise.net.nz : http://nzgeeks.org/cameron/
    Empowered by Perl!

  5. Re: LPD Daemon problem

    Hellhaiser, stanman (I've changed it - it's the same). I think that
    the problem is in the localhost configuration. When I try to connect
    to:
    # telnet localhost
    Trying 127.0.0.1...
    telnet: connect to address 127.0.0.1: Connection refused

    This is totaly wrong. At least because I explictly say:
    # ifconfig lo 127.0.0.1
    # route add -host 127.0.0.1 lo
    # telnet localhost
    Trying 127.0.0.1...
    telnet: connect to address 127.0.0.1: Connection refused

    And I don't have any firewall rule !!!
    How can I fix this problem? When I start
    # lpc
    lpc> active
    Printer 'lp@localhost' - cannot open connection - Connection refused
    Make sure the remote host supports the LPD protocol

    The same is happened when I trigger:
    # lpc
    lpc> lpd
    Printer 'lp@localhost' - cannot open connection - Connection refused
    Make sure the remote host supports the LPD protocol

    What could cause this problem. I don't think it's the permitions - I'm
    root.

    ------------
    ThanX AnyHow ---Oddicy---
    ------------

  6. Re: LPD Daemon problem

    Oddicy shaped electrons to say:
    > Hellhaiser, stanman (I've changed it - it's the same). I think that
    > the problem is in the localhost configuration. When I try to connect
    > to:
    > # telnet localhost
    > Trying 127.0.0.1...
    > telnet: connect to address 127.0.0.1: Connection refused
    >
    > This is totaly wrong. At least because I explictly say:
    > # ifconfig lo 127.0.0.1
    > # route add -host 127.0.0.1 lo
    > # telnet localhost
    > Trying 127.0.0.1...
    > telnet: connect to address 127.0.0.1: Connection refused
    >
    > And I don't have any firewall rule !!!
    > How can I fix this problem? When I start
    > # lpc
    > lpc> active
    > Printer 'lp@localhost' - cannot open connection - Connection refused
    > Make sure the remote host supports the LPD protocol
    >
    > The same is happened when I trigger:
    > # lpc
    > lpc> lpd
    > Printer 'lp@localhost' - cannot open connection - Connection refused
    > Make sure the remote host supports the LPD protocol
    >
    > What could cause this problem. I don't think it's the permitions - I'm
    > root.


    You still need to have telnet installed AND enabled for telnet to work.
    The default installs leave off the telnet server and if you do install
    the package, you need to enable the service in /etc/xinet.d/telnet for
    it to work.

    HTH

    --
    Gregory G. "Wolfe" Woodbury `-_-' Owner/Admin: wolves.durham.nc.us
    ggw at wolves.durham.nc.us U RHCT August 2003
    "The Line Eater is a boojum snark." Hug your wolf.

+ Reply to Thread