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 14, 2020 in Linux Administration by akhtar
• 38,260 points
140,653 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 14, 2020 by MD
• 95,460 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 Feb 1, 2019 in Linux Administration by Omkar
• 69,220 points
1,988 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,460 points
9,754 views
0 votes
0 answers

changing the owner of folder in linux

I have a folder in my subdomain ...READ MORE

Apr 25, 2022 in Linux Administration by Edureka
• 13,690 points
599 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
5,452 views
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,460 points
47,473 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,460 points
1,180 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,460 points
1,087 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,460 points
4,111 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,460 points
1,744 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP