Skip to main content

Thread: Enabling /dev/tcp


i've found infinite number of webpages , forum threads stating debian , ubuntu distros provide bash compiled --disable-net-redirections disallows redirection /dev/tcp , /dev/udp. on other hand, i've found incredibly small amount of information how "fix" beyond "go recompile bash". thread on launchpad notes karmic comes version of bash enables redirections. i'm running jaunty, , upgrading isn't feasible.

so, i've recompiled bash (version 4.0.0)with --enable-net-redirections. after searching around way long, came across major , minor device ids tcp , udp devices , created them mknod. essentially, command history:
code:
cd <bash source directory> sudo su ./configure --enable-net-redirections make make install mknod /dev/tcp c 30 36 mknod /dev/udp c 30 39
however... i'm still unable use these devices redirection. results like:
code:
[dave@panic:/] $ cat < /dev/tcp/time.nist.gov/13 bash: /dev/tcp/time.nist.gov/13: not directory
anyone know i've missed?

fwiw, major , minor device numbers came documentation.txt file in ubuntu kernel source. don't suspect them wrong, it's possible. there other initialization required when using mknod? there flags need set chmod, example, obtain behavior i'm looking for?


Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [SOLVED] Enabling /dev/tcp


Ubuntu

Comments

Popular posts from this blog

Convierte tu Raspberry en un NAS. Firmware fvdw-sl 15.3 - Raspberry Pi Forums

How to format a Get Request

avrdude: verification error, first mismatch at byte 0x0000 0x0c != 0x62