Disable Printer Sharing via .plist?

Hi All,
I am trying to find the .plist file that holds the boolean value for turning printer sharing on and off.
Via the GUI this option is located at:
Preferences > Sharing > "Printer Sharing"
I can see what appears to be the option located in this plist:
~/library/preferences/com.apple.alf.plist
and PlistEdit Pro tells me it us under:
firewall > printer sharing > state - with a value of 1 or 0.
Changing the option in that plist does not change the setting in Prefernces (and vice versa).
Reason: I have 600+ Macs on our network, and users have started enabling the check box thus sharing their printers via Bonjour to every other user - I'm sure you can imagine how confusing this looks when you attempt to add a new printer, and the problems when User A adds printers shared by User B and suddenly cannot print when User B takes their macbook away.
I would like to push out a profile to disable printer sharing. I can already disable access to the Sharing preference pane via profile to stop more  users turning the option on - but it does not revert the change made by other users.
Cheers
/Glaic

I am not aware of a plist but you could try modifying the cupsd.conf file (located in /etc/cups) and then pushing that to the +600 Mac's.
Within the cupsd.conf file there is the entry "DefaultShared" which the man page shows as;
"Specifies whether local printers are shared by default. The default is "Yes".
I just tried modifying the file now using the cups admin page (localhost:631/admin). You will see the setting "Share printers connected to this system". Disable the setting and save the changes. Then when you open the cupsd.conf in TextEdit you will see that browsing is disabled and shared printers, even if share enabled in Printers & Scanners, will not be visible on the local network.

