I am using a SID chroot on a Lenny system.

In the chroot I experienced the problem that 'su user' would end after any keystroke and return to the root environment.

The problem does not occur with shell /bin/sh but only with /bin/bash as user shell.

The problem disappeared after
rm /home/user/.bashrc

I boiled down the users .bashrc until it contained only the following two lines:
[ -x /usr/bin/lesspipe ] && eval "$(lesspipe)"
PROMPT_COMMAND='echo -n ">"'

If any of the above lines is removed the error disappears.

/usr/bin/lesspipe returns:
export LESSOPEN="| /usr/bin/lesspipe %s";
export LESSCLOSE="/usr/bin/lesspipe %s %s";

Best regards

Xypron





--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to