Update 11May2009: I’ve posted a screencast demonstrating some basic aspects of how iTunes manages your music library and how to then share the library with another user. Consider this iTunes Library 101 for those looking for a visual way to follow along!
Well it doesn’t have to be the Mrs. really. Just any other person with a separate user account on your Mac.
You see, Apple’s done a decent job of giving each user a separate workspace (it’s called your Home Folder) for all your pics, docs, tunes, flicks, email, passwords, and the list goes on. Normally it’s great. One login and you’ve got access to all your stuff, and you don’t have to worry about messing up the other persons. Need to switch back and forth? Fast user switching has you covered. The problem arrises for those special cases where you don’t want two (or more) separate iTunes libraries for example. Or maybe you want to share your iPhoto Library or Address Book in the same way.
Apple should definitely make this easier on folks by flipping a preference somewhere, but in reality, with a little know-how, you too can share a single iTunes Library across multiple users.
Let’s get started.
Hang on a sec… time out. Before you go messing around with your pristine music collection you do have a backup ready just in case? Right? Bueller?… Bueller? Oh right, of course you do. You’re using Time Machine. Carry on.
Step 1) – First things first. You really want to have all your iTunes content (music, TV, movies, etc) in a single library. I suspect for most folks this will mean needing to copy a few tracks from one user’s library to another so I won’t dwell on it. If you get stuck, just hit up the comments below.
Step 2) – You need to move your iTunes Library to a folder on your computer where all users can access it. I use /Users/Shared
but you could also use an external firewire or network drive.
Apple has a detailed article on Moving your iTunes Music Library so check that out for specifics. Essentially you’re going to tell iTunes where you want your new library to be, and then use the Consolidate Library option to move it all there.
Step 3) – So far so good. Now, for each other user account. Hold down the Option Key while launching iTunes. Instead of opening directly, a dialog will ask you to ‘Choose iTunes Library’. Hit Choose Library and browse to wherever you saved your library in Step 2. Rinse and repeat for each user that needs to access it.
Step 4) – It’s worth double checking the permissions on the new folder just to be sure you all have access. Browse to the iTunes Library folder and hit get info. For me this is /Users/Shared/iTunes
. In the sharing and permissions section at the bottom you’ll want to add all of the users using the library with Read & Write Privilege.
Well, hopefully that helps. I’ll go into a bit more detail on how we’re sharing the iTunes library and syncing multiple iPods, contacts, calendars, etc to it later. In the meantime, let me know if you’re stuck.
Assumptions: Everyone’s setup is different so if you’ve fiddled with your library in the past and have some special circumstances, take extra care to ensure your music is backed up. If you get stuck, plug away in the comments below.
Also, note that sharing a library means sharing playcounts, playlists, ratings, tags, metadata, etc. If the you absolutely need to rate Fergie’s My Humps a 1 star while the Mrs. gives it a 5, prepare for a rate-off. For us the benefit of having a single library and not needing to worry about syncing purchases between the two accounts is a better proposition.
Thanks for the detailed description given above – but I still got stuck in step 3). I moved the consolidated library from my music folder to HD/users/shared to let my husband access it. Everyhting works well in my account. I choose the library located in users/shared/itunes while in my husbands account and get the message “The itunes file is locked, on a locked disc or you do not have write permission for this file”, even though I gave read & write permissions in finder. What am I doing wrong? Thanks for your help.
Hi Annette,
My first guess is that you still had iTunes open on your account when opening on your husbands account. I probably should have mentioned it above, but iTunes can only open 1 copy of your library at a time.
If you’re using fast user switching to switch to your husband’s account, you’ll need to make sure you close iTunes on yours first.
If you log out completely before he logs in however, you shouldn’t need to worry about it because iTunes is already closed.
If that doesn’t do the trick it may be an issue with the permissions. Please let me know how it goes!
Thanks, David – yes, I hap iTunes open in my account when I opened Tim’s account. Now everything works perfectly well, I already imported a CD on his account and it showed up when logged in on my account – great! Thank you again.
Hi David,
I am trying to follow your instructions but I am stuck at step 3.
I followed the instructions given in the Apple article for step 2 but if I understand correctly, this only moves the “iTunes Music” subfolder of the iTunes library (which is by default “~/Music/iTunes”, and contains additional folders and files such as “iTunes Library”…).
Now at step 3, the Choose Library dialog expects to find a whole iTunes library and not just a shared “iTunes Music” folder…
What am I doing wrong ?
Thanks for your help.
Hi Jeremie, looking at those Apple dogs again I see what you mean about only consolidating the Music and not re actual Library. I don’t recall having to fidle with that so something may have changed and I’m on the road at the moment so can’t test this out but let me see if I’ve understood correctly.
Are you running on a Mac and using the latest version of iTunes?
Where have you managed to copy your music too? From the sounds of it this folder should have all of your music but none of the library files in it, right?
Is your library still in the old location as well?
What I’m thinking is… If you’ve made sure to copy the other persons music into your primary library (step 1), those library files should be the ones you want to keep. You should be able to just copy them into the same place in the new iTunes location (which is where by the way?) and then complete step 3.
If that doesn’t make much sense jet try to give me as much detail as you can about the specifics of your situation and we’ll take it from there! Good luck!
Hi David,
I’m indeed running on an Intel iMac with MacOS 10.5.6 and iTunes 8.1.1 (10). I managed to copy my music to “/Users/Shared/iTunes Music” following the instructions in the Apple article. This folder contains all my music (sorted into artist/album subfolders) but the iTunes library files remain in “~/Music/iTunes”. Here are the contents of this latter folder (after
I removed the original iTunes Music folder as told at step 13 of the Apple article) :
Album Artwork
Previous iTunes Libraries
iTunes Library
iTunes Library Extras.itdb
iTunes Library Genius.itdb
iTunes Music Library.xml
sentinel
All this holds for my own account. On my wife’s account (the basic requirement of your how-to being fulfilled ;), as I told you I cannot apply your step 3 since “/Users/Shared/iTunes Music” is not an iTunes library. I do not believe I can simply copy the library files there since they are supposed to be in a parent folder. What I tried is creating her own library but applying step 2 again to change the location of her music. Doing that, her collection remains empty : iTunes does not seems to detect that its music folder is non-empty. I tried manually updating the collection via “Cmd-O”… Now iTunes sees the music and it fortunately does not seem to generate duplicate music files. But I guess this means that one has to do such manual updates as soon as new music is added.
Before trying your how-to, I tried moving the whole iTunes library in /Users/Shared and replacing ~/Music/iTunes by an alias. But this had problems related to permissions : iTunes could only be opened on one account at a time, and recently it simply stopped working : some files were only read/writable by one user and some other files by the other. A complete mess…
Thanks for any suggestions.
Hmmm… just getting settled back in here after being away… let me take a closer look at this and get back to you.
I’m having issues with davids solution as well. I moved my iTunes library from an external hard drive on my iMac to an external drive attached to my AEBS. I have followed all the steps, now when I try to point iTunes from my macbook at this folder using the option key when launching, I get the error message, “No library file exists.” I noticed that on my iMac, ~/Music/iTunes folder contains all the same files Jeremie listed. It did not move the Library file, I just moved all my data. Therefore, iTunes on my Macbook is looking for a library file that does not exist. I tried coping this out to the Airport Disk, but it still says there is no library file. Stumped.
Hi folks… thanks for pointing out the discrepancy. I’ve walked through the steps again and I think I see where the confusion and issue is coming from so let me build on Step 2 a bit.
Depending on what your initial situation is, certain parts of the iTunes article I reference may not apply. I’ve made a screencast to clarify but let me try to explain as well.
Let’s split Step 2 into two parts.
Step2A) Open iTunes -> Preferences and click on the Advanced tab. Are the ‘Keep iTunes Music Folder’ and ‘Copy files to iTunes’ boxes checked? If so, skip to Step2B.
If they’re not checked, you should check them both and then click ok to close the preferences. Then click File -> Library -> Consolidate Library. This will ensure all of your music is in one place in your EXISTING iTunes library folder.
[Note that the iTunes article goes into a slightly different approach where you’re consolidating your music to an external drive but Andy and Jeremie are right, the library files are left behind. Sorry for the confusion!]
Step2B) Once all your music is in a single folder you just need to copy the entire Library folder into /Users/Shared.
For those of you stuck, give this a try and let me know if it works for you or not. If so, I’ll update the post above to clarify things.
Also, The screencast will be up shortly so I’ll post the link once it’s up and it may help clarify the process.
Also, Re: Jeremie
As for Annette above, with this approach it will be true that only one person can have iTunes open at a time. The iTunes library files are modified when playing music so two instances of iTunes can’t be open at once. The trick is just to remember to close iTunes when you’re done if you use ‘fast user switching’ to bounce between accounts.
Once or twice in the last year or two I’ve also noticed issues where Jen’s account can’t open the library due to a permissions error. This is resolved by reapplying permissions for her to the music library by ‘Getting Info’ on the iTunes Library Folder and ensuring everyone’s account has Read & Write permissions listed in the Sharing & Permissions panel at the bottom. Questions, just shout.
Hi David,
Thanks for your precise reply ! I followed your instructions and moved the whole Itunes folder from ~/Music to /Users/Shared, and set up shared permissions. Then on both accounts I launched iTunes with the Option key so as to tell it where to find the shared library.
This seems to work as you mention. It is a bit early to tell if the permission error will happen again once or twice in the year, I’ll shout in that case 🙂
All the best,
Jeremie
Thanks for the reply David. I gave this more thought and have not given it a try yet. I’m considering not sharing a library file, just incase the wife and I both want to listen to music at the same time? If I give it a try again, it took me 5hrs to move my library to the air disk, I’ll let you know what I find out.
@Andy
Out of curiosity… how are you considering both listening at the same time? See there’s a distinction between having a single iTunes library (rather than a separate his and her’s), and being able to listen to it simultaneously.
Now what I said above is still true that you both can’t have iTunes open accessing the same library… BUT what you can do is share your library over your local network so that it’s accessible on other computers in your house.
We do this as well so we have 1 library on the upstairs iMac which is shared over wifi to the Powerbook laptop and the MacMini which is the center of our home entertainment setup. You’ll find the settings under the Sharing tab in Preferences.
We will be able to read the same shared file at the same time, as long as we aren’t using the same itunes library (database) file, right? Or no? I’m thinking simply from a typical shared file standpoint. if I look at file a on the iMac and she is looking at file b on her macbook, why wouldn’t we be able to do that?
Just to give you an update David. I copied my old, iMac, iTunes Library file, moved it onto my shared AirDisk, referenced that from the macbook and now I can play music and movies from the macbook. However, some of my playlists aren’t quite right. But, thats minor. Testing the syncability (drinking B/L) of the shared library file.
I’ve confirmed #14 above. As long as each copy of iTunes does not reference the exact same library file you can play your content simultaneously from multiple iTunes applications.
If you do reference the same iTunes library file, there is a bit of an annoyance. the iTunes application window opens to the same size it was the last time you closed it. So, if you’re on a 24″ iMac like me, adjust the window to your liking, then jump on your 13″ macbook, open iTunes, the window goes way off the screen. LMAO.
At this point I’m just happy things work, I’ll try to figure out what it is I want to do exactly. I like not having to hunt through our shared folder for any new content added by someone, but I also like being able to play content at the same time and to keep our ratings and playlists. . . hmm. Decisions decisions. Thanks for your help David.
No problem… I think you hit the nail there in #16 about needing to decide what works best for you. The simple case (1 iTunes library per account in the standard Music folder) is easy. Once you start moving it to shared folders and network drives things get a bit trickier. I suspect Apple will address this eventually with some sort of ‘Shared library’ or ‘Music hub’ mode but for now we do it the manual way.
By the way… here’s the video screencast I pulled together for those still trying to figure this out.
http://davidjduran.com/2009/05/11/how-to-consolidate-an-itunes-library/
First, I wanted to thank you for having this available. Even though I can’t get my instance to work yet, it is still valuable and worthwhile to all who read it, so thanks!
I have done everything above…checked permissions, etc. I have fast switching enabled, and my library resides on an external USB powered drive. Upon switching, the drive is seen on each user’s desktop. The library works fine on mine, but when i switch user’s and point iTunes on my wife’s account to the same library on the external HDD, it displays “no library can be found”. Just curious what you think the problem could be. As a side note, I have made sure that the itunes not in use on the other account is closed. Thanks for any thoughts you may be able to give….
Hmmm… What exactly is saying “no library can be found”? When you’re trying to change the library on the 2nd account?
How are you trying to change the library? By holding ‘Option’ when launching iTunes or in the iTunes preferences?
I just tried this by creating a new test library on my external firewire drive and it worked ok so I’m trying to understand if there’s something specific that will recreate the issue.
Dude I am so sorry. I was only selecting the folder iTunes, and not the Library File itself. It worked fine when I did that. Now, I’m curious how the shared library will behave when I introduce my wife’s iPhone to it as well (from and app stand point).
Hopefully someone will read this and not make the same mistake I made. Thanks again for making this available.
How do you choose a library and not the folder?
I did everything it said but when I press option and click on iTunes, it says ‘File not found’. What’s the solution?
p.s.-I added you as a friend on Flickr. Hope you don’t mind. 🙂
Glad it’s working Bill and thanks for checking things out on Flickr… the more the merrier.
I think you’ll find both iPhones will work just fine and now that you have a single library you’ll be able to install whichever apps you like on both of your devices. I only have 1 iPhone so haven’t tested that out but let me know how it goes!
Hi David, nice site and thanks for the help, I got both my girlfriend’s and my account to use the same library after correcting step 2. It seems that apple really don’t want us to do this, they make the point that you should not move the library files (which of course is fundamental to this solution).
Anyway, we got each other ipods for Christmas. After setting up the single library, my girlfriend registered her iTouch in her name and created her own apple store account. I have a nano and before I go into my user account I have a question. Is is ok to register this in my name and create a different account? Should I use the same one?
Thanks for you help.
@Dave
You should be fine to register these with your own Apple Store accounts if you want to keep them separate. In the past you could authorize up to 5 computers to play music bought on iTunes. For example, music bought on your girlfriend’s iTunes Store account could be authorized to play in her account on your mac, your account on your Mac, and up to 3 other places. Since Apple switched to DRM free music however I don’t believe you even have to deal with that.
Bottom line is you should be fine to either share a single iTunes store account or create two separate ones.
Hi – thanks for doing this.
Did you know that there is the “Sharing” function in iTunes that makes this *really* simple?
iTunes->Preferences->Sharing “Share Entire Library” (or selected playlists if you wish).
Go to the other account.
iTunes-Preferences->Sharing and select “Look for shared libraries”
Then select the iTunes library under the shared section.
You may have this covered already, if so, sorry. But I’ve heaps of issues moving and consolidating libraries in my work and I would advise caution before attempting it!
Cheers
Thanks for the detailed explanation, David. Gonna give this a whirl since your solution seems a little more elegant than my previous (and permissions-plagued) attempts to fool itunes into sharing music folders.
@Phillip – Your function isn’t quite the same thing: iTunes->Preferences->Sharing “Share Entire Library” is great, but reading another user’s shared library only works while that user is both logged in AND actually running iTunes. Depending on how one shares a computer, this can be rather frustrating (switch user, log in, start itunes, switch back, access shared music…). And a bit of a memory hog, too.
@Philip – For some this approach may work fine if you can live with the limitations @Andrew mentioned. With iTunes 9 Apple improved this feature quite a bit actually. They call it Home Sharing and it allows you to copy music from up to 5 computers in your home easily from within iTunes. Check out this link for more info:
http://www.apple.com/itunes/features/#bonjoursharing
What a great chain of instructions but I didn’t see my question. What if wife and I have ipods of different storage capacity? Can you independently click and unclick what will be synced to each pod as required to stay within each’s capacity (ie. via man or woman accounts)?
@Dave – Good question… and yes, there are definitely ways of handling this. If you follow the steps as above you end up sharing a single library which means you’ll both see identical playlists, genius lists, ratings, etc.
The easiest way to do this is to create separate playlists for you and your wife. When you plug in your iPod you can then select only the playlists you want synced and when she plugs in hers she can do the same, but you each end up choosing only what you want.
With the recent ‘Genius’ playlist option it’s pretty easy to pick a few songs you like, make genius playlists, and then save them to sync to your iPod.
If you rely only on checking or unchecking the individual tracks and enabling the ‘Sync only checked songs or videos’ option, you’ll quickly find that this is an all or nothing affair and you won’t have the control you’re after.
For more on playlists see the iTunes video tutorial from Apple:
http://www.apple.com/itunes/how-to/#video-playlists
Hi David
I am trying to create a shared iTunes folder on a new mac. For this purpose (and others), I have set up an Admin account to hold the iTunes where I import my CD collection. Then myself and my girlfreind have user accounts which will hold no music, sharing the admin accounts music.
I went through the instructions step-by-step, choosing the shared folder for my collection, and also including making the mistakes around posts 6, 7, 8.
But when I try to option-launch iTunes and direct it to the shared folder: ALERT DIALOG Cannot access iTunes library ; is locked, or you do not have permission etc.
1) iTunes is most definitely quit from the other accounts
2) On launch I am choosing the iTunes Library file (not a folder)
3) The entire folder is set to everyone read and write
Do you have any suggestions?
p
Hi Paul,
Have you made any other progress? Nothing particular is coming to mind if you’re sure that iTunes is closed on the other accounts AND the permissions have been set properly.
Might be worth checking that the permissions were set on the iTunes folder and ALL subfolders/files.
i dont get this at all. Both me and my mother share the same itunes but whenever i want to sync my music it always syncs hers aswell as mine. Is there a way so i can just sync mine?
It depends what you mean. Are both of your music collections in a single iTunes library on a single user account or do you have two separate accounts on the computer?
There are lots of ways you can set it up.
Hi I have shared our libraries, but the playlists have not been shared…. Any advice?
J
Hi Julie, Could you be more specific about how you set this up?
“between you and your wife”
Is that really necessary?
David,
2 Questions… semi-advanced.
1) When you set privileges on the shared folder to everyone being able to read/write and apply it to all sub files/folders doesn’t that only apply to the existing files? When someone adds a new file (either download or rip from CD) then one would have to reset the privileges to the folder again as so all users can access the new file. Doesn’t Mac OSX write files with permission limited to the creating user by default (with the ability to change the permission)? How would one change the default file creation permissions of the shared folder?
2) Do you know of a script or software that will quit Itunes or Iphoto when fast user switching?
@Josh
Good questions… I’m not sure to be honest. Re: 1, I’ve never tested that aspect but also never noticed a problem after adding or purchasing new content. Anyone else know? No idea how to do #2 but I would think it’s possible.
I do have a quick question… I followed the steps and now both of us can see the one itune library. Only thing is my play lists and purchases show up… but the wife’s don’t. Did I miss a step? or is there something else to do to sync all of that.
You Rock!!!!!!! I spent an hour trying to figure this out. I moved my folder, changed permissions, tried a number of my own ideas, but my problem was I had one copy of itunes already running on my other profile. Once I shut it down on one profile, the other profile synced up flawlessly. Thanks you so much. You turned my one hour of dispair into success 🙂
Hi Dave, + anyone that my know.
Dose this work for seperit itunes accounts?
In more Detial, i want to share 1 libary with myself and my partner but we both have seperit itunes accounts, (due to Iphones) is this going to affect the functions of itunes and itunes store by mergining the librarys?
Regards
Rich
@Rich,
Just to check what you mean… when you say “Separate iTunes accounts” do you mean the account you use to login to the iTunes Music Store and buy content?
If so, it shouldn’t be an issue. You would just authorize iTunes to play content from both of your accounts and be all set. Just shout if that’s not the issue or if you want to clarify anything.
@ DjD
Hi Dave, Thanks for the very speedy reply, I will give it a go and get back to you if i have any issues
@Josh/David
Did you ever find a solution for either of your two question in comment 37 above?
Thanks,
Lee
Not afaik Lee.
Lee-
I was correct in the assertion re privileges. If you want to modify a shared file between 2 users permissions need to be updated. It’s annoying, especially with iPhoto, significantly less annoying with iTunes (as one hardly edits music but will often tag people in photos or add locations, etc. To photos).
As for a script to auto close iTunes and iPhoto. I haven’t yet come across anything. Please let me know if you find a solution. Occasionally one or the other of us will not quit iTunes and will corrupt the XML file. Which is easy to fix. IPhoto will not open if it’s running in another users profile.
Hello! Thanks for this info, we’ve used this setup since 08. One caveat that you’ve probably mentioned in the string above was that you had to close itunes in one account before opening it in the other…that was an inconvenience that we just dealt with because it was so convenient to share the actual music library.
Something happened recently though…some update I suppose, and now the same library appears to be open in both users simultaneously (it actually shows up in come sharing even though it’s the same library, just a different user). I’m really happy with this change as now we won’t have to be aware of who has itunes open and won’t have to go switching back and forth, especially as we use our phones to remotely control our music and it’s a pain to always be switching libraries…I just wanted to see if anyone else had noticed this change and if anyone has tested it at all…I haven’t taken the time to see if changes save while both users have itunes open simultaneously. Thanks for any comments!
Thanks for this article.
I’ve had my mac for 2 years and just now learning about opening itunes with the option key to select the libraries.
This helped my problem 1000%
I’d figured out how to do this all myself, but was running into the “locked disk” problem, and your comments explained what going on (the error message tells you every possible error except what is really wrong).
In our case, we have a slow internet connection, so iTunes is often left open under my userid downloading podcasts, at which point my wife complains that iTunes has stopped working due to the disk being locked. No sure how to solve this, as I need iTunes open to download the podcasts, but at least I now know what is going wrong.
So I have windows 7. I’ve had a similar setup to this for awhile. But not sharing the same iTunes library. Just accessing the same media folder. Because we rate songs differently, and she likes folk Lilith fair like music and l like punk rock. But some of our tastes overlap. And I don’t want to duplicate a bunch of music files on my hard drive. And this has been working pretty well. Accept trying to access the different libraries with the AppleTV is a pain, because you have to switch the homesharing account on the AppleTV, and log off\login to the correct account on the computer. But I digress. I am running out of room on my hard drive. So I installed a new drive. I want to move all my media file over to the new drive, but I’m worried that I will totally foul up my wife’s library, since her library will still try to find the files in the old location. There is a decent article on how to move and consolidate to the new “media folder” structure from Apple, but it doesn’t address multiple accounts.
both me and my hubby have iphones, both have apple id’s but share itunes, when hubby plugs iphone into laptop all his contacts were replaced with mine and when he trys to update apps he has bought it asks for my apple is and password eventhough i never bought it he did from his phone help!!!
Follow Up: I followed the apple support article to move and consolidate the media folder to the new drive as logged in to my account and with my library open in iTunes. Then using the option method to change libraries (well, I think it’s actually “shift” key in Windows, I reopened iTunes and selected my wife’s library and repeated the move and consolidate. This created the problem that iTunes is not smart enough to realize that the files are the same, and so it duplicated the song and video files on my new drive. But they were not showing up as duplicates in iTunes. I used a program called Beyond Compare to help and searches in Win7 to find the duplicates and delete them. But this then caused iTunes to see the files as missing in my wife’s library. I found a javascript (with the help of another forum) that fixes broken\missing files. All in all a big pain in the butt that took me days to resolve. I expected more from Apple to make transitioning to a new drive easier.
Hi Dave. I followed your instructions to move my iTunes library to my time machine, everything works, except every time I open iTunes it asks me to manually locate my iTunes library. Is there anyway that it can remember to follow the path to time machine?
Thanks
Excellant screencast! Very clear explanation for setup on a mac.
For Step 3 What Key should be held down to on a PC? Do you have PC Based instructions?