PDA

View Full Version : Bash prompt unable to find commands in "path"


ciper
07-13-2006, 05:11 AM
I decided to implement a simple password checking option to my telnet connection. While testing I ran the regular telnet settings on an alternate port (24)

Here are the relevent lines of my rc.sysinit

/sbin/tnlited 24 /bin/bash -login &
/sbin/tnlited 23 /var/hack/passwordcheck.sh

When i connect to port 24 I can type ls and get a directory listing. When connected to port 23 I get a bash prompt but I am unable to run any programs with the shortened name minus path.
"bash-2.02# ls
bash: ls: command not found"

What am I missing?