81080/ls-cannot-open-directory-permission-denied
Hi Guys,
I am trying to read the files inside /root folder. But it is showing me the below error.
[myuser@localhost root]$ ls ls: cannot open directory '.': Permission denied
How can I solve this error?
Hi@akhtar,
You got this error because your user does not have permission to read files inside /root folder. But you change the permission by using the below-given command.
$ chmod o+r /root/
I hope this will solve your error.
You have to run this command from your root account. Otherwise, you will get permission denied error.
Run the below command.
$ sudo chmod o+r /root/
Hey @Vinod, Check if you're providing the correct ...READ MORE
The help command is limited and it ...READ MORE
You can use this: stat -c "%a %n" ...READ MORE
Hey @Dinesh, this isn't an error, its ...READ MORE
Hi@akhtar, You can use chmod command in your ...READ MORE
Hi@akhtar, You can use chmod command to remove ...READ MORE
Hi@akhtar, Linux system has one command named chown. This ...READ MORE
Hi@akhtar, In Linux, different users have different roles ...READ MORE
Hi@akhtar, You got this error because your user ...READ MORE
Hi, File permission 755 means that the directory ...READ MORE
OR
Already have an account? Sign in.