How to get "fast user switching" and network shares playing nice

I've been alternating between banging my head against a wall and reading every forum I could find to try and get a reasonable compromise between using "Fast user switching" and sharing a folder from a file server.  It baffles me how the network share/mount model of OSX/AFP is completely killed by fast-user-switching; this is a big problem with Apple requiring users to be actively logged in to share music/video from iTunes which therefore essentially requires fast-user-switching if anyone else wants to use the computer.  (anyone find it odd that you can share files without being logged in, but sharing songs requires an active login for each user who is sharing?  Apple: time to make iTunes sharing a service!)
For the sake of example, lets just say I want to share my /Groups folder from my desktop and have it be accessible to my laptop.  Here are all the things that I tried:
Apple Method 1) Share /Groups in the Server.app on the desktop (running Lion Server), use finder on the laptop and drag the share icon to "Login Items", alternative use a startup Apple script using "mount volume"  Both of the options work and will mount the /Groups folder under /Volumes/Groups, of course when the second person logs in via fast-user-switching (and occasionally the first person for no apparent reason), they will get /Volumes/Groups-1 since /Volumes/Groups is already taken.  Tomorrow we log in a different order and now the previously /Volumes/Groups-1 user has their mount at /Volumes/Group and vice versa.  Any links, aliases, finder sidebar references, and application settings which pointed to yesterday's location are now BROKEN.  Not very user friendly to my mother-in-law who is trying to find those pictures of the kids and doesn't know anything about mount points. I also can't reasonably mirror the file location structure on the desktop so that application preferences that are synced between the two (portable home directories) work.   fail.
Apple Method 2) Use automounter and set up by hand direct maps for /Groups or an indirect maps for the children of /Groups.  Now it will automatically get mounted to /network/servers/SERVER/Groups/ on the laptop and on the desktop it will automatically create a similar symlink structure so that the same path (/network/servers/SERVER/Groups) work both on desktop and laptop.  Cool.  Except when the second person logs in, the /network/servers/SERVER/Groups/ mountpoint is already owned by the first user and they don't have any permissions to access it.  Fail.
Apple Method 3) Use mount_afs and specify directly the mount-points.  Have each user have their own startup AppleScript which mounts /Groups to a different location (e.g. /Users/Shared/username/Groups) that way they don't conflict with multiple users.  On the desktop, set up symlinks from /Users/Shared/username/Group to /Groups so that it will be the same as the client and applications settings will work when synchronized back/forth by portable-home-directories.  Will it work, yes it does, but what a bear to maintain.  Is this really what I should expect to do just to have multiple users on my desktop and laptop (which again is essentially required now if I want to do any type of iTunes sharing).  This can't be what apple expects.
What I ended up doing - the "not quite apple" solution.
Non-Apple Method 4) After a read of "Autofs: Automatically Mounting Network File Shares in Mac OS X" (http://images.apple.com/business/docs/Autofs.pdf) at the very end there is a single paragraph  of "Kerberized NFS": "A Kerberized NFS mount can have multiple connections from multiple users, each using the correct user’s credentials for each transaction. This allows administrators to support multiple users, each authenticated with their own credentials to the same mount point. This is very different from AFP and SMB mounts," (emphasis mine)
It appears that by using good 'ole NFS (abeint with Kerberos for security!) you can actually have multiple users on the same mount point.  Roughly following the guidance at https://support.apple.com/kb/TA24986?viewlocale=en_US.  What I needed to do was:
1) create /etc/exports on my desktop and add a single line "/Groups -sec=krb5".  The existence of /etc/exports triggered a start of nfsd which no longer has any GUI options in Lion.
2) Add a line to /etc/auto_master on my laptop "/-  auto_mymounts" to reference a new direct map.
3) Create /etc/auto_mymounts and add a single line "/Groups         SERVER:/Groups" to create the direct map.
THAT'S IT.  Three lines in three files.
Now when I log into my laptop, there is a /Groups that is a network mount of my desktop's /Groups, same location AND it works for all of my users, even simultaneously. 
In the end I'm happy with what I've got, but man was this a difficult path just to support fast-user-switching.  In Lion, Apple appears to be getting away from NFS (no longer turned on by default and remove from the GUI controls) but clearly this really useful functionality which doesn't exist in AFP. 
I'm really curious, after all this work.  Any other ways to accomplish this?

