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:
however... i'm still unable use these devices redirection. results like: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
anyone know i've missed?code:[dave@panic:/] $ cat < /dev/tcp/time.nist.gov/13 bash: /dev/tcp/time.nist.gov/13: not directory
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
Post a Comment