I'm not sure exactly when it was added, but someone thought it
would be good to get rid of the system login script that is called
for "interactive logins".  I don't think this was intended and
believe it to be a mistake.

There is code in the system "bashrc" script, now, that calls the
system "login" script (/etc/profile).

The login specific scripts are supposed to be called for "interactive"
logins -- not every time "/etc/bashrc.bashrc" is called.

The login-specific bash scripts belong in "/etc/profile.d".

The problem lines, added in /etc/bash.bashrc are:
---------
#
# Just in case the user excutes a command with ssh
#
if test -n "$SSH_CLIENT" -a -z "$PROFILEREAD" ; then
   . /etc/profile > /dev/null 2>&1
fi
---------

This doesn't get called with "RSH" commands (insecure anyway,
ssh usually substituted) but it does get called with "scp" and "rsync"
(assuming config'ed to use with RSH).

Please keep /etc/bashrc.bashrc as it's equivalence to .bashrc
and use /etc/profile (and /etc/profile.d/) for login.

Should I submit this somewhere as a bug?

Linda



--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to