From: Gavin McCullagh (gavin at domain fiachra.ucd.ie)
Date: Tue 23 Oct 2001 - 11:48:24 IST
On Mon, 22 Oct 2001, Kevin O Riordan wrote:
> Unlikely, but is it yr ssh client that's doing it ?
I've tried it sitting at the machine and the same happens.
> Not familiar with the intricacies of *nix or win* ssh clients, but I
> know putty allows env vars to be set on connection; I assume *nix
> clients would allow remote command execution ?
> More unlikely guesses - are you sure yr .bash_profile is being read ?
Yeah, I've stuck things like set -o in both and you see their output on the
console as the login proceeds. The odd thing is that if I make
but then when I type the command:
gavin at domain farfalle ~ % set -o
> Stick in a 'touch somenewfile', then log in again to see if the file
> was created ...
> Best silliness yet:
> strace bash -login -c 'logout' 2>&1 | grep '^open'
gavin at domain farfalle ~ % strace bash -login -c 'logout' 2>&1 | grep '^open'
open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or
open("/etc/ld.so.cache", O_RDONLY) = 3
open("/lib/libncurses.so.5", O_RDONLY) = 3
open("/lib/libdl.so.2", O_RDONLY) = 3
open("/lib/libc.so.6", O_RDONLY) = 3
open("/dev/tty", O_RDWR|O_NONBLOCK|0x8000) = 3
open("/etc/profile", O_RDONLY|0x8000) = 3
open("/home/local/gavin/.bash_profile", O_RDONLY|0x8000) = 3
open("/home/farfalle/gavin/.bashrc", O_RDONLY|0x8000) = 3
open("/home/local/gavin/.bash_logout", O_RDONLY|0x8000) = -1 ENOENT (No
such file or directory)
open("/etc/bash.bash_logout", O_RDONLY|0x8000) = -1 ENOENT (No such file or
> That should show all the files bash sources on login ...
It doesn't appear to show anything but the files I've been looking through.
NB /home/farfalle and /home/local/ are the same.
What the hell is happening?
This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:12:52 GMT