Actually good answers from both, Mathew...
I'm still having the problem, but it just gets curiouser and
Following Casper's recommendation, here's what I found -
I changed the PS1 in /.profile to "hey beavis #" or something like
that. Logged on as normal user, no effect. Restart inetd as
root(actually inetd -s), and log back on as joe user1, and now my PS1
is "hey beavis #". Remove the PS1 from /.profile, restart inetd and
now everyone's bourne shell prompt is..., yep you guessed it, "#"
(whatever root's .profile is, which in this case is missing, so it
defaults to "#"). So the /.profile is being cached (?) for everyone
to use. But as Mathew said, /.profile (cached?) must be run by
everyone, but my $HOME is accesible just fine. Log in and I'm in
/home/beavis, /etc/profile and my .profile runs, everything is honkey
dorey (or so it seems). So the problem takes another turn, but it's
still THE problem.
Thanks for the help, and any more ways to "hone" in on it will be
> > Very interesting scenario. When I login to our 2.7 machine (bourne shell),
> > But I'm logging in as a regular user. The /etc/profile and my personal
> > profile (as well as all other Bourne shell users)have no reference to PS1
> > anywhere, so when I login, I should see the default "$".
> > When I "su" to a particular userid with a Bourne shell, I get the "$" prompt.
> > If I put a "echo $PS1" at the BEGIINING of the /etc/profile, it comes back
> > variable.
> > BUT I CANNOT FIND OUT WHERE IT'S BEING SET! It's driving me crazy! Any
> > ideas????
> While Casper probably has the right answer, as he always does, I do have an
> alternate theory:
> Is the user's home directory being mounted/accessed properly? When a user's
> home directory can't be accessed at login time, the system sets the user's
> $HOME to /, which is root's home directory. Of course, normal shell login
> procedure dictates that $HOME/.profile is executed. If root's .profile is
> hard-coded in /.profile (as opposed to using the bash-specific prompt
> Yes, I'm reaching a bit, but sillier things have happened...