So i was trying to copy some files from one folder to another using the cp command, but when tried it gave me this error:
debian@OCR-1:/mnt/rootfs/boot$ ls MLO omap3-overo-storm-arbor43c.dtb uEnv.txt zImage-3.18-20150915 initrd-ubi.img u-boot.img zImage debian@OCR-1:~$ cp /mnt/rootfs/boot/MLO /var/log/MLO cp: can't create '/var/log/MLO': Permission denied so then i tried to execute the same command with sudo but it didn't work either:
debian@OCR-1:~$ sudo cp /mnt/rootfs/boot/MLO /var/log/MLO -bash: sudo: command not found After i tried to see the permissions of each folder:
debian@OCR-1:/var$ ls -l total 5 drwxr-xr-x 9 root root 4096 May 16 2018 archive drwxr-xr-x 4 root root 0 Jan 1 00:00 lib drwxrwxr-x 2 root root 0 Jan 1 00:56 lock drwxr-xr-x 11 root root 1024 Jan 1 00:00 log drwxrwxr-x 4 root root 0 Jan 1 00:01 run drwxrwxr-x 3 root root 0 Jan 1 00:00 spool drwxr-xr-x 3 root root 0 Jan 1 00:00 www debian@OCR-1:/mnt/rootfs/boot$ ls -l total 11160 -rwxr-xr-x 1 root root 59148 Jan 24 2014 MLO -rwxr-xr-x 1 root root 1220219 Jan 1 00:16 initrd-ubi.img -rwxr-xr-x 1 root root 69463 Jan 24 2014 omap3-overo-storm-arbor43c.dtb -rwxr-xr-x 1 root root 470632 Jan 24 2014 u-boot.img -rwxr-xr-x 1 root root 2038 Jan 1 00:16 uEnv.txt -rwxr-xr-x 1 root root 4798000 Jan 1 00:20 zImage -rwxr-xr-x 1 root root 4798000 Jan 24 2014 zImage-3.18-20150915 but then i don't know what to do next because i don't know how to understand the data. Can somebody help me solve this problem?
[EDIT]
So i tried to see if i had root access, but is shows me this:
debian@OCR-1:~$ id uid=1000(debian) gid=1002(debian) groups=4(adm),20(dialout),24(cdrom),25(floppy),29(audio),30(dip),44(video),46(plugdev),100(users),106(netdev),108(i2c),1000(admin),1001(spi),1002(debian) debian@OCR-1:~$ whoami debian debian@OCR-1:~$ su - su: must be suid to work properly And then i tried to install sudo, but i can't:
debian@OCR-1:~$ apt update && apt install -y sudo -bash: apt: command not found
ls -ld /var/log/MLO?