Results 1 to 4 of 4

Thread: different linux users printing as different smb users

  1. #1
    Linuxnooby NNTP User

    Unhappy different linux users printing as different smb users

    Hi

    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?

    cheers Dave

  2. #2
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    23,699
    Blog Entries
    1

    Default Re: different linux users printing as different smb users

    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:

    Samba Server and Suse / openSUSE: HowTo Configure a Professional File Server on a SOHO LAN

  3. #3
    Linuxnooby NNTP User

    Unhappy Re: different linux users printing as different smb users

    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

  4. #4
    PV NNTP User

    Default Re: different linux users printing as different smb users

    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.

    http://localhost:631/ --> Manage Printers --> Set Allowed Users

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •