Joey,

> hard   The program accessing a file on a NFS mounted file system will hang
>        when the server crashes. The pro­ cess cannot be interrupted or
>        killed unless you also specify intr.  When the NFS server is back
>        online the program will continue undisturbed from where it was. This
>        is probably what you want.

        I've tried it, but I see two problems with it:

        a. 'root' can not login as it looks for it's mail on
/var/spool/mail (also nfs-mail). I can put a .hushlogin and anyway root
never receives email (admin does it for him), but if root tries to ls
/var/spool/mail it hangs. Maybe I'm too much of a purist here.

        b. Imagine bot the client and the server fall (power out, for
example). The client boots up faster than the server and when it tries to
mount the partition it can't. Idea for this: make a C program that looks
for well mounted directories and if they aren't good it mounts them. C
because the program will run 'suid' from /etc/profile (and mount is not
suid). Of course the C program will not accept any parameters nor
configuration (I don't know much of C program security, so better make it
simple).

        What I'm looking for exactly is if it exists a standard solution
for problem b.

        Thanks for your help!

-- p.

Reply via email to