You are not logged in.
I have two remote machines running Arch. They have identical sshd_config, .bashrc and .bash_profile files.
$ cat .bashrc
[[ $- != *i* ]] && return
alias ls='ls --color=auto'
PS1='[\u@\h \W]\$ '
$ cat .bash_profile
[[ -f ~/.bashrc ]] && . ~/.bashrc
if [ -z "$DISPLAY" ] && [ $(tty) == /dev/tty1 ]; then
startxfce4
fiI can log onto both with ssh and conduct the common tasks I perform (ie, no problems), However one gives me the following remark after login:
Last login: ...
-bash: !/bin/bash: No such file or directory
$Where in my login sequence might this error be generated?
Last edited by herOldMan (2014-06-02 18:55:09)
Offline
It just looks like the shebang is incorrect somewhere i.e. "!/bin/bash" rather then "#!/bin/bash". Are you running any scripts?
All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.
Offline
...incorrect somewhere i.e. "!/bin/bash" rather then "#!/bin/bash"...
Thanks, Found it.
In /etc/profile I have a loop:
# Load profiles from /etc/profile.d
if test -d /etc/profile.d/; then
for profile in /etc/profile.d/*.sh; do
test -r "$profile" && . "$profile"
done
unset profile
fiI inserted an echo $profile after the do. I found that the error was thrown on sh vdpau_vaapi.sh, a script which did indeed not have the #.
This particular machine has the catalyst-hd234k driver installed. I am guessing the file was created when installing it or related packages.
Thanks
Offline