Mailinglist Archive: opensuse (2955 mails)
| < Previous | Next > |
[opensuse] Bug added; bashrc script now calls login-profile script
- From: Linda Walsh <suse@xxxxxxxxx>
- Date: Sun, 11 Feb 2007 17:53:00 -0800
- Message-id: <45CFC87C.1070403@xxxxxxxxx>
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: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx
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: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx
| < Previous | Next > |