Turn off Printer Sharing via Terminal

Does anybody know to turn off printer sharing via terminal?

You should be reading this:
http://localhost:631/sam.html
Here's one way (for a specific printer):
/usr/sbin/lpadmin -p printer -u allow:[your_username] ENTER

Similar Messages

  • Cannot turn off Printer Sharing???

    Hi there,
    I've been busy configuring our Macs in work to use the printers dotted around the office. I've been successful apart from one little annoyance that I cannot figure out. How do you turn off Printer Sharing?
    I'm using CUPS 1.2.11 and printing to a Xerox DocuColor 3535 and a DocuColor 5252 using IP Printing via LPR.
    Does Printer Sharing need to be on, hence why every time I turn it off it reverts back to being on??
    Jamie Kelly
    Liverpool

    Hi greg,
    I posted a message before but it has disappeared, so please forgive me if there are two posts that have the same information.
    I was advised by one of our Xerox engineers to upgrade CUPS to the current version. He actually said I should upgrade to version 1.3 but since it is a beta I thought I'd stick with 1.2.11 for now. Sadly it appears he was wrong and I shouldn't have upgraded.
    It also appears I didn't read your response correctly. I can turn off printer sharing individually (for each printer) by doing as you advised and 'Unpublish' each printer. However, global printer sharing (in System Preferences/Sharing) is still ON and it won't switch off. Even more worrying is this - although Printer Sharing is on, the firewall hasn't opened the Printer Sharing port, and I can't manually open it because it is set to automatically open when Printer Sharing is switched on.
    So now Printer Sharing is stuck on but the firewall will not open the port. Can I edit anything in the CUPS server configuration file to disable Printer Sharing? The information in my configuration file (taken from http://127.0.0.1:631/admin?op=config-server) is below:
    LogLevel info
    SystemGroup admin
    Listen localhost:631
    Listen /private/var/run/cupsd
    # Disable printer sharing and shared printers.
    Browsing On
    DefaultAuthType Basic
    <Location />
    Order Deny,Allow
    Deny From All
    Allow From 127.0.0.1
    </Location>
    <Location /admin>
    Order allow,deny
    Allow localhost
    </Location>
    <Location /admin/conf>
    AuthType Basic
    Require user @SYSTEM
    Order allow,deny
    Allow localhost
    </Location>
    <Policy default>
    <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job CUPS-Move-Job>
    Require user @OWNER @SYSTEM
    Order deny,allow
    </Limit>
    <Limit Pause-Printer Resume-Printer Set-Printer-Attributes Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After CUPS-Add-Printer CUPS-Delete-Printer CUPS-Add-Class CUPS-Delete-Class CUPS-Accept-Jobs CUPS-Reject-Jobs CUPS-Set-Default>
    AuthType Basic
    Require user @SYSTEM
    Order deny,allow
    </Limit>
    <Limit Cancel-Job CUPS-Authenticate-Job>
    Require user @OWNER @SYSTEM
    Order deny,allow
    </Limit>
    <Limit All>
    Order deny,allow
    </Limit>
    </Policy>
    Many thanks for all your help greg, I really appreciate it.
    Jamie

  • In OS 10.6.8 how do I turn on printer sharing from terminal?

    I have a Mac Pro and I need to share a printer, however every time I go to sharing and try to select printer sharing preferences crashes. Is there a way to turn on printer sharing from termina?

    In Finder hold down the option/alt key while selecting the Go menu item. Select Library. Then go to Preferences/com.apple.systempreferences.plist. Move the .plist to your desktop.
    Restart and test. If it works okay, delete the plist from the desktop. 
    If the same, return the .plist to where you got it from, overwriting the newer ones.
    If you want to make your user library permanently visible, run the below command in Applications/Utilities/Terminal.
    chflags nohidden ~/Library/
    You will need to do that after any updates.

  • Can't turn off printer sharing in 10.4.7

    I came in this morning to check on my lab computers and noticed a ton of duplicate printers on my network. I narrowed it down to a single computer, but I can't seem to turn off Printer Sharing in System Preferences. The only thing I changed recently was upgrade/install the latest version of CUPS.
    Any suggestions on how I can turn off Printer Sharing? Is there a command line cmd to turn it off?

    Just to make sure you didn't overlook the obvious (we all do it more often than we care to admit). Can you toggle the other services in the Sharing pane? Perhaps you just need to click on the padlock and authenticate before you can make changes.
    Second thing to try. Make sure System Preferences is not open. Look in the user's Home folder/Library/Caches. Find a cache item com.apple.preferencepanes.cache. Delete this item. Log the user out and log back in. Now open System Preferences and see if you can make the changes.
    Third thing to try. Here are the items that get changed in the /etc/cups/cupds.conf file when you turn Printer Sharing OFF---
    line 55 becomes
    ServerName 127.0.0.1
    lines 453 and 454 become
    #Port 631
    Listen 127.0.0.1:631
    line 581 becomes
    #BrowseAddress @LOCAL
    line 635 becomes
    BrowseInterval 0
    line 826 Allow From @LOCAL
    is deleted and the block from line 822 through 826 becomes
    <Location />
    Order Deny,Allow
    Deny From All
    Allow From 127.0.0.1
    </Location>
    All these changes are taken from a modification of the default cupsd.conf as supplied with the version of CUPS Apple supplies with Tiger. The cupsd.conf that comes with version 1.2.x is most likely different. You will have to do some comparison and interpretation.
    Hope this helps.
    EDIT: Don't forget to recycle the cupsd whenever you make a change to the configuration file.
    sudo killall -HUP cupsd
    Matt
    Mac Mini G4; B&W G3/300

  • What is the Command to disable Printer Sharing via the Terminal?

    What is the Command to disable Printer Sharing via the Terminal?

    cupsctl is the command.
    man cupsctl(8)
    Hope that helps.

  • Can I turn off home sharing for other computers from my own?

    I recently got a new computer and would like to add my music library to it.  When I try to enable home sharing a message pops up stating that I already have 5 computers on my home sharing network.  I don't have all of the 5 computers because some have broken and so my question is that, is there any way for me to turn off home sharing for those computers from my own?

    No such thing is possible via iTunes.
    What is possible is deathorizing all computers and then authorize only the one's that you have access to.
    About Authorization and De-Authorization

  • Use 2nd gen apple tv and remote control app on iphones and ipad.  We can control some functions on the apple tv but unable to purchase, access such controls as reset, restart, turn off home sharing, etc.  Home sharing stuck on old apple ID. Please help.

    Use 2nd gen apple tv and remote control app on iphones and ipad.  We can control some functions on the apple tv but unable to purchase, access such controls as reset, restart, turn off home sharing, etc.  Home sharing stuck on old apple ID. Please help.

    That is why I said to restore via iTunes, did you check the link?
    This will put it back to factory settings and you can set it up with the new ID once you reconnect with your HDTV. This is not done via ethernet, as per the link you need to connect to the computer via micro usb. You cannot bypass home sharing.
    FYI: An Apple ID cannot be deleted so the old one would still exist (even if you no longer use the email account it is associated with).

  • Sharing does not show up on the side column ... tried turning off home sharing then turning it back on ... shared shows up untell i click "done " then its gone.

    sharing does not show up on the side column ... tried turning off home sharing then turning it back on ... shared shows up untell i click "done " then its gone.

    Yes, I have also tried and failed when setting up Home Sharing.  I have followed the instruction given on the Support website, but this is all I see:
    Both computers are on the same local network and both allow Home Sharing and are signed in with the same user name. I am not sure what else to do.  Any suggestions?

  • HT4527 The computer that has my i Tunes library has crashed, How do I turn off Home Sharing on this computer and tranfer my files to another computer?

    How do i turn off home sharing and transfer my ITunes library to another computer?

    Your music will only be where you put it.  You can download the itunes program and sign into your account on any computer, but your music/content will not be there unless you put it there.
    It has always been very basic to always maintain a backup copy of your computer files/docs/pics/music/etc.
    Use your backup copy to put everything back.
    If for some reason you have failed to maintain a backup copy, not good, then you can transfer itunes purchases from an ipod.  File>Transfer Purchases

  • HT202213 Have newest version of ITunes and a new AppleTV. ITunes File Home Sharing only shows option to turn off home sharing.  No home sharing icon and Apple TV claims home sharing is not turned on.  Where is this advanced menu?

    Cannot get home sharing to work with my new apple TV.  Have the latest version of ITunes and the apple TV is connected to my wi-fi network.  The instruction page says to go to the Advanced menu option of ITunes and choose Home Sharing.  This option does not exist.  The closest I can find is under the File option>Home Sharing where my only option is to turn off home sharing.  There is no home sharing icon and Apple TV insist that the home sharing is not turned on.
    I must be missing something obvious here.

    Cannot get home sharing to work with my new apple TV.  Have the latest version of ITunes and the apple TV is connected to my wi-fi network.  The instruction page says to go to the Advanced menu option of ITunes and choose Home Sharing.  This option does not exist.  The closest I can find is under the File option>Home Sharing where my only option is to turn off home sharing.  There is no home sharing icon and Apple TV insist that the home sharing is not turned on.
    I must be missing something obvious here.

  • TS2972 I have an old computer that died, how do I turn off home sharing on that computer so that I can gain back 1 of my 5 shares for my new computer?

    I have an old computer that died, how do I turn off home sharing on that computer so that I can gain back 1 of my 5 shares for my new computer?

    As far as I know you don't need to turn off home sharing as such, however you will have lost one of the 5 "authorizations". You can't release these individually unless you are running iTunes on the authorized operating system you want to deauthorize.
    You will have to wait until you have 5 authorizations, at which point you can clear them all and start over, reauthorizing the machines you want to.
    iTunes Store: About authorization and deauthorization
    tt2

  • Programmatically Turn Off Printing (Acrobat 6.0)

    Hello.
    I'm searching (fruitlessly so far) for an option to turn off printing on a PDF. I've gone down multiple avenues and have come up empty to date.
    My company is using Documentum SCS and Content Transformation Services (Documentum) to export/convert files to PDF format in a readable location. Through our normal process, we place an overlay on the document using another product, which indicates the status of the file (approved/effective). Since we cannot use the overlay when exporting in this fashion, we've settled on disabling printing for the PDFs.
    The preferred solution would be using CTS to set the security, however I don't have a lot of confidence in that solution just yet.
    The second preferred method would be for CTS to run a piece of VBS code post-export, which takes the PDFs and sets them to noprint.
    The last resort would be to create a Windows service using .NET that waits for new files in the directory and sets them to noprint.
    Any solutions to programmatically setting noprint? Any feedback on the path being taken?
    Thanks in advance!

    If you're looking for a fully automated solution, Acrobat will not be an option.
    The only fully automated option Adobe provides would be Adobe LiveCycle Rights Management ES, which you can read about here:
    http://www.adobe.com/products/livecycle/rightsmanagement/
    If you are interested in a Documentum-direct solution, you would probably get best results asking on some Documentum forums. Most users here work specifically with the Acrobat SDK ( it being an Adobe forum :) ).

  • Can't turn off family sharing

    I am trying to remove family sharing but when I tap on turn off family sharing, the response I get is "unable to remove member at this time"  any ideas as how to resolve this and get my family sharing to turn off

    Hello cbd99,
    After reviewing your post, I have located an article that can help in this situation. It contains a number of troubleshooting steps and helpful advice concerning Family Sharing:
    Leave Family Sharing
    Thank you for contributing to Apple Support Communities.
    Cheers,
    BobbyD

  • How do I turn off 'print' in order to finalize an installation of Adobe Acrobat (or reader)

    I get to 96% of the installation and then a window pops up telling me to turn off 'print' in order to continue. I do not know how to do this.

    hello, this question isn't about firefox so we probably cannot solve your issue. please refer to adobe's documentation or contact adobe's support if you're having problems installing their product: http://helpx.adobe.com/acrobat/kb/quick-fix-install-download-reader.html

  • Finder crashes when I turn off File Sharing in a Shared Mac

    Hi,
    Situation: I have 2 laptops: a Macbook Pro Retina and a Black Macbook (ca. 2008, Snow Leopard). I have turned on File Sharing on both ever since and enjoyed being able to transfer files from one to another.
    Lately, whenever I turn off File Sharing in my Black MB, turn it off, or basically use my MBP retina without being connected to my Black MB thru File Sharing, the Finder of MBPR is extremely slow. Every time I open a new window, open a folder, or switch tabs in the sidebar, it is extremely sluggish.
    However, once I turn File Sharing back on in my Black MB (or pretty much whenever I get connected to my Black MB), everything is back to normal.
    Also, even when I "eject" my Black MB from the "Shared" list in my MBPr, MBPr automatically reconnects to Black MB.
    Any ideas on why this happen?
    Things I've tried:
    1. Clean caches
    2. Restarted PRAM
    3. Reinstalled OS X ML
    Same result.

    The next time you have the problem, note the exact times when it starts and ends: hour, minute, second.
    If you have more than one user account, these instructions must be carried out as an administrator.
    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left.
    Scroll back in the log to the time you noted above. Select any messages timestamped during that interval. Copy them (command-C) to the Clipboard. Paste (command-V) into a reply to this message.
    When posting a log extract, be selective. In most cases, a few dozen lines are more than enough.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Important: Some private information, such as your name, may appear in the log. Anonymize before posting.

