This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

telnet missing windows path


Hi.

i have a problem with the shell missing missing the windows path when
teleting into systems running the cygwin telnet server (run via
xinetd) on Win2003 servers.

if i open up a local cygwin shell on the system i get the following path:

PATH='/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/cygdrive/c/Program
Files/HP/NCU:/cygdrive/c/WINDOWS/system32:/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem:/cygdrive/c/apps/perl/bin:/cygdrive/c/apps/mysql/bin:/cygdrive/c/apps/ruby
/bin:/cygdrive/c/apps/utils:/cygdrive/c/apps/php:/cygdrive/c/apps/graphviz2.20/Bin:/cygdrive/c/apps/subversion/bin:/cygdrive/c/apps/ncftp'

but if i telnet into the system, i get:

PATH=/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin:/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin:/b
in:/usr/bin:/sbin:/usr/sbin

in a windows shell for the same user i get:

C:\Program Files\HP\NCU;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;c:\apps\perl\bin;c:\
apps\mysql\bin;c:\apps\ruby\bin;c:\apps\utils;c:\apps\php;c:\apps\graphviz2.20\Bin;c:\apps\subversion\bin;C:\apps\ncftp

the telnet is setup via init and xinetd:

i have not changed /etc/bash.bashrc or /etc/profile. i did try to add
a set +x to see what i get going into /etc/profile for the path but it
was already the one with only the cygwin in the case of telnetting
into the box (even locally from cygwin prompt/bash).

/etc/profile starts with:

# ...

PATH=/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:$PATH
export PATH

i did have to change /etc/xinetd.d/telnet to point the server to the
correct line (the original file used to point to /usr/sbin/in.telnetd)

$ cat /etc/xinetd.d/telnet
# default: on
# description: The telnet server serves telnet sessions; it uses \
#       unencrypted username/password pairs for authentication.
service telnet
{
        flags           = REUSE
        socket_type     = stream
        wait            = no
        server          = /usr/sbin/telnetd
        log_on_failure  += USERID
        user                    = SYSTEM
        disable         = no
}

some setup info:

    Cygwin DLL version info:
        DLL version: 1.5.25
        DLL epoch: 19
        DLL bad signal mask: 19005
        DLL old termios: 5
        DLL malloc env: 28
        API major: 0
        API minor: 156
        Shared data: 4
        DLL identifier: cygwin1
        Mount registry: 2
        Cygnus registry name: Cygnus Solutions
        Cygwin registry name: Cygwin
        Program options name: Program Options
        Cygwin mount registry name: mounts v2
        Cygdrive flags: cygdrive flags
        Cygdrive prefix: cygdrive prefix
        Cygdrive default prefix:
        Build date: Thu Jun 12 19:34:46 CEST 2008
        CVS tag: cr-0x5f1
        Shared id: cygwin1S4


Service             : init
Display name        : CYGWIN init
Current State       : Running
Controls Accepted   : Stop
Command             : /sbin/init -i


Cygwin Package Information
Package              Version
_update-info-dir     00748-1
alternatives         1.3.30c-2
ash                  20040127-4
base-files           3.7-1
base-passwd          2.2-1
bash                 3.2.39-20
bzip2                1.0.5-2
chkconfig            1.3.30a-1
coreutils            6.10-1
crypt                1.1-1
csih                 0.1.5-1
cygrunsrv            1.34-1
cygutils             1.3.2-1
cygwin               1.5.25-15
cygwin-doc           1.4-4
editrights           1.01-2
file                 4.21-1
findutils            4.4.0-1
gawk                 3.1.6-1
grep                 2.5.1a-4
groff                1.19.2-2
gzip                 1.3.12-2
inetutils            1.5-4
initscripts          0.9-2
joe                  3.5-2
less                 382-1
libbz2_1             1.0.5-2
libiconv2            1.11-1
libintl3             0.14.5-1
libintl8             0.15-1
libncurses8          5.5-3
libpcre0             7.7-2
libpopt0             1.6.4-4
libreadline6         5.2.12-10
libwrap0             7.6-4
login                1.9-8
man                  1.6e-1
minires              1.01-1
ncftp                3.2.1-1
openssh              5.1p1-3
openssl              0.9.8h-1
procps               3.2.7-1
rebase               2.4.4-1
run                  1.1.10-1
sed                  4.1.5-2
sharutils            4.7-1
sysvinit             2.86-3
tar                  1.20-1
termcap              20050421-1
terminfo             5.5_20061104-1
texinfo              4.8a-1
tzcode               2008a-1
wget                 1.11.3-1
which                2.19-1
xinetd               2.3.9-1
zlib                 1.2.3-2


any help greatly appreciated.
h.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]