Similar Messages

  • 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.

  • 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

  • Printer sharing via Windows XP is no longer supported by Mavericks

    Just contacted with Apple Support, after a while of working around, the Apple guy told me that XP is not any more supported for sharing a printer to Mavericks... What a pity! Apple is helping Microsoft for forcing people to upgrade to newer Windows OS...

    https://discussions.apple.com/thread/5480881?tstart=0

  • Need to Disable file sharing via blue tooth?

    Hi Team,
    Please let me know the steps for disable the file transfer via blue tooth.
    Thanks and Regards
    Sahab

    Hi,
    We have already unchecked those optoins ,but MAC machine is able to pair with other mobile devices,we need MAC machine not to pair /share/detect any other Bluetooth devices(mobiles) except bluetooth mouse and keyboard

  • Disable printer usage on network

    I'm trying to completely hide my printer on the wifi network. As I am at a college, I do not want people randomly adding my printer and printing things. I disabled Printer sharing in System Preferences; however, other Macs can still add the printer and print by going to Printers & Scanners, pressing the "+" and finding and adding my printer. I believe this is because of bonjour. How can I ensure that only I can print from my printer? Thanks.

    I can think of two simple ways of doing what you want:
    1. Create your own LAN behind a router. That way the firewall within the router will prevent everybody from accessing your printer.
    2. Connect your printer locally to your computer, either via USB or via a direct Ethernet connection to a spare network port on your computer.
    A possible third solution would involve buying a server, a managable printer and printer management software. But that would be overkill and it would cost very much.

  • 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

  • Printing from Windows XP via AirPort to printer connected via USB to iMac

    Hello. I have an iMac (with Leopard, MacOS 10.5) and a Windows XP notebook, both connected to the internet wirelessly via an AirPort Express unit. Do you know if I could connect physically (via a USB cable) a regular laser printer to the iMac and be able to print wirelessly from the Windows XP notebook via AirPort?

    It should work. Enable Printer Sharing via System Preferences -> Sharing. The Mac does need to be turned on.
    P.S. Try to just post one thread on your question instead of crossposting over several forums.

  • Script to disable Client for Microsoft Networks and File and Print Sharing for Microsoft Networks

    Hi, I am trying to find a way of using a batch file or vbscript to disable Client for Microsoft Networks and File and Print Sharing for Microsoft Networks on a Network Interface Controller.
    I've done some searching on the internet and I can see some suggestions to locate the Setting ID of the NIC and then remove the value from the "Bind" string under "HKLM\SYSTEM\CurrentControlSet\Services\LanmanServer\Linkage" and "HKLM\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Linkage"
    I tried this but it didn't seem to uncheck itself from the NIC properties under NCPA.cpl
    Can someone help me? 

    http://social.msdn.microsoft.com/Forums/vstudio/en-US/b0407073-07bc-462b-9de9-7295be5fa183/disable-file-and-printer-sharing-for-mircorosoft-networks?forum=csharpgeneral
    ¯\_(ツ)_/¯

  • Cannot Print Photos via Printer Sharing

    I cannot print photos from iPhoto or Preview using Printer Sharing to my iMac anymore.  I get this error message when I attempt to print a photo:
    /Library/Printers/EPSON/InkjetPrinter2/Filter/rastertoescpII.app/Contents/MacOS/ rastertoescpII failed
    I am using a Mac Book Pro sharing the printer connected to my iMac over a wireless network.  I can still print documents OK, so the printer sharing is working fine.
    I have recently upgraded to iPhoto 9.2.3, and have updated the printer driver via Software Update.
    If I connect the printer directly to the Mac Book Pro I have no problems printing photos from either iPhoto or Preview.
    The iMac still prints from the older iPhoto OK.
    This is rather a pest so I welcome any suggestions.
    Robin.

    Fixed.  Installing Mountain Lion has done the trick.  There must have been a glitch in Snow Leopard that was the bother.  Anyway, I am happy I can now print form my MBP via printer sharing.
    Robin

  • Nothing happens when I press PRINT via wireless printer sharing

    I have Mac G5 and Mac Mini, both with Mac OS X 10.4.7, both with Airport Extreme cards connected wirelessly to my Linksys router. I have Printer Sharing enabled on the G5 and selected "shared HP printer" on the Mac Mini. Everything appears to be setup correctly. However, I display the Print... dialog on the Mac Mini and click OK and nothing happens. I can click until I'm blue in the face. Nothing happens when I click Preview either. This has been this way for a long time. I THINK, and I repeat, I THINK there was a known issue with this that was fixed in, say, 10.3.x, and I recall ONE TIME was I able to print. I'm trying to recall, but I think when I upgraded to 10.4 I'm back to nothing happening.
    Any clues? I'm Mac savvy and, as far as I know, have everything set correctly--not that it should require much effort. Second, as a possible linked problem, similarly, when the Mac Mini sees the G5 in the Network Browser and I click "Connect..." the connection is made, then disconnected a few seconds later. So I'm thinking something may be hosed in the sharing department of the G5, but I wouldn't know what or where.
    Thanx for any assistance!

    This thread may be of some help, though I am not completely sure if it applies to wireless printer sharing; it's the same symptom though:
    http://discussions.apple.com/thread.jspa?threadID=424795&tstart=0
    Another possibility is to make sure the machines have the same version of the HP drivers.
    Hope this helps.

  • Printer Sharing Preference Not only unlock but disable Sharing automaticall

    I do understand if I am the admin user my printer preference may be unlocked automatically while other user(s) may still see it as 'locked'.
    My biggest frustrations with this mac mini is it automatically (based on its own free will) turn my Printer Sharing to 'off' even though I had turn it on a thousand times and locked the preference every time I locked the preference after turned on the sharing option.
    Anybody has any idea how to keep the printer sharing option unchanged as I set it.

    Yea. The beige G3 does not have native USB ports. Ethernet is quirky with non-native USB.
    I had the same problem with similar computers. 'Ended up hooking the printer to the iMac, ... until the printer died!
    Maybe someone knows a work-around, but I never found one.
    David

  • File and printer sharing for Microsoft Networks on Windows server 2008

    Hi Expert,
    I found that the properties of File and printer sharing for Microsoft Networks service disabled after I install the windows server 2008 64bits. I tried to install that service via adding the file and printer sharing services in the properties of local area connection, but it doesn't contain any service in the popup box.  Also, no such service file available in the disk when I tried to install the service from installation disk of windows server 2008 64bits. Is the file "sacsrv.dll" corresponding to the service name of file and printer sharing? I found it is in the directory of "Windows\system32".  I have no idea about where is the problem? Do I miss some components? Please tell me what can I do for it? Thanks!
    Best Wishes,

    Do any experts know the reason of this problem?  Thanks!

  • Windows 7 GPO Script - Enable file and printer sharing

    Hello,
    I'm trying to activate the Advanced File and Network sharing bia script (as there is no GPO option to do this)
    The script is simple : 
    netsh advfirewall firewall set rule group="File and Printer Sharing" new enable=Yes
    netsh advfirewall firewall set rule group="network discovery" new enable=yes
    netsh advfirewall set currentprofile state on
    in .bat and .ps1 it works fine when logged in to a computer with admin rights. I want to run this script on the computer level via GPO. The GPO applies properly, but the settings aren't changed. Any ideas on getting this to work?
    Environment is the following : 
    DC is WinServ 2008 R2, test machines : Win 7 Pro x64
    Test OU with Inheritance disabled, GPO for testing enforced with no other parameters apart from this Computer Startup script. User and Computer account are in the Test OU.
    gpresult shows the GPO is applied, but no data is available under Computer or User configuration. the script is stored in the correct sysvol location.

    Hi,
    Checkout the below thread on similar discussion,
    http://social.technet.microsoft.com/Forums/en-US/b193e8a9-9b2a-4993-bd74-836c65c51dc3/gpo-with-a-startup-script-is-not-working
    Regards,
    Gopi
    www.jijitechnologies.com

  • Print sharing from a sleeping server

    Hi
    I have a brand new Mac Pro computer loaded with hard drive space, ram memory, and a 30 inch Apple monitor and also a Mac Book 13 inch laptop. I have hooked the Mac Pro to the the Apple Airport Extreme base station (older g) LAN port and the WAN port to the DSL modem. The Mac Book connects to the network via its Airport card. I also have an HP all-in-one inkjet printer scanner copier fax connected via USB to the new Mac Pro, which I have set up to share the printer via this network. So far, so good. I can print to the shared HP printer from the MacBook as long as the Mac Pro does not go to sleep. If it does sleep, I have to wake it up and log into one of its accounts to get the printer service to work again.
    Is there a way around this inconvenience other than disabling sleep and always leaving the Mac Pro logged in? It would seem to me like it ought to wake automatically whenever a print job (or a request for file sharing access) is received.
    While we are here, is there a way to access the scanning functions or the flash memory cards on the HP from the Mac Book? If the answer to this last question is "no" it is not a major issue, but having to wake and log into the server just to print a file is quite a inconvenience.
    Thanks!

    Jim-
    I have the same problem but with my new iMac - have a Brother laser printer attached via the USB port which I am sharing (peer to peer). Printing works fine but when the iMac sleeps the printer is no longer recognized by other computers on the network. I just need to wake up the iMac by moving the mouse and the printer is again seen immediately by others on the network. The funny part is that I have set the iMac to not sleep at all (in Energy Saver - Put the computer to sleep when it is inactive for: is set to Never and the box stating "Put the hard disk(s) to sleep when possible" is not checked. I do have the display going to sleep if the computer is inactive for a few minutes but this shouldn't prevent the printer from being seen by the network - should it??). It sounds like we are having the same problem.
    Anybody out there have any ideas about what we can do to prevent this from happenning????
    This did not happen on my G4 iMac - maybe I'll switch the printer back to that computer!

Maybe you are looking for

  • 1607 error

    I am trying to upload the IPod / Itunes software and I get a 1607 error code. Can someone please help me?

  • How can i turn my 5c on if its not allowing me to update it or restore

    how can i turn my 5c on if its not allowing me to update it or restore

  • WLST code library (exaple scripts)

    Hi there I search for wlst example scripts. Is there a good link to find some scripts (JDBC, TXDataSource usw.) Thank's Ruedi :-)

  • Verify membership

    Hi, I get this message every day: "We are sorry - we can't connect to the Adobe Server right now. 07 days remaining. Just a reminder that we need to verify your membership is current. You can keep accessing Creative Cloud offline, but if you don't co

  • IPhone OS update dowload error

    I am trying to update the OS for my iPhone 4, however when I update via iTunes I receive an error message after the download has completed saying that the download is corrupted and check my network connection.  An ideas why or how to get around it?