linux-admin.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* lpd user woes
@ 2003-02-11 10:34 Mat Harris
       [not found] ` <Pine.GSO.4.44.0302111319050.23807-100000@tron.dai.ed.ac.uk>
  0 siblings, 1 reply; 3+ messages in thread
From: Mat Harris @ 2003-02-11 10:34 UTC (permalink / raw)
  To: linux-admin

[-- Attachment #1: Type: text/plain, Size: 792 bytes --]

I am running redhat 8.0 and I would like to get lpd running as root, not lp.

I know you all want to warn me about the dangers, but seeing as I am
normally the first to warn, you can skip that step.

I am trying to get an entry in printcap to pipe the print job to mpg123 on
stdin to make an mp3 printer. I have it all working except when I print and
view the log, i see that the lp user couldn't access the sound device, with
the error:

no suitable libao driver found (device is in use?)

This happens on every box i have so it is not a localised issue.

Please can someone either tell me how to give lp access to the sound device,
or how to make lpd run as root.


cheers

-- 
Mat Harris			OpenGPG Public Key ID: C37D57D9
mat.harris@genestate.com	www.genestate.com	

[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: lpd user woes
       [not found] ` <Pine.GSO.4.44.0302111319050.23807-100000@tron.dai.ed.ac.uk>
@ 2003-02-11 13:26   ` Mat Harris
  2003-02-11 21:22     ` Mat Harris
  0 siblings, 1 reply; 3+ messages in thread
From: Mat Harris @ 2003-02-11 13:26 UTC (permalink / raw)
  To: John Hallam; +Cc: linux-admin

[-- Attachment #1: Type: text/plain, Size: 919 bytes --]

On Tue, Feb 11, 2003 at 01:22:10 +0000, John Hallam wrote:
> 	Does it happen if you do `su lp' as root and then execute the code
> that the lp user tries to execute?  It might be that the environment (PATH
> variable etc.) presented by lpd to its sub-processes is missing some vital
> piece of information...

if i do `su - lp` it does exactly the same

btw, the code i run for testing is `cat test.mp3 | mpg123 -`

> 	You could give the lp user group access to the sound device, by
> changing the ownership and permissions on the sound device or by changing
> the group membership possibilities for lp in /etc/groups.  Either of these
> may have other consequences.

i have changed /etc/passwd so the group for lp is 0 and changed /etc/groups
so lp is a member of root but i still have to same problem.

-- 
Mat Harris			OpenGPG Public Key ID: C37D57D9
mat.harris@genestate.com	www.genestate.com	

[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: lpd user woes
  2003-02-11 13:26   ` Mat Harris
@ 2003-02-11 21:22     ` Mat Harris
  0 siblings, 0 replies; 3+ messages in thread
From: Mat Harris @ 2003-02-11 21:22 UTC (permalink / raw)
  To: John Hallam; +Cc: linux-admin

[-- Attachment #1: Type: text/plain, Size: 1423 bytes --]

There are no differences between the su and su - environments. 

I have found a workaround for now, which is setting the uid for lp to 0 i
/etc/passwd but this is (hopefully) only temporary. If anyone knows how to
get lp to access the sound device or lib, please spill.


for now: SOLVED;

On Tue, Feb 11, 2003 at 01:26:19PM +0000, Mat Harris wrote:
> On Tue, Feb 11, 2003 at 01:22:10 +0000, John Hallam wrote:
> > 	Does it happen if you do `su lp' as root and then execute the code
> > that the lp user tries to execute?  It might be that the environment (PATH
> > variable etc.) presented by lpd to its sub-processes is missing some vital
> > piece of information...
> 
> if i do `su - lp` it does exactly the same
> 
> btw, the code i run for testing is `cat test.mp3 | mpg123 -`
> 
> > 	You could give the lp user group access to the sound device, by
> > changing the ownership and permissions on the sound device or by changing
> > the group membership possibilities for lp in /etc/groups.  Either of these
> > may have other consequences.
> 
> i have changed /etc/passwd so the group for lp is 0 and changed /etc/groups
> so lp is a member of root but i still have to same problem.
> 
> -- 
> Mat Harris			OpenGPG Public Key ID: C37D57D9
> mat.harris@genestate.com	www.genestate.com	



-- 
Mat Harris			OpenGPG Public Key ID: C37D57D9
mat.harris@genestate.com	www.genestate.com	

[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-02-11 21:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-11 10:34 lpd user woes Mat Harris
     [not found] ` <Pine.GSO.4.44.0302111319050.23807-100000@tron.dai.ed.ac.uk>
2003-02-11 13:26   ` Mat Harris
2003-02-11 21:22     ` Mat Harris

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).