MGM 0 Report post Posted November 15, 2007 How to download files and make your computer shutoff... Open up a cosole... login as root i.e. depending on your distro su rootThen enter your passwordnow cd to where you want your downloads to be in... cd /home/useror where ever you want your files Then get the downloads urls you want and type this is console wget [url="http://forums.xisto.com/no_longer_exists/; 1 && wget [url="http://anotherone.com/rg-erdr.php?_rpo=t; && poweroffThen press enter And you can leave your computer running knowing that it will turnoff when your done! --- Make sure you have the wget package installed! Share this post Link to post Share on other sites
yordan 10 Report post Posted November 21, 2007 is "poweroff" safe ? I don't know this command. Does poweroff sync the filesystem cache ?I usually don't use poweroff, I "shutdown -g 0 -h" Share this post Link to post Share on other sites
qwijibow 0 Report post Posted November 30, 2007 No !!!!!No No No No No....NOOOOOOOOOOOOOOO.This is a security problem.wget does NOT need root privilages to download files to your home directory.any bugs in wget that allow arbitary code to run would run as root.as a normal user, the damage an attacker can do is limited.. as root, an attacker could install root kits and other nasties !The correct thing to do, would be to set SUID on /sbin/shutdown, and as a NORMAL user.. wget whatever; shutdown -h now or setup sudo to allow normal users to run shutdown as root and usewget whatever; sudo shutdown -h now ALSO.... use of the '&&' would prevent the machine from shuting down if the download fails (think of the electiricity bill)use ';' so that the shutdown will run whenever wget exits (even with EXIT_FAILURE)Also, maybe pipe wget stdout so that you can confirm that the download finished succesfully when you reboot. Share this post Link to post Share on other sites