I want to be able to print to a Windows print server from suse 11.1
linux.
Using cups I am able to print by specifying a windows user account for
a printer in
/etc/cups/printers.conf
However this applies to all the linux user accounts. What I want is
for each linux user to print as a different windows user account. Any
ideas?
If you want to control user access to a shared windows printer, you would normally do this via samba configuration file ‘/etc/samba/smb.conf’. It is generally well pre-configured, but just needs adjusting for your specific situation. For example:
[printers]
comment = All Printers
path = /var/tmp
printable = Yes
create mask = 0700
guest ok = No
browseable = No
valid users = john dean @geeks
Here we have restricted access to users john, dean, and the geeks group.
I could explain in further detail, but its already been done here:
I am a bit confused. My understanding is that smb.conf is for setting up shares. What I want is for the linux users to print to an existing xp print server. What I want to achieve is that each linux user will print as a particular matching windows account.
On Tue September 15 2009 07:16 pm, Linuxnooby wrote:
>
> Hi Thanks for reply
>
> I am a bit confused. My understanding is that smb.conf is for setting
> up shares. What I want is for the linux users to print to an existing xp
> print server. What I want to achieve is that each linux user will print
> as a particular matching windows account.
>
> Linux box users
> pc-one
> pc-two
> pc-three etc
>
> xp box users
> pc-one
> pc-two
> pc-three
>
> cheers David
>
>
David;
I’m not sure if this will help in your case. I’m not exactly sure why you are
concerned which Windows Account is used. You can control access to the
printers from cups.
This allows you to set the allowed users for any printer, local or remote.
Of course, if, say a Windows Client, prints directly to the printer without
going through CUPS, this will not help. Linux users would not necessarily
print as a particular Windows User, but you could control who prints to a
given printer. For accounting purposes you can keep track of printer usage
from CUPS.
P. V.
“We’re all in this together, I’m pulling for you.” Red Green