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

Mike Owens owensmk at earthlink.net
Tue Aug 24 12:48:55 CDT 1999


Sorry it has taken so long. I went on vacation the day I posted the message,
and everyone in the office seemed to suddenly want me to do a thousand
last-minute things and I didn't have time to followup.

I am not sure what happend. I went to another machine I had set up similarly,
and it didn't have that problem. I looked and looked at everything I could
find but nothing worked. It seemed to be only one particular account (mine)
that it happend on. If I opened another terminal login (kvt -ls) under any
other account, it worked fine. So it narrowed things down to that one
particular directory. But the .bashrc and .bash_profile files were identical
to all others, and the access, owner and group settings were correct. I
couldn't for the life of me figure it out. So I telneted to the server,
blasted the account and re-created it, and voila, it worked. But there is
still weird behavior. The aliases work, but my prompt indicates another
(local) user account, while the home directory is mapped to the correct place.

NIS did its job: finding the correct user and running the correct scripts, but

the prompt is not correct. That is where I left it Friday. As long as I have
the correct home directory and environment settings, I am satisfied but not
particularly happy. I will just have to spend some more time learning the
innards of God knows what. You know how sometimes you just have to keep
reading and learning and you find answers to problems you enountered three
months ago? This looks like one of those problems: Is it NIS, is it bash, is
Linux, is it me? Probabaly a little of the first three, and a lot of the
latter. Thus, I will have to get better at all of them to know.

If you figure it out, I would love to know.

Steve Baker wrote:

> 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)
>
> _______________________________________________
> http://ntlug.org/mailman/listinfo/discuss





More information about the Discuss mailing list