In my example above, yes I chose to mount the share "Groups" to the top of the root since that is where I put it on my server and I wanted to keep them similar; but that was just my preference, it isn't a requirement.  You can export and mount from other directories.

Similar Messages

  • How to get Fast User Switching in Win7 enabled with Anyconnect 3.1 installed

    After installing Anyconnect secure mobility client 3.1 on Win7 ultimate x64 the Fast User Switcing is not functional as I must log off the logged on user before new user can logon.
    This issue affects the RDP session to Win7 machine as the console user must log off before the remote user can logon but because I use the Anyconnect client for dot1x authentication once the console logged off the port become down.
    Any help???

    In my example above, yes I chose to mount the share "Groups" to the top of the root since that is where I put it on my server and I wanted to keep them similar; but that was just my preference, it isn't a requirement.  You can export and mount from other directories.

  • Screen has a bluish tint after fast user switching and then warning tone

    Hi all I'm having a bit of a problem that I hope someone can help me with. First the details, I have a MBP bought in late '07 and running Tiger. I was doing full backups using "Backup" and I also had Safari, iTunes, and Word open. I briefly switched to my other account using fast user switching and when I returned to the original account the whole screen had a blue tint to it. Like the color profile was off. This has happened before and a restart usually cures it, I haven't restarted yet but I am fairly certain it will correct the problem this time too. But is there anyway to prevent this? My second question is the one I'm more worried about. It also has happened before but usually when using more CPU intensive applications. When I went to System Preferences and opened up the display preferences in an attempt to correct the previous problem I heard a very loud tone. Like some type of warning tone, it was loud enough that it startled me. I had iTunes playing and after the tone the music got very quiet but relaunching it brought it back to normal. I'm just wondering is this some type of warning tone? Is it something I should be concerned about? Besides the music everything else seemed unaffected, although the previous times that this has happened usually when using handbrake there was noticeable problems after the tone (like applications crashing). All of these problems are gone after the computer is restarted though. Does anyone have any insight on these issues? Thank you.
    -James

    OK I ran TechTool and everything passed except for the volume scan. Then I checked this with Disk Utility and the HD failed for a few minor reasons, like invalid block count. I repaired it using the fsck -fy command in single user mode. The computer seems a little faster now. I don't know if this error is related to the beep in any way, I may try talking to an Apple genius to see if they know. Since it seems like pretty minor errors I'm not too worried about it but it does seem to be happening often. The last time I had this error was when I posted a question here about it which I just checked was on March 1st. So this error happened again after a little more than 2 weeks which seems excessive to me. Any thoughts?

  • Fast user switching and "ipod is in use by another user on this computer"

    Is there any way to suppress the "ipod is in use by another user on this computer" message that appears when you use fast user switching.
    my wife and I share a mac pro and when flipping between sessions, this message gets to be a bit annoying. i.e. if her itouch is plugged in and she is managing it through her library, if I fast user switch to my session, I get the warning dialog (ok to clear) I mention above. This is kind of annoying now, since I understand I won't be able to manage that ipod from my itunes session.
    is there anyway to suppress this behavior?

    Hi again,
    Glad to hear you got all your music files back into your library.
    I've seen this iPod error before, but I don't know why it occurs. In my experience, restarting the computer solves the problem.
    Cheers,
    Sara.

  • Mac OS X 10.5: How to enable Fast User Switching

    On my iBook G4, I have installed Leopard and retain the ability that I had with Tiger to select my user name on the top bar and then switch users. However, on my dad's iMac, which came preloaded with Leopard, I do not have this same ability. How would I go about making this work?

    You have to activate Fast User Switching in System Preferences > Accounts (at the lower left corner you'll find the button Login Options). You can choose whether to display just an icon or your user name in the menu bar. In order to change any of these options you need admin privileges. If the menus are greyed out click on the padlock in the lower left corner of the window.
    floba

  • How to enable fast user switching in OS X 10.8.1?

    How do I enable fast user switching in OS X 10.8.1?

    go to System Preferences > Users & Groups
    Login Options (underneath the list of users)
    Tick "Show fast user switching menu as .."

  • How to enable fast user switching remotely via SSH?

    There is a Mac which at the moment doesn't allow fast user switching. I have admin account on this Mac. Currently, another user is logged in, so I can access the Mac only via SSH. I don't want to destroy the session of that user otherwise the user can loose important data.
    Can I enable fast user switching by accessing the Mac via SSH?

    Try this:
    defaults write /Library/Preferences/.GlobalPreferences MultipleSessionEnabled -bool YES

  • Sharing album artwork with fast user switching and soft links

    We have 4 users, 4 iPods, 4 sets of playlists. Each has their own account. All the music lives on an external drive and each iTunes is set to store its music in the same shared folder. That all works fine.
    Now we're getting into album artwork, and I want to share that too. I found a posting somewhere that suggested a soft link from /Users/Me/Music/iTunes/Album Artwork -> /Volumes/BigDrive/iTunes Artwork. I did that with one user and it worked fine - copied Album Artwork folder and set soft link and voila, all the art. I also set all permissions to allow r/w from everyone.
    But when I set the soft link from 2nd user, iTunes shows no art. I can browse all the art files fine from that users Finder.
    Thanks for any help!
    mac mini   Mac OS X (10.4.9)   iTunes 7.1.1

    And just like that I may have found the solution! IT suddenly occured to me that one of the settings that got changed when we imported my wife's profile was a change to the sleep settings. Previously, I had had my iMac set to never go to sleep, since it shares our media with the rest of the house and runs eyeTV to record TV shows and such. For a little while after my wife's account was imported the settings to changes so that the computer would go to sleep after 15 minutes. I'm not totally sure why, but I think having that set up somehow meant that when we switched accounts my other account just "went to sleep" and therefore stopped sharing the iTunes library. After I noticed the change and switched the computer back to "never" for sleep the problem seems to have stopped.
    So perhaps check your sleep settings? That seems to be the only change I can think of that got things working correclty for me. I'll keep digging though and see if I can find any more helpful info. Good luck!

  • Fast User Switching and the Flash Plug in Issue?

    Whenever my daughter logs into her account and plays on PBS Kids (which is Flash heavy) the Flash games just stop working after a few minutes. This happens in the latest Safari and Firefox, with the latest Flash plugin.
    If I keep her logged into the default account the site works fine.
    Any information is greatly appreciated.

    Could you please do the following.
    Download the following two files and save to your desktop. These are direct download links so you'll only see the dialog boxes which looks like the ones you see in the screenshot.
    * [http://download.macromedia.com/pub/flashplayer/current/uninstall_flash_player.exe uninstall_flash_player.exe]
    * [http://fpdownload.adobe.com/get/flashplayer/current/install_flash_player.exe install_flash_player.exe]
    Next, close Firefox via File | Exit (''it's important that you do it this way and not just by clicking the close button'')
    Next, double click the '''uninstall_flash_player.exe '''file you downloaded earlier and then '''reboot'''. A reboot is necessary to remove the setting from the Windows Registry.
    Next, double click the '''install_flash_player.exe''' file to reinstall Flash.
    Finally, restart Firefox and see if it made any difference.

  • Getting XBMC, lirc, irexec, and huludesktop to play nice.

    I'm trying to get my arch/xbmc mediabox finished and I need some help.
    I want to assign a key on my remote that launches a script which will close xmbc and then launch huludesktop.  Ideally, it would then relaunch xbmc when huludesktop is closed.
    I found a thread on xbmc forums that sounds like they got to work but I'm not quite understanding what they did.
    http://xbmc.org/forum/showthread.php?t= … lu+desktop
    Any help would be appreciated. 
    Thanks!

    Netctl-auto works fine ...you don't need to mess with it between suspend resume cycles even when moving between known networks. I have found it to be a bit fragile when moving to a new network. If you have trouble setting it up I will help when I get back to my computer.
    Scott

  • How does fast user switching know which energy settings to use?

    When using fast user switching and keeping 2 accounts logged in, which accounts' energy settings take priority (assuming their settings don't match)? For example, let's say I set my account's display to sleep after 15 minutes and my wife sets hers for 30 minutes. If we both keep our accounts logged in and then leave the Mac on the login screen, who wins?
    The reason I ask is because my display won't stay asleep. Unlike my example above, I've made sure both accounts have identical energy settings (sleep the display after 15 minutes & the iMac itself is set to 'never sleep'). I can get it to sleep (usually by pressing control-shift-eject), but it will not stay asleep. I don't think any applications are causing this (I've shut down all apps to test - only Time Machine is scheduled to run automatically). I'm starting to wonder if fast user switching could be the cause? I usually keep both accounts logged in at all times and return to the login screen before heading to bed. I then force the display to sleep with control-shift-eject, but several hours later I wake up to a bright room because the display has turned on again. I haven't tried turning off fast user switching yet, but I can see where that might confuse the OS?
    Oh, I've also disabled waking on bluetooth activity just in case my wireless mighty mouse was losing its connection & waking the display upon reconnection - no luck.
    Any thoughts or suggestions are appreciated - it's driving me nuts, especially since I can't just turn off the iMac display itself without powering down the entire system.

    Energy Saver settings are system-wide and not specific to the user. If one user changes the settings, it's changed for everyone. Screensaver settings are user-specific.
    That said, the reason that the system wakes by itself can be one of several things: the system is set to wake up (you can set this under energy saver) by preferences or some application/service, the system receives a wake-up message from something on the network (you can configure this under Security, I believe, or Network, I don't recall), or you have "chatter" related to a device plugged into your computer.
    "chatter" is when a USB device or FireWire device sends a signal to the computer it's connected to. Normally, peripherals are quiet if not actively in use, but some things (cheap USB hubs, certain mice, etc) will spuriously send a signal to the connected computer and cause it to wake.

  • Slow Login, Slow "Fast User Switching"

    Hi--I have a Core Duo, Intel iMac running Leopard 10.5.2. The initial log-in is very slow (several minutes) for any user--whether it's the initial boot up or switching users using "fast user switching." But all seems to work well once the login completes. After a user, or multiple users, rather, are logged in the first time, fast user switching works normally.
    Also, if two or more users are logged in, and a user logs out, it takes forever for one of the other logged-in users to log back in.
    I've tried turning off fast user switching and rebooting; I've disconnected all USB devices; I've repaired permissions; I've rebuilt the directory structure using Disk Warrior 4.1; I've created new accounts (the problem is identical in all accounts); but theses measures didn't work. I know previous versions had issues with font caches, but I'm not sure how to delete these in Leopard. Anyway--anyone else encounter this problem? Thanks!

    Well, I did an "Erase and Install"--and THAT didn't get rid of my problem... Well, I SHOULD say it did--for the first boot-up into the new system worked flawlessly, but I courageously and foolhardily chose to "Transfer" my files and settings from my backup disk. Voila, the the problem of the "blue screen of death" (not really death, just long delay) was restored, along with all my data. So I did another "Erase and Install," and this time only manually restored my user accounts--and I'm happy to report: ALL IS WELL....
    I'm thinking that the troublesome application that was conflicting with Leopard was the "Boot Picker" pane that I had trouble disabling or deleting from the previous installation of Tiger. I do have a Windows partition, but apparently Boot Picker should not be used with Leopard. I did go through the "Boot Camp" installation process in my first upgrade to Leopard, but that process didn't remove the earlier installation of Boot Picker.
    This is still just a guess, and I'm hoping, as I continue to reinstall miscellaneous application on my newly re-installed system, that the problem doesn't come back (or if it does, it comes back at a clearly-identifiable moment).
    Message was edited by: Angelo -B

  • Issues with Fast User Switching, language pref, greyed out menu options

    I have only one user logged in to my Macbook. If i want to select the other user using Fast User Switching and clicking on the username in top right corner of screen, nothing happens. The other user at this time is still logged out.
    Incidentally, when i click on the airport symbol, the wireless networks are often greyed out and i can't change networks unless in go into network prefs.
    One more thing - i have english and spanish selected as languages in international preferences. I ca not switch back to english at all - by clicking on the flag in the menu bar or by going into sys prefs. When n battery power, power characteristics are also greyed out and unable to select a different profile.
    any help welcome.
    thanks

    It sounds like everything in your menu bar is florfed.
    Can you log in to the other user account from the login window instead of by fast user switching? If so, does that account have the same problems with the menu bar?

  • Trouble with "Fast User Switching"

    Leopard 10.5.1 MacBook 2.4, 160 gig.
    I enabled Fast User Switching, and I see my account in the upper right part of the screen. However, my account is the only one that shows, yet I have two others. Also, When I asked the login screen to show a list of users rather than the logon screen, It does NOT show the list.
    I have had this computer for only 6 days.
    I have archived and reinstalled the OS. No change. Is this just my problem, or have others had the same issue? If it is me, what please is the fix?
    Thanks in advance,
    John

    Hennapanda1 wrote:
    Leopard 10.5.1 MacBook 2.4, 160 gig.
    I enabled Fast User Switching, and I see my account in the upper right part of the screen. However, my account is the only one that shows, yet I have two others. Also, When I asked the login screen to show a list of users rather than the logon screen, It does NOT show the list.
    I have had this computer for only 6 days.
    I have archived and reinstalled the OS. No change. Is this just my problem, or have others had the same issue? If it is me, what please is the fix?
    Thanks in advance,
    John
    When I select my name in the upper right-hand corner, the others appear in a dropdown box on my machine.

  • Home Sharing stops working with fast user switching

    I have a late 2013 iMac running Mavericks.  The main account has my iTunes library with Home Sharing enabled.  The AppleTVs and IOS devices can see the Home Share and it works well.   But, it stops working when user accounts are accessed on the Mac.
    For instance, as soon as I select "Login Window..." from the fast user switching menu, the share is lost.  I did not log out, iTunes is still running.  I simply showed the login window.  All IOS and ATVs loose the share.  Switching to another user also stops the share.  It's as if iTunes is completed halted and not allowed to run in the background.
    When moving from the login screen back to the user account where the iTunes library is located, the home share is restored.  Likewise, moving from a 2nd user account back to the main account where iTunes is runnning restores the home share.
    I have a MacPro running Mountain Lion, and it works fine.  The iTunes library is always available for the devices, even if multiple users are signed into the Mac, or if the Mac is on the login screen.
    Any work around for Mavericks?  It competely breaks the entire media ecosystem if every device looses the home share if someone tries to use their account on the Mac.

    And just like that I may have found the solution! IT suddenly occured to me that one of the settings that got changed when we imported my wife's profile was a change to the sleep settings. Previously, I had had my iMac set to never go to sleep, since it shares our media with the rest of the house and runs eyeTV to record TV shows and such. For a little while after my wife's account was imported the settings to changes so that the computer would go to sleep after 15 minutes. I'm not totally sure why, but I think having that set up somehow meant that when we switched accounts my other account just "went to sleep" and therefore stopped sharing the iTunes library. After I noticed the change and switched the computer back to "never" for sleep the problem seems to have stopped.
    So perhaps check your sleep settings? That seems to be the only change I can think of that got things working correclty for me. I'll keep digging though and see if I can find any more helpful info. Good luck!

Maybe you are looking for