From: Mat Harris Subject: Re: lpd user woes Date: Tue, 11 Feb 2003 21:22:23 +0000 Sender: linux-admin-owner@vger.kernel.org Message-ID: <20030211212223.GA2383@genestate.com> References: <20030211103446.GA30267@genestate.com> <20030211132619.GA31839@genestate.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="mYCpIKhGyMATD0i+" Return-path: Content-Disposition: inline In-Reply-To: <20030211132619.GA31839@genestate.com> List-Id: To: John Hallam Cc: linux-admin@vger.kernel.org --mYCpIKhGyMATD0i+ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable There are no differences between the su and su - environments.=20 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 (P= ATH > > variable etc.) presented by lpd to its sub-processes is missing some vi= tal > > piece of information... >=20 > if i do `su - lp` it does exactly the same >=20 > btw, the code i run for testing is `cat test.mp3 | mpg123 -` >=20 > > You could give the lp user group access to the sound device, by > > changing the ownership and permissions on the sound device or by changi= ng > > the group membership possibilities for lp in /etc/groups. Either of th= ese > > may have other consequences. >=20 > i have changed /etc/passwd so the group for lp is 0 and changed /etc/grou= ps > so lp is a member of root but i still have to same problem. >=20 > --=20 > Mat Harris OpenGPG Public Key ID: C37D57D9 > mat.harris@genestate.com www.genestate.com=09 --=20 Mat Harris OpenGPG Public Key ID: C37D57D9 mat.harris@genestate.com www.genestate.com=09 --mYCpIKhGyMATD0i+ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE+SWmNEsYvZsN9V9kRAqwsAKDWJvhjafbo4isvdOVP3+IbFYUbUQCfdLQP +L2cmpfLz7BsuBcuDa6hH00= =GIOe -----END PGP SIGNATURE----- --mYCpIKhGyMATD0i+--