











|  |
Ziol
Guest
Registered: Not Yet Location: Country: State: Certifications: Working on:
Total Posts: N/A
|
|
LPRNG trouble
I am running slackware and trying to make the lprng spooler to work.
((LPRng-3.8.12 installed from slackware package) I can't start the lpd
daemon - it says "open /dev/null failed - Permission denied" while checkpc
says "Warning - lp: cannot stat lp device '/dev/lp0' - Permission denied".
Those files exist and I do have read/write permission. The printer is also
ok because I can cat foo > /dev/lp0. I have read everything I could find on
the subject but found nothing relevant. Please help !
Report this post to a moderator
|
|
08-10-02 10:23 PM
|
|
Dave Uhring
Guest
Registered: Not Yet Location: Country: State: Certifications: Working on:
Total Posts: N/A
|
|
Re: LPRNG trouble
Ziol wrote:
> I am running slackware and trying to make the lprng spooler to work.
> ((LPRng-3.8.12 installed from slackware package) I can't start the lpd
> daemon - it says "open /dev/null failed - Permission denied" while
> checkpc says "Warning - lp: cannot stat lp device '/dev/lp0' -
> Permission denied". Those files exist and I do have read/write
> permission.
"You" have write permission to /dev/lp0? Who are you? Are you lp?
Report this post to a moderator
|
|
08-11-02 12:23 AM
|
|
Ziol
Guest
Registered: Not Yet Location: Country: State: Certifications: Working on:
Total Posts: N/A
|
|
Re: LPRNG trouble
Dave Uhring wrote:
> Ziol wrote:
>
>> I am running slackware and trying to make the lprng spooler to work.
>> ((LPRng-3.8.12 installed from slackware package) I can't start the lpd
>> daemon - it says "open /dev/null failed - Permission denied" while
>> checkpc says "Warning - lp: cannot stat lp device '/dev/lp0' -
>> Permission denied". Those files exist and I do have read/write
>> permission.
>
> "You" have write permission to /dev/lp0? Who are you? Are you lp?
No, I am root, but I gave r/w permissions to everyone. Cat foo > /dev/lp0
works so I have the permissions.
Report this post to a moderator
|
|
08-11-02 01:23 PM
|
|
Dave Uhring
Guest
Registered: Not Yet Location: Country: State: Certifications: Working on:
Total Posts: N/A
|
|
Re: LPRNG trouble
Ziol wrote:
> Dave Uhring wrote:
>> "You" have write permission to /dev/lp0? Who are you? Are you lp?
>
> No, I am root, but I gave r/w permissions to everyone. Cat foo >
> /dev/lp0 works so I have the permissions.
It is more than likely that LPRng requires that /dev/lp0 be writable by
the user lp. See for yourself if anyone but root can write to that
device:
[dev]$ ls -l /dev/lp0
crw-rw---- 1 root lp 6, 0 Apr 11 09:25 /dev/lp0
This is on a Red Hat system; Slackware may have another user for running
lpd. But the user which owns lpd MUST have write permission to
/dev/lp0. And that user is NOT root.
[dev]$ ps auxww | grep lpd
lp 736 0.0 0.1 3108 776 ? S Aug04 0:00 lpd Waiting
^^
That is the user which owns lpd and that user is not root.
Once you get the permissions/ownership of /dev/lp0 correct then, as
root, run 'checkpc -f'.
Report this post to a moderator
|
|
08-11-02 02:23 PM
|
|
Ziol
Guest
Registered: Not Yet Location: Country: State: Certifications: Working on:
Total Posts: N/A
|
|
Re: LPRNG trouble
Dave Uhring wrote:
> Ziol wrote:
>
>> Dave Uhring wrote:
>
>>> "You" have write permission to /dev/lp0? Who are you? Are you lp?
>>
>> No, I am root, but I gave r/w permissions to everyone. Cat foo >
>> /dev/lp0 works so I have the permissions.
>
> It is more than likely that LPRng requires that /dev/lp0 be writable by
> the user lp. See for yourself if anyone but root can write to that
> device:
>
> [dev]$ ls -l /dev/lp0
> crw-rw---- 1 root lp 6, 0 Apr 11 09:25 /dev/lp0
>
> This is on a Red Hat system; Slackware may have another user for running
> lpd. But the user which owns lpd MUST have write permission to
> /dev/lp0. And that user is NOT root.
>
> [dev]$ ps auxww | grep lpd
> lp 736 0.0 0.1 3108 776 ? S Aug04 0:00 lpd Waiting
> ^^
>
> That is the user which owns lpd and that user is not root.
>
> Once you get the permissions/ownership of /dev/lp0 correct then, as
> root, run 'checkpc -f'.
bash-2.05# ls -l /dev/lp0
crw-rw-rw- 1 root root 6, 0 Apr 28 1995 /dev/lp0
isn't this enough? And what it wants with /dev/null?
Report this post to a moderator
|
|
08-11-02 03:23 PM
|
|
Ziol
Guest
Registered: Not Yet Location: Country: State: Certifications: Working on:
Total Posts: N/A
|
|
Re: LPRNG trouble
Ziol wrote:
> Dave Uhring wrote:
>
>> Ziol wrote:
>>
>>> Dave Uhring wrote:
>>
>>>> "You" have write permission to /dev/lp0? Who are you? Are you lp?
>>>
>>> No, I am root, but I gave r/w permissions to everyone. Cat foo >
>>> /dev/lp0 works so I have the permissions.
>>
>> It is more than likely that LPRng requires that /dev/lp0 be writable by
>> the user lp. See for yourself if anyone but root can write to that
>> device:
>>
>> [dev]$ ls -l /dev/lp0
>> crw-rw---- 1 root lp 6, 0 Apr 11 09:25 /dev/lp0
>>
>> This is on a Red Hat system; Slackware may have another user for running
>> lpd. But the user which owns lpd MUST have write permission to
>> /dev/lp0. And that user is NOT root.
>>
>> [dev]$ ps auxww | grep lpd
>> lp 736 0.0 0.1 3108 776 ? S Aug04 0:00 lpd Waiting
>> ^^
>>
>> That is the user which owns lpd and that user is not root.
>>
>> Once you get the permissions/ownership of /dev/lp0 correct then, as
>> root, run 'checkpc -f'.
>
> bash-2.05# ls -l /dev/lp0
> crw-rw-rw- 1 root root 6, 0 Apr 28 1995 /dev/lp0
>
> isn't this enough? And what it wants with /dev/null?
Problem solved! I gave permission to use the file, but not to ENTER the /dev
directory! How stupid of me. Thanks for your help!
Report this post to a moderator
|
|
08-11-02 03:23 PM
|
|
|
Forum Rules: Who Can Read The Forum? Any registered user or guest.
Who Can Post New Topics? Any registered user.
Who Can Post Replies? Any registered user.
Changes: Messages can be edited by their author.
Posts: HTML code is OFF. Smilies are ON. vB code is ON. [IMG] code is OFF. |
|
ExamNotes forum archive
|