Results 1 to 9 of 9

Thread: printer sharing across the network

  1. #1
    Join Date
    Apr 2010
    Beans
    Hidden!

    printer sharing across the network

    Hi i have a printer which is shared across the network. All the computers have ubuntu installed. I want that some computers should not be allowed to use this printer. Please tell me what should i do ?? ubun2warrior

  2. #2
    Join Date
    Apr 2010
    Beans
    Hidden!

    Re: printer sharing across the network

    i want to block some computers from using the network printer which is shared on the network...

  3. #3
    Join Date
    Dec 2008
    Location
    London, UK
    Beans
    51
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: printer sharing across the network

    How are you sharing this printer?

    If it is via Samba, then you can just have an allowed list for the $print share or a block list. This can be done either using the username or the ip address of the computers if they have static addresses.
    What's the point of a window if it can't be opened

  4. #4
    Join Date
    Apr 2010
    Beans
    Hidden!

    Re: printer sharing across the network

    hi

    i have samba installed. how do i create a allowed list or block list for the print share.i mean where in the system do i edit/create this list.
    the systems do have a static ip.

    rgds

  5. #5
    Join Date
    Apr 2010
    Beans
    Hidden!

    Re: printer sharing across the network

    hi

    any suggestions ??

    rgds

  6. #6
    Join Date
    Apr 2010
    Beans
    Hidden!

    Re: printer sharing across the network

    Quote Originally Posted by mickwombat View Post
    How are you sharing this printer?

    If it is via Samba, then you can just have an allowed list for the $print share or a block list. This can be done either using the username or the ip address of the computers if they have static addresses.
    hi

    where should i create this list, please explain ...

    regards

  7. #7
    Join Date
    Apr 2010
    Beans
    Hidden!

    Re: printer sharing across the network

    can someone plz tell me how to create a block list step by step

  8. #8
    Join Date
    Dec 2009
    Beans
    5,379

    Re: printer sharing across the network

    I haven't done this in a very long time but this can be done using the CUPS server itself. This is from my notes:

    I have a printer named "HPprinter":

    Edit /etc/cups/cupsd.conf as root:
    Code:
    gksu gedit /etc/cups/cupsd.conf
    Add the following to the end of the file:
    Code:
    <Location /printers/HPprinter>
             Order Deny,Allow
             Deny From All
             Allow From 127.*
             Allow From 192.168.0.101
             Allow From 192.168.0.104
    </Location>
    Save the file and restart cups:
    Code:
    sudo service cups restart
    The only hosts that can access the printer in this case was local, 192.168.0.101, and 192.168.0.104

    You would have to substitute:

    - your own printer name for HPPrinter
    - and you would have to add a new "Allow From ... " line for every ip address that you want to grant access to that printer.

    That was it. If it doesn't work then just remove the lines you added and restart cups again.

  9. #9
    Join Date
    Oct 2005
    Location
    Wabasha MN
    Beans
    2,274
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: printer sharing across the network

    Quote Originally Posted by Morbius1 View Post
    I haven't done this in a very long time but this can be done using the CUPS server itself. This is from my notes:

    I have a printer named "HPprinter":

    Edit /etc/cups/cupsd.conf as root:
    Code:
    gksu gedit /etc/cups/cupsd.conf
    Add the following to the end of the file:
    Code:
    <Location /printers/HPprinter>
             Order Deny,Allow
             Deny From All
             Allow From 127.*
             Allow From 192.168.0.101
             Allow From 192.168.0.104
    </Location>
    Save the file and restart cups:
    Code:
    sudo service cups restart
    The only hosts that can access the printer in this case was local, 192.168.0.101, and 192.168.0.104

    You would have to substitute:

    - your own printer name for HPPrinter
    - and you would have to add a new "Allow From ... " line for every ip address that you want to grant access to that printer.

    That was it. If it doesn't work then just remove the lines you added and restart cups again.
    And don't forget you have to have all static ip address on all your pc's. If they are set to dynamic they will change and this will be a problem.
    My hometown on the Mississippi River.
    Using a Asus 3632QM laptop with 8gig RAM, 750gig Hybrid.
    Machine Registered 366271, 366273, 366275.
    Registered Ubuntu user number 18630. Registered Linux user number 458093.

Bookmarks

Posting Permissions

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