|
How do I disable guest access on my Mac for wireless users?
Dave, I remember in MacOS 9 that it was pretty easy to disable guest access to your Macintosh, but in Mac OS X I can't find any clue how to change this so that while I offer file sharing off my server, it's only for people with actual accounts. Can you shed some light on this?
You're right and I don't really understand why Apple made it seemingly impossible to disable guest access while still running file sharing. Fortunately, if you're willing to muck about in the innards of your system, guest access can be disabled from within the Terminal (Applications -> Utilities -> Terminal). The first step is to open up a Terminal window and crack your knuckles. It'll help you feel like a real Mac OS X power user! Now, type in cd /Library/Preferences to move into the correct directory on your system. You can confirm it worked by typing pwd to see where you are in the file system. Next, it's time to save the existing preferences file for Apple File Sharing before we fix it. Just in case... $ cp com.apple.AppleFileSharing.plist \ com.apple.AppleFileSharing.plist.bkup $ Now that you have a backup copy in case things go horribly wrong (but they won't, don't panic), it's time to edit the preferences file to disable guest access. To accomplish this, you need to be root so that you have write permission with the file, so you'll need to use the sudo utility. Using your favorite editor (mine is vi) you need to edit the com.apple.AppleFileSharing.plist file. Here's how I do this using vi and sudo: sudo vi com.apple.AppleFileSharing.plist. It prompts for the sudo password: type in your account password again, and if you're authorized to use sudo, you'll be editing the file. Once you're in the file, you need to search for "guestAccess", which will look like this: <key>guestAccess</key> <true/> To disable guest access, carefully delete the word 'true' immediately following the guestAccess entry, then replace it with the word 'false'. The final line will look exactly like this: <false/> Make double-sure that you still have the < and the /> surrounding the new false entry, then save the file, quit, and you're done! The easiest way to have the Apple File Sharing system know about this configuration change is to reboot your computer, but you can also go to Apple -> System Preferences -> Sharing, then click on the Services tab and turn off, wait 30 seconds, and turn back on File Sharing. This is a remarkably complex solution because there is no simple way to turn off guest access on your Mac running Mac OS X. I don't really understand why Apple's made it this hard, but now you know how to fix it.
Categorized:
Mac OS X Help
(Article 3829,
Written by Dave Taylor)
Tagged: Previous: Why has Google suspended my AdWords Affiliate Campaign? Next: How do I move my Google AdSense Ads in the middle of my Page? Subscribe!
In more recent versions of Mac OS X the file involved is /Library/Preferences/com.apple.AppleFileServer.plist This whole procedure can be simplified to one Terminal command: sudo defaults write /Library/Preferences/com.apple.AppleFileServer guestAccess 0 Posted by: Curious Rabbit at November 3, 2005 5:36 PM@Curious Rabbit, thanks a lot buddy, exactly what I was looking for! Posted by: Pori at July 1, 2010 6:12 PMHi, E325: ATTENTION (1) Another program may be editing the same file. (2) An edit session for this file crashed. Swap file ".com.apple.AppleFileSharing.plist.swp" already exists! Please help. This is a brand new imac running OS X 10.6.4 Thank you in advance for your help I have something to say, now that you mention it, but ...
I do have a comment, now that you mention it!
|
Recommended
Recent Entries
Search
I Need Help!
Apple iPad Help
Articles and Reviews Auctions and Online Shopping Blogs and RSS Feeds Building Web Site Traffic Business and Management CGI Scripts and Web Site Programming Computer and Internet Basics d) None of the Above Facebook Help Google Plus Help HTML and CSS Industry News and Trade Shows iPhone and Cell Phone Help iPod, Sony PSP and MP3 Player Help Mac OS X Help Pay Per Click (PPC) Advertising Search Engine Optimization (SEO) Shell Script Programming Tech Support Video Help The Writing Business Twitter, LinkedIn and Social Network Help Unix and Linux Help Video Game Tips and Help Windows PC Help WordPress Help |