Re: Printer Daemon (Update)

2010-11-29 Thread Joe Talbott
On Thu, Nov 25, 2010 at 09:35:23AM -0700, Tim Darby wrote: Success, thanks! Just a few comments: Great. I committed the patch. - When I look at the commit history, it appears that the part you changed has been like that all the way back to the beginning of the project? I don't know if

Re: Printer Daemon (Update)

2010-11-29 Thread Tim Darby
I think I've always added myself to wheel too and just recently stopped doing that, so I can't say if printing as an unprivileged user ever worked in the past. Thanks again for the fix. Tim On Mon, Nov 29, 2010 at 7:18 PM, Joe Talbott jose...@cstone.net wrote: On Thu, Nov 25, 2010 at

Re: Printer Daemon (Update)

2010-11-25 Thread Tim Darby
Success, thanks! Just a few comments: - When I look at the commit history, it appears that the part you changed has been like that all the way back to the beginning of the project? - When I rebuilt kernel and world, I went ahead threw in all the recent MFC'ed things. Now, when I print to lpt0,

Re: Printer Daemon (Update)

2010-11-25 Thread Alex Hornung
On 25/11/2010 16:35, Tim Darby wrote: - Just to satisfy my own curiosity about the code: how does lpr.c eventually get to unp_connect()? I followed it as far as connect() in startdaemon.c and then lost the trail. I haven't really followed this thread, but to answer this question: connect -

Re: Printer Daemon (Update)

2010-11-24 Thread Joe Talbott
On Tue, Nov 23, 2010 at 09:57:06PM -0700, Tim Darby wrote: Here's the output: ~ ls -ld /var/run drwxr-xr-x 1 root wheel 0 Nov 21 23:14 /var/run ~ ls -ld /var drwxr-xr-x 1 root wheel 0 Aug 21 22:44 /var I agree; this is really bizarre-o. One other data point, fwiw: This machine,

Re: Printer Daemon (Update)

2010-11-24 Thread Joe Talbott
On Tue, Nov 23, 2010 at 09:57:06PM -0700, Tim Darby wrote: Here's the output: ~ ls -ld /var/run drwxr-xr-x 1 root wheel 0 Nov 21 23:14 /var/run ~ ls -ld /var drwxr-xr-x 1 root wheel 0 Aug 21 22:44 /var I agree; this is really bizarre-o. One other data point, fwiw: This machine,

Re: Printer Daemon (Update)

2010-11-24 Thread Tim Darby
Thanks, Joe. I'll try this later when I'm at the machine's location. Doesn't sound like a smart thing to try remotely. ;-) Tim On Wed, Nov 24, 2010 at 9:04 AM, Joe Talbott jose...@cstone.net wrote: On Tue, Nov 23, 2010 at 09:57:06PM -0700, Tim Darby wrote: Here's the output: ~ ls -ld

Re: Printer Daemon (Update)

2010-11-23 Thread Garance A Drosihn
On 11/22/10 9:41 PM, Tim Darby wrote: Here's the output: srwxrwx--- 1 root wheel 0 Nov 21 23:14 /var/run/printer uid=1001(tim) gid=1001(tim) groups=1001(tim) and this is the error I'm seeing: /usr/bin/lpr -PHPLaser /home/tim/test lpr: Unable to connect to /var/run/printer: Permission

Re: Printer Daemon (Update)

2010-11-23 Thread Tim Darby
Here's the output: ~ ls -ld /var/run drwxr-xr-x 1 root wheel 0 Nov 21 23:14 /var/run ~ ls -ld /var drwxr-xr-x 1 root wheel 0 Aug 21 22:44 /var I agree; this is really bizarre-o. One other data point, fwiw: This machine, I'm pretty sure, started out with a fresh install of DF 2.6, which

Re: Printer Daemon (Update)

2010-11-22 Thread Chris Turner
Tim Darby wrote: Anyone have any insights into this? What FS type is your /var/spool ? I seem to recall some kind of tmpfs permissions issues of late.. cheers

Re: Printer Daemon (Update)

2010-11-22 Thread Tim Darby
My /var/spool is a hammer pfs, as created by the installer defaults. This feels like it has to be a permissions problem somewhere, but I haven't had any luck finding it yet. Tim On Mon, Nov 22, 2010 at 3:32 PM, Chris Turner c.tur...@199technologies.orgwrote: Tim Darby wrote: Anyone have

Re: Printer Daemon (Update)

2010-11-22 Thread Joe Talbott
On Mon, Nov 22, 2010 at 03:50:18PM -0700, Tim Darby wrote: My /var/spool is a hammer pfs, as created by the installer defaults. This feels like it has to be a permissions problem somewhere, but I haven't had any luck finding it yet. What is the output of: ls -al /var/run/printer id What are

Re: Printer Daemon (Update)

2010-11-22 Thread Tim Darby
Here's the output: srwxrwx--- 1 root wheel 0 Nov 21 23:14 /var/run/printer uid=1001(tim) gid=1001(tim) groups=1001(tim) and this is the error I'm seeing: /usr/bin/lpr -PHPLaser /home/tim/test lpr: Unable to connect to /var/run/printer: Permission denied lpr: Check to see if the master 'lpd'

Re: Printer Daemon (Update)

2010-11-21 Thread Tim Darby
Yep, lpr looks right: -r-sr-sr-x 1 root daemon 26588 Nov 21 12:56 /usr/bin/lpr and I haven't put nosuid or nosgid on my filesystems. It's very puzzling. Tim On Sun, Nov 21, 2010 at 6:12 PM, Matthew Dillon dil...@apollo.backplane.com wrote: Hmm. apollo:/usr/src/sys/vfs/hammer ls

Re: Printer Daemon (Update)

2010-03-13 Thread Stephane Russell
I'm getting the same exact problem as described when printing from a regular user: le...@alcyone: {102} lpq alcyone: Warning: no daemon present Rank Owner Job Files Total Size 1stlette 618 (standard input) 697 bytes no entries

Re: Printer Daemon (Update)

2009-12-05 Thread Matthew Dillon
:Update : :The socket /var/run/printer has permissions rwxrwx---. If I change them :to rwxrwxrwx there is no problem printing. : :Since no one else is complaining about this I assume I have something :set incorrectly but have run out of ideas. : :Thanks, Jim Chapman Hmm. On my printer box

Printer Daemon (Update)

2009-12-04 Thread Jim Chapman
Since I installed release 2.4.1 I have been having a problem printing. I am using a USB printer. My printcap is prt01|lp|lp1|Default Printer :sh:\ :sd=/var/spool/output/lp1:\ :lp=/dev/ulpt0:\ :if=/usr/local/libexec/dftif:\ :lf=/var/log/lpd-errs: My filter is /bin/cat printf\f