To be really useful at the moment (shortcuts for multiple terminals etc...) fbterm
in it's current iteration needs a setuid 0 bit (also see http://www.linuxcertif.com/man/1/fbterm/#SECURITY_NOTES_806h
). Although in its own this has (possible) security implications there's no real better workaround on TinyCore Linux I found (if there is, I'd sure like to hear).
I originally thought I'd just alter the local .tcz archive in $TCE/optional/fbterm.tcz:
2. chmod 7455 on usr/local/bin/fbterm
3. squash it up again
3. reload (changed) fbterm.tcz
The approach above did not work unfortunately. It seems like squashfs discards or ignores setuid bits. Which means none of the tcz's can import these bits into the base filesystem (which, depending on the view, may be a very good thing).
So my workaround currently involves a small remastering of tinycore.gz (which is particulary easy and nicely documented in the wiki ;-)
# unpack current
zcat /mnt/hda1/boot/tinycore.gz | sudo cpio -i -H newc -d
# and then while having fbterm.tcz mounted
cp /usr/local/bin/fbterm current/usr/local/bin/
chmod 7455 current/usr/local/bin/fbterm
sudo find | sudo cpio -o -H newc | gzip -2 > ../tinycore.gz
advdef -z4 tinycore.gz
This was quite easy since fbterm.tcz only contains 1 file (/usr/local/bin/fbterm) so I did not have to put a lot of files into the base image. But it's hardly elegant.
The disadvantage is I need to tce-load all fbterm's dependencies (fontconfig, gpm, libxft, libx86) 'manually' before starting fbterm.
Can anyone think of a better way to solve this in TCL?