lpd+samba question

Wojciech Puchar wojtek at wojtek.tensor.gdynia.pl
Thu Jul 19 16:36:37 UTC 2012


> I didn't try by myself, but what about something like
>
> print command = /usr/bin/lpr -P%p -J"%J" -U"%I" -r %f
>

> in smb.conf?
>
> I'm sorry to say that you additionally probably have to change
>
> /usr/src/usr.sbin/lpr/common_source/ctlinfo.c
>
> near line 87 to
>
> #define OTHER_USERID_CHARS  "-_."  /* special chars valid in a userid */
>
> and to recompile lpd:
>
> cd /usr/src/usr.sbin/lpr
> make clean
> make install
>
This is exactly what i asked for.
Thank you very much for help.


More information about the freebsd-questions mailing list