Confusing access permission.../$ can read ls .../# cannot ???
by Greymug from LinuxQuestions.org on (#55HW2)
Distro: Linux Mint 19-3 Tricia -
The following is very confusing:
---------------------------------------------------------------------
root@HPLap:/home/garyh/virtual-drives/1# ls
ls: cannot open directory '.': Permission denied
root@HPLap:/home/garyh/virtual-drives/1# exit
exit
garyh@HPLap:~/virtual-drives/1$ ls
boot casper dists EFI isolinux MD5SUMS pool preseed README.diskdefines
garyh@HPLap:~/virtual-drives/1$ sudo su
root@HPLap:/home/garyh/virtual-drives/1# cd
root@HPLap:~# chmod 777 /home/garyh/virtual-drives/1
chmod: cannot access '/home/garyh/virtual-drives/1': Permission denied
root@HPLap:~#
---------------------------------------------------------------------
These replies totally confused me. I am trying to remove the virtual drive '1'. I;d like to know how to remove/prevent virtual drives from running at all.


The following is very confusing:
---------------------------------------------------------------------
root@HPLap:/home/garyh/virtual-drives/1# ls
ls: cannot open directory '.': Permission denied
root@HPLap:/home/garyh/virtual-drives/1# exit
exit
garyh@HPLap:~/virtual-drives/1$ ls
boot casper dists EFI isolinux MD5SUMS pool preseed README.diskdefines
garyh@HPLap:~/virtual-drives/1$ sudo su
root@HPLap:/home/garyh/virtual-drives/1# cd
root@HPLap:~# chmod 777 /home/garyh/virtual-drives/1
chmod: cannot access '/home/garyh/virtual-drives/1': Permission denied
root@HPLap:~#
---------------------------------------------------------------------
These replies totally confused me. I am trying to remove the virtual drive '1'. I;d like to know how to remove/prevent virtual drives from running at all.