[NTLUG:Discuss] NFS / .bashrc and .bash_profile

Steve Baker sjbaker1 at airmail.net
Tue Aug 17 15:21:32 CDT 1999


Mike Owens wrote:
> 
> Let me say up front that I don't have extensive knowledge of what I am
> doing, so there very well may be something obvious I missing, or stupid
> that I am doing. Feel free to correct me at any instance of stupidity
> you detect.
> 
> I am have, or am trying to have, all my users' accounts on the server,
> and am using NIS and NFS. I have the home directories in /home/users/. I
> do this so as to separate the /httpd directory from the real users. I
> export this directory, which is mounted on all the client machines via
> NFS.

Not that this helps - but I make all my user accounts be symbolic links
to
their actual locations. That way, when you run out of disk space - or
need
to add another server or something, you can relocate your users files
without
them even being aware that you did it.  This has saved my life on a
number
of occasions.  I create a directory called simply '/u' (users) and put
all the
symlinks in there. That has the nice side-effect of being the shortest
possible
path which saves a lot of typing!

> Now what is weird is that the .bash_profile and .bashrc on the mounted
> home directories are never getting read upon login. The aliases are not
> set, and the prompt is not set. Yet when you log in, you are put right
> in the proper home directory /home/user/<username>.

Your users are actually running BASH I suppose?  Other shells (notably
the v.popular tcsh) use .cshrc and .login

-- 
Steve Baker                  http://web2.airmail.net/sjbaker1
sjbaker1 at airmail.net (home)  http://www.woodsoup.org/~sbaker
sjbaker at hti.com      (work)




More information about the Discuss mailing list