Using sudo
on the RPISEC-MBE virtual machine, I have mounted and copied my files that were on a USB flash drive to an admin folder (that I have access to). Unfortunately, even with sudo
I can't seem to copy them to the /levels/lecture
directory. Why is it not letting me copy those files in, even as root?
gameadmin@warzone:~$ mkdir /media/usb ; sudo mount /dev/sdb1 /media/usb
gameadmin@warzone:~$ ls -l /media/usb/rpisec
total 32
drwxr-xr-x 2 root root 16384 Jun 7 15:41 bombs
drwxr-xr-x 2 root root 16384 Jun 7 15:41 crackme
gameadmin@warzone:~$ sudo cp -R /media/usb/rpisec/* /home/gameadmin/
gameadmin@warzone:~$ ls -l /home/gameadmin
total 8
drwxr-xr-x 2 root root 4096 Jun 7 15:42 bombs
drwxr-xr-x 2 root root 4096 Jun 7 15:42 crackme
gameadmin@warzone:~$ ls -l /levels/lecture
total 28
drwxr-xr-x 2 root root 4096 Jun 21 2015 aslr
drwxr-xr-x 2 root root 4096 Jun 21 2015 cpp
drwxr-xr-x 2 root root 4096 Jun 21 2015 format_strings
drwxr-xr-x 2 root root 4096 Jun 21 2015 heap
drwxr-xr-x 2 root root 4096 Jun 21 2015 misc
drwxr-xr-x 2 root root 4096 Jun 21 2015 rop
drwxr-xr-x 2 root root 4096 Jun 21 2015 shellcode
gameadmin@warzone:~$ sudo mv /home/gameadmin/* /levels/lecture/
mv: cannot move '/home/gameadmin/bombs' to '/levels/lecture/bombs': Permission denied
mv: cannot move '/home/gameadmin/crackme' to '/levels/lecture/crackme': Permission denied