I am trying to go inside /root folder with other than the root user. But it is showing me the below error.
[nadim@localhost ~]$ cd /root/
-bash: cd: /root/: Permission denied
How can I solve this error?
You got this error because your user don't have the execute power of /root folder. So you have to assign execute power to your user. You can use the below command to do so.
$ chmod o+x /root/
It will assign execute power to any user of /root folder.
hey man it says changing permissions of '/root/': operation not permitted
what to do please help me out
You got this error because your user is not the owner of /root folder. So you can't change the permission of your folder other than the root user. You need to switch to your root account and run the commands as shown below.
$ su - root
$ chmod o+w /root
I hope this will solve your error.
Check if you're providing the correct ...READ MORE
I needed to do a similar thing ...READ MORE
You can use this:
stat -c "%a %n" ...READ MORE
You can use if-else branch to check ...READ MORE
You can use chmod command in your ...READ MORE
You can use chmod command to remove ...READ MORE
Linux system has one command named chown. This ...READ MORE
In Linux, different users have different roles ...READ MORE
You got this error because your user ...READ MORE
File permission 755 means that the directory ...READ MORE
Already have an account? Sign in.