2
You are logged in as a regular user and working directory /tmp/
. How, using two commands, you can delete the file labul.txt
, which is owned by root?
This is a task that my friend was given by the professor; he claimed it is possible to do.
sudo rm
is not an allowed answer, as we don’t have administrator permission.
Any ideas?
1Assuming that this is all that the prof said (he didn't mention the possibility of pickling the sticky bit), I would say that the 2 commands are OFF and ON using the power button. Then (by default on most distribs) /tmp is emptied along with root's file while booting. I vote it up in case somebody knows a better one. – Gombai Sándor – 2016-03-30T20:16:23.553
hardest to find are the easiest questions x d – binar – 2016-03-30T20:33:50.217
do you mean two words or two commands? How about two commands 1) sudo gnome-terminal 2) rm labul.txt – None – 2016-03-31T03:24:27.640
2 commands. Can i use sudo if i dont have admin permission ? or root password ? – binar – 2016-03-31T06:21:17.547
guys problem solved we missunderstood the task xd the answer is sudo su and than rm file ..... thanks everybody – binar – 2016-03-31T09:55:13.767