chmod changing permissions of root Operation not permitted

0 votes

Hi Guys,

I am trying to change the permissions of /root folder. But it is showing me the below error.

[nadim@localhost ~]$ chmod o+w /root/
chmod: changing permissions of '/root/': Operation not permitted

How can I solve this error?

Aug 13, 2020 in Linux Administration by akhtar
• 38,180 points
5,449 views

1 answer to this question.

0 votes

Hi@akhtar,

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.

answered Aug 13, 2020 by MD
• 95,140 points
error: su: Authentication failure

Hi@Reddy,

According to your error, you are giving the wrong password. So check the password properly. Also, try with Sudo power, as shown below.

$ sudo su - root

Related Questions In Linux Administration

0 votes
1 answer

How to change permissions of folder and files in folder?

The chmod command is used to set/change the permissions ...READ MORE

answered Jan 31, 2019 in Linux Administration by Omkar
• 69,110 points
245 views
0 votes
1 answer

How to check permissions of a folder in the Linux system?

Hi@akhtar, You can use ls command to check ...READ MORE

answered Aug 13, 2020 in Linux Administration by MD
• 95,140 points
749 views
0 votes
1 answer

How to display a simple list of all disks, like this /dev/sda /dev/sdb ?

You can list all the disk in ...READ MORE

answered Jul 12, 2018 in Linux Administration by DearestOne
• 200 points
2,385 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

What is the difference between ctrl z and ctrl c in command line?

Hi@akhtar, Generally, these two commands are used to ...READ MORE

answered Feb 24, 2020 in Linux Administration by MD
• 95,140 points
6,887 views
0 votes
1 answer

How to create one new partition in my hard disk in Linux?

Hi@akhtar, To create new partition you can follow ...READ MORE

answered Apr 7, 2020 in Linux Administration by MD
• 95,140 points
131 views
0 votes
1 answer

not able to run netstat-tnlp in Linux.

Hi@akhtar, In Linux system netstat-tnlp command comes from ...READ MORE

answered Apr 16, 2020 in Linux Administration by MD
• 95,140 points
165 views
0 votes
1 answer

group apache does not exist - using root.

Hi@akhtar, When we install apache wevserver in our ...READ MORE

answered Apr 14, 2020 in Linux Administration by MD
• 95,140 points
702 views
0 votes
1 answer

How to check permissions of a file in the Linux system?

Hi@akhtar, If you prefer using the command line, ...READ MORE

answered Aug 13, 2020 in Linux Administration by MD
• 95,140 points
280 views