[Samba] Problems using samba as a print server
Rob Tanner
rtanner+samba at linfield.edu
Wed Jul 2 23:00:48 GMT 2003
Joel,
Yep! The %U is the variable I needed and it is valid in the print command
setting in smb.conf. Conveniently, lpr includes a -U option to specify
the user name, and putting it all together, it now works. Thanks.
-- Rob
--On Wednesday, July 02, 2003 04:54:13 PM -0400 Joel Hammer
<Joel at HammersHome.com> wrote:
> When a user logs on, the %u or the %U variable contains their logon name,
> not the guest name you assign. Maybe you can capture that in a script.
> Joel
>
> On Wed, Jul 02, 2003 at 11:15:09AM -0700, Rob Tanner wrote:
>> Hi,
>>
>> I set up Samaba 2.2.7 on a RedHat 9 box to act as a print server. The
>> Samba server is a member of the domain and will be sharing about a dozen
>> printers. I am using lprng in conjunction with ifhp in order to do
>> charge-back print accounting. But here's the glitch: the server is not
>> hosting any file shares and basically has only a couple of local
>> accounts. The result is that when domain users access the server they
>> connect as "nobody" (the guest user) even though guest access is NOT
>> enabled. This means that the user id in the printer logs is "nobody".
>> Without having to create and maintain some 3,000 local accounts on the
>> box, how can I get around the problem (i.e., get the real user name
>> attached to the connection rather than nobody)?
>>
>> Thanks.
>>
>> Rob Tanner
>> UNIX Services Manager
>> Linfield College, McMinnville OR
>>
>>
>>
>> --
>> To unsubscribe from this list go to the following URL and read the
>> instructions: http://lists.samba.org/mailman/listinfo/samba
Rob Tanner
UNIX Services Manager
Linfield College, McMinnville OR
More information about the samba
mailing list