Jeegar Patel
Jeegar Patel

Reputation: 27200

Why chmod command is not going to work here?

i am accessing another ununtu linux system by ssh

now when i am going to change the permission of any file in that system then it shows

chmod: changing permissions of `Android.mk': Read-only file system
chmod: changing permissions of `system_init.cpp': Read-only file system

i have tried with sudo and login as root but still not getting why i am not able to change the permission of that files.?

Upvotes: -1

Views: 5214

Answers (1)

Mithrandir
Mithrandir

Reputation: 25337

Well the error message states the reason pretty clearly. Have you checked how the filesystem in question is mounted? Is the ro mount option set by any chance? If you have root access you can remount the filesystem without the read-only option, if that is a sensible thing to do in this case. It must have a reason why the fileystem was mounted read-only in the first place.

Upvotes: 1

Related Questions