Reputation: 11
I'm trying to solve bandit24 on overthe wire on ubuntu virtual machine. I have already seen the solution. But i have a problem,when i try to create a directory on tmp as bandit24@bandit i get this message:
Cannot create directory "name_of_directory": file exists.
If I try with find command there is only the "." directory and with ls
I get the message:
Cannot open directory '.' : permission denied.
I also have tried with ls -l
on tmp and I get the message:
Cannot open directory 'tmp': Permission denied
What else could I do? What could be the problem?
Upvotes: -2
Views: 3397
Reputation: 1
What you need to do Try a random name. Create anything random under /tmp/. It will work.
Upvotes: 0
Reputation: 612
Try to prepend sudo
at your command. Seems you don't have permissions to read the /tmp directory, what is pretty weird.
Example that might works:
To list the /tmp contents:
sudo ls -l /tmp
To create the 'my_new_dir' inside /tmp:
sudo mkdir /tmp/my_new_dir
Upvotes: 1