From: Darryl B. <db...@nr...> - 2004-01-07 22:59:50
|
Norman, Jim, The mounting of home directories really should be done with the automounter. If you have NIS running then the automount home directory can be in the NIS maps or in a file in etc. This will then allow different users to have their home directories on different servers. Automount will mount the correct home directory based on the information in NIS. This is what autofs was originally designed for. The method suggested only allows one home directory server to be used. Regards Darryl Bond jam@McQuil.Com wrote: >Norman, > >Most excellent ! > >These are some changes that I've been wanting to make for a long time, >but just have never gotten around to actually doing it. > >I'll incorporate your changes into the next update. > >Thank you very much, > >Jim McQuillan >jam@Ltsp.org > > > >On Wed, 7 Jan 2004, Norman Gaywood wrote: > > > >>I'm using LTSP4, really good stuff! Hope to get lbe going soon. >> >>I needed some more flexibility with LOCAL_APPS and user home directories. >>So I made some small changes to rc.sysinit. The diff is below. Here are >>3 new variables that I have defined. If you don't set them then >>LOCAL_APPS works as before. >> >>Maybe someone else will find this useful. >> >># HOME_SERVER >># The NFS server containing the user home directories when using >># LOCAL_APPS. Default is NFS_SERVER. >># >># HOME_EXPORT >># The directory name exported from HOME_SERVER that contains the >># home directories. Default is /home. >># >># HOME_MOUNT >># The mount point for the home directories. Default is /home. >># You will need to manually create this mount point if you use >># LOCAL_APPS and the directory is not /home. When LOCAL_APPS >># are in use, home directories are mounted with the command: >># mount -t nfs -o nolock ${HOME_SERVER}:${HOME_EXPORT} ${HOME_MOUNT} >> >>Here is the: diff rc.sysinit rc.sysinit-orig >>55,56d54 >>< HOME_MOUNT=${HOME_MOUNT:-"/home"} >>< reg_info HOME_MOUNT >>59c57 >>< if [ ! -d "${HOME_MOUNT}" ]; then >>--- >> >> >>> if [ ! -d /home ]; then >>> >>> >>283,287d280 >>< HOME_SERVER=${HOME_SERVER:-${NFS_SERVER}} >>< HOME_EXPORT=${HOME_EXPORT:=${HOME_MOUNT}} >>< reg_info HOME_SERVER >>< reg_info HOME_EXPORT >>< >>290c283 >>< mount -t nfs -o nolock ${HOME_SERVER}:${HOME_EXPORT} ${HOME_MOUNT} >>--- >> >> >>> mount -t nfs -o nolock ${NFS_SERVER}:/home /home >>> >>> >> >> > > > >------------------------------------------------------- >This SF.net email is sponsored by: IBM Linux Tutorials. >Become an expert in LINUX or just sharpen your skills. Sign up for IBM's >Free Linux Tutorials. Learn everything from the bash shell to sys admin. >Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click >_____________________________________________________________________ >Ltsp-developer mailing list. To un-subscribe, or change prefs, goto: > https://lists.sourceforge.net/lists/listinfo/ltsp-developer >For additional LTSP help, try #ltsp channel on irc.freenode.net > > -- Darryl Bond NRG Gladstone Operating Services Pty Ltd ( Gladstone Power Station ) [email: db...@nr...] [voice: (07) 49 765756] [fax: (07) 49 765722] snail: PO Box 5046 Gladstone 4680 Queensland , Australia |