Re: waiting for nfs home at login

LuKreme <kremels-/[email protected]> Wed, 25 Sep 2013 08:41:17 -0600
Newsgroups gmane.comp.macosx.admin
Message-ID <[email protected]>
On 25 Sep 2013, at 02:53 , Axel Rau <[email protected]> wrote:

> Thanks, Karl, for responding,
> 
> Am 23.09.2013 um 20:26 schrieb Karl Kuehn <[email protected]>:
> 
>> On Sep 23, 2013, at 8:26 AM, Axel Rau <[email protected]> wrote:
>> 
>>> I have a 10.6.8 OSX server which uses OD with strong binding of the clients (most 10.8.5).
>>> User homes are served via nfs (with Kerberos authentication) from this server.
>>> Occasionally, the login completes before the nfs mount has completed, which trashes dock and finder preferences permanently.
>>> How can I make sure, loginwindow waits until mount is complete?
>>> There is one client, which produces this log entry on the server if it happens:
>>> ---
>>> userInit[2482:907] CFPreferences: user home directory at file://localhost/Network/Servers/zeus.do.main/Exports/Users/fred/ is unavailable. User domains will be volatile.
>>> ---
>>> This user has no managed preferences and the client computer has only a login message text.
>> 
>> 	I don't have an easy solution for you. But when I ran into a similar problem with AFS (not Apple's AFP, but the only formerly called "Andrew File System"), I wound up having to write a AuthPlugin that I put after the user had done most of the authentication that waited for the AFS system to be ready to serve up content. It might work to do that for you. You are going to have to do some work on it if you go this route, since this is older code, but I did open-source it at:
>> 
>> http://code.google.com/p/loginwindowtools/
>> 
> I have already a loginhook running, but it fails occasionally. It's a shell script, which simply checks for network user and loops (with a sleep 1) until ~/Library/Preferences appears.
> Understanding the Launch-Architecture right, I would say, I need a WorkingDirectory parameter with an argument of a directory in the users home in com.apple.{Finder|Dock}.plist
> If I'm right, this would delay Finder and Dock until that directory appears.

loginhooks seem to be a little broken. I have very simple login and logout shell scripts and they get hung-up more often than I would like. I've disabled them for right now.

-- 
Hudd: 'I've just done this radio show where I never met any of the other
actors and I didn't understand what any of it was about' Moore: 'Ah, yes
I expect that's the thing I'm in.'