problem with webpark.cz is that it allows only links to binaries with same http referrer. Solution is to create html on webpark that links to the binary and this works. I was just lazy to do it and this forum cannot accept .tgz binaries as attachement. Copying link to adress bar causes no http referrer (in most browsers, opera in n770 may be an exception) and this is allowed.
first part is generic way of executing itself as root via sudo gainroot so you don't need to do it before executing it. In second part I tried to prompt for password without showing it on display but it doesn't work, it is shown, read command is too limited, there is no -s (silent) option in n770 version. But at least it is not remembered in shell history. Too bad it is still in /proc/mounts and /etc/mtab when share is mounted. Removing it would require mount.cifs helper executable which takes special care of the password.#!/bin/sh
# use gainroot to become root and relaunch itself and remember original tty device
if [ `id -u` != 0 ] ; then
TTY=`tty`
#if not already root, call itself as root
sudo gainroot <<EOF
export TTY=$TTY
$0 $*
EOF
exit
fi
TTY=${TTY:-`tty`} #set also if called directly as root
# real script follows
grep -q cifs /proc/modules || insmod /root/cifs.ko
echo -n >$TTY "Password:"
read <$TTY >/dev/null 2>&1 pass
mount -t cifs //192.168.2.1/win_c$ /home/user/MyDocs/network/franta_c -o domain=FRANTA,user=Administrator,password=$pass,uid=29999,gid=29999