Maybe you are looking for

  • Hp color laserjet pro mfp m177fw (Cant open SCANNER on computer)

    Hi there, I am using a desktop 27 inch Mac with OS X Yosemite 10.10.1 When I go to system preferences and click on printers/scanners I can see my mfp m177fw laserjet printer (wirelessly connected fine). But unlike on my Macbook Pro laptop on my deskt

  • DSLR footage no longer recognized? Adobe Premiere Pro 8.2.0, OSX 10.10.2

    A few months ago I upgraded my mac to Yosemite, and around the same time updated Premiere. Premiere CC 2014 Now has major issues with DSLR footage. First, I was able to get some DSLR footage in, but whenever I scrubbed through it in the timeline or s

  • CAA3 - what table holds the address?

    Hello experts, On screen of CAA3, at the lower part of the screen, there can appear a secondary address which can be different from the address displayed at the top of the screen. I saw something about invoicing. Am I wrong? At any rate, I need to us

  • How do I merge calenders in iCal?

    I would like to merge several calenders in ical together. Can anyone help?

  • How to install downloaded free master templates in FCP 7?

    I have downloaded some free "master templates to create lower thirds in FCP 7. I can open them one by one in FCP, but I can't install them into any specific folders of my MacBook OS (so that they can be accessed directly from FCP 7 browser or short c