Path: utzoo!attcan!uunet!vsi!friedl From: friedl@vsi.COM (Stephen J. Friedl) Newsgroups: comp.unix.wizards Subject: Re: Occasionally lp cannot find my print file. Why? Summary: lp is setgid... Keywords: lp Message-ID: <1008@vsi.COM> Date: 13 Jan 89 04:25:07 GMT References: <1512@anasaz.UUCP> Organization: V-Systems, Inc. -- Santa Ana, CA Lines: 27 In article <1512@anasaz.UUCP>, duane@anasaz.UUCP (Duane Morse) writes: > Occasionally I try to enqueue a file for printing by > > lp xxx > > and lp comes back with a message saying that it cannot find "xxx". It > also cannot find it when I specify the file by ./xxx. I end up having > to cat the file and pipe it to lp. The file permissions are read/write > for everybody. This is probably under System V. The lp command is usually setuid "lp" and setgid "bin", so an inaccessible *parent* directory will yield one of these "cannot access" messages. Rather than cat the file and pipe it to lp, do: lp < xxx This misfeature is fixed in System V Release 3.2 (on the 3B2, at least). Steve -- Stephen J. Friedl 3B2-kind-of-guy friedl@vsi.com V-Systems, Inc. I speak for me only attmail!vsi!friedl Santa Ana, CA USA +1 714 545 6442 {backbones}!vsi!friedl ---------Nancy Reagan on Hawaiian musicians: "Just say Ho"--------