PDA

View Full Version : ftp problem hack directory gone


fr309
12-24-2004, 06:34 PM
I have telnet but not ftp
I mkdir /var/hack and then cp tivoftpd.mips to /hack
them chmod 755 /var/hack/tivoftpd.mips
and then created rc.sysinit.author file and chmod 755 it.
Install dive in tivo. run telnet and try to get in var/hack and it is gone.
Try to connect with ftp client no connection.

SA S2 with 4.01b with 4.01a kernel

Jamie
12-24-2004, 07:07 PM
var/hack and it is gone.
This is on the short list of common problems: link (http://www.dealdatabase.com/forum/showthread.php?p=200536&highlight=%2Fvar%2Fhack#post200536).

Another possibility, if you are installing software on the PC side, is that you haven't mounted hd?9, the var partition, so you're putting files in the mount point placeholder instead of the actual /var.

JJBliss
12-24-2004, 07:08 PM
I have telnet but not ftp
I mkdir /var/hack and then cp tivoftpd.mips to /hack
them chmod 755 /var/hack/tivoftpd.mips
and then created rc.sysinit.author file and chmod 755 it.
Install dive in tivo. run telnet and try to get in var/hack and it is gone.
Try to connect with ftp client no connection.

SA S2 with 4.01b with 4.01a kernel
Are you really ftp'ing the file to /hack and then trying to chmod 755 /var/hack/tivoftpd.mips

fr309
12-25-2004, 09:49 AM
The dive is in the pc.
mount /dev/fd0 /floppy
mkdir /mnt9
mount /dev/hda9 /mnt9
cd /mnt9
mkdir /hack
cd /floppy
/flloppy cp tivoftpd.mips /mnt9/hack
chmod 755 /mnt9/hack/tivoftpd.mips
umount /floppy /mnt9

reboot in pc

/# cd /var/hack no such file of directory

Montaņo
12-25-2004, 12:30 PM
The dive is in the pc.
mount /dev/fd0 /floppy
mkdir /mnt9
mount /dev/hda9 /mnt9
cd /mnt9
mkdir /hack
cd /floppy
/flloppy cp tivoftpd.mips /mnt9/hack
chmod 755 /mnt9/hack/tivoftpd.mips
umount /floppy /mnt9

reboot in pc

/# cd /var/hack no such file of directory

Your /hack will be listed just like /var in hda9
If you want it in /var/hack you need to mkdir /mnt9/hack

Edit: If you have telnet, you can cd /var and then mkdir /var/hack. Be sure to put the file in /var/hack not /hack as JJ pointed out above.