Posted on 18th December 2009 by Mike in Atlanta Computer Repair
10.6.2, Mac, OSX, Printer, Seven, Sharing, Snow Leopard, Win7, Windows
Today we ran into a problem between Mac OS 10.6.2 Snow Leopard and Windows 7 Printer Sharing. Both machines had the correct drivers installed, and the printer was shared from the Win7 box with full permissions for everyone, yet we could not connect to it from the Mac. SMB file sharing was working fine, and other windows machines could easily connect to the printer. I couldnt find a single web site with the correct solution, and eventually we figured it out after an hour of head scratching.
Here’s the fix…
After installing the printer using a USB cable on both machines, hook the printer to the windows box and do the following…
1st – Share the printer on the windows box, and share it as “printer” or something easy to remember without special characters and spaces, etc. We named ours HP because it was an hp psc 4210. Now, give the windows box a static IP address, and setup user for printing (or you can use the admin user / password for a later step). Make sure the permissions are set correctly on the printer.
2nd – Setup a printer on the Mac (though it wont work yet). Go to System Preferences > Print & Fax > “+” (Plus) sign / add printer > Select IP > Select LPD (Line Printer Daemon) > type in the IP address of the windows box in the address field > change the name of the printer to the printer model or something simple (HP in our case) > Select “Print Using” > Select “Printer Software” > Select the printer model / driver for the printer you have.
3rd – Open Terminal from Utilities in the Applications menu within Finder. Type in the following:
sudo -i (enter your password)
ps -ef|grep cupsd (note the number in the second column)
kill X (where X is the number from above)
cp /etc/cups/printers.conf /etc/cups/printers.conf.backup (copies your current printer.conf to printer.conf.backup)
nano /etc/cups/printers.conf
Locate the line that says LPD://[IP Address of Windows Box] and change it to “smb://username:password@[ip address of windows box]/[Printer Share Name]
Ours looked like this
smb://user:pass@10.1.1.50/HP
After making the change, use ctrl+o to write the changes to printer.conf, then ctrl+x to exit nano editor.
4th – Now restart cupsd again or reboot the computer
ps -ef|grep cupsd (note the number in the second column)
kill X (where X is the number from above)
You should be able to print now!
6/5/2010 – Change printer.conf to printers.conf as per Jeffrey’s comment. Thanks Jeffrey!
Posted on 16th December 2009 by Mike in Atlanta Computer Repair
computers, Douglasville, Networking, Websites
BentleyPC is announced as one of Google’s first favorite places see http://tinyurl.com/BentleyPCFacebook for more details. Thank you all!
Posted on 7th December 2009 by Mike in Atlanta Computer Repair
computers, Douglasville, Networking, Websites
http://ping.fm/CQtBJ
http://ping.fm/yuoZQ
Posted on 6th December 2009 by Mike in Atlanta Computer Repair
Access Denied, Driver, Fix, Installing, Issue, Permission, Registry, Reset
Got an access denied when installing Hauppauge WinTV driver I googled forever before I found the fix. So here it is to help the other computer engineers out there. I saw many issues that were solved using the methods below. Some were regarding installing itunes, some were installing video or sound cards, all errored with permission denied or access denied, or they couldnt edit a registry key due to permission issues, etc.
In XP Pro…
secedit /configure /cfg %windir%\repair\secsetup.inf /db secsetup.sdb /verbose
This here works in both XP Pro & XP Home
Download SubInAcl.exe, Install the program.
Now create a new text document and copy the following into it.
cd /d "%programfiles%\Windows Resource Kits\Tools"
subinacl /subkeyreg HKEY_CURRENT_USER /grant=administrators=f /grant=system=f /grant=restricted=r /grant=YOURUSERNAME=f /setowner=administrators > %HOMEPATH%\Desktop\subinacl_output.txt
subinacl /keyreg HKEY_CURRENT_USER /grant=administrators=f /grant=system=f /grant=restricted=r /grant=YOURUSERNAME=f /setowner=administrators >> %HOMEPATH%\Desktop\subinacl_output.txt
subinacl /subkeyreg HKEY_LOCAL_MACHINE /grant=administrators=f /grant=system=f /grant=users=r /grant=everyone=r /grant=restricted=r /setowner=administrators >> %HOMEPATH%\Desktop\subinacl_output.txt
subinacl /keyreg HKEY_LOCAL_MACHINE /grant=administrators=f /grant=system=f /grant=users=r /grant=everyone=r /grant=restricted=r /setowner=administrators >> %HOMEPATH%\Desktop\subinacl_output.txt
subinacl /subkeyreg HKEY_CLASSES_ROOT /grant=administrators=f /grant=system=f /grant=users=r /setowner=administrators >> %HOMEPATH%\Desktop\subinacl_output.txt
subinacl /keyreg HKEY_CLASSES_ROOT /grant=administrators=f /grant=system=f /grant=users=r /setowner=administrators >> %HOMEPATH%\Desktop\subinacl_output.txt
subinacl /subdirectories %programfiles%\ /grant=administrators=f /grant=system=f /grant=users=e >> %HOMEPATH%\Desktop\subinacl_output.txt
subinacl /subdirectories %windir%\ /grant=administrators=f /grant=system=f /grant=users=e >> %HOMEPATH%\Desktop\subinacl_output.txt
WARNING – This is very risky!!! I hope you have a WinPE or similar cd so you can manually restore your registry if you need to.
Now, create a backup of your registry please!
Save the file as resetreg.cmd and run it. Sit back and watch while SubInAcl fixes your registry permissions… A log file named “subinacl_output.txt” will appear on your desktop and will have the log of what took place.
If you get lucky like I did, this will completely screw up your windows install. Then you can restore from your backup and try again, and perhaps restore an earlier restore point snapshot, and eventually this may fix the the problem. It did for me… after several attempts.
Cheers!