PDA

View Full Version : 'readonly' option is set


thewebhostingdi
07-15-09, 08:46 AM
I am using CentOS 5 and unable to edit file /etc/fstab. I am receiving following error:

E45: 'readonly' option is set (add ! to override)

Can anyone tell me what is the reason behind this?

shakir
07-21-09, 06:29 AM
I thing this is due to some security issue....I thing u have to contact the technical support for it

raided
07-24-09, 10:32 AM
Does this apply to all files you try to edit on the system?

xbhosting
05-04-10, 01:17 PM
Is this a dedicated server? do you have root access? becouse if u do you will be able to fix it

~ServerPoint~
05-05-10, 01:45 AM
Is this a dedicated server? do you have root access? becouse if u do you will be able to fix it


That could be dedicated server or VPS.

SagoAdamH
10-24-10, 12:05 AM
Usually per default only root can write to /etc/fstab. If you're logged in as a user other than root, you won't be able to modify the file until you either su or change its permissions. Of course, this is assuming the write bit for user (owner) is set - if it isn't then someone may have changed the default permissions at one point and it will need to be turned back on before your changes will commit.

As mentioned above, a lot of managed hosting/VPS providers restrict modification of important system files to prevent any possible mishaps. If you're in this situation, you'll need to contact someone with appropriate permissions (usually the provider) to make the change for you.

~ServerPoint~
12-09-10, 12:10 AM
I thing this is due to some security issue....I thing u have to contact the technical support for it

Yeah, it will be the best solution.. you will see how fast they will respond and how knowledgeable they are.

LevelHosting
12-16-10, 05:19 PM
To me it sounds like you forgot to type "sudo" before the edit command. Edit the file like this:

sudo vi /etc/fstab

edit the file with the revisions you wanted to enter. Once finished press the "Esc" key on your keyboard and type:

wq!

It should work unless your user account is not setup in the wheel group in order to have the same rights as the root user. If your account is not setup in this group to work with sudo you will need to login as root and add your user account to the wheel group or you may edit it after logging in as root. If you don't have root access to your server you will need to have the provider edit this file for you assuming it is a dedicated box you own.

Cheers,

AJKpeter
01-17-11, 03:58 AM
you should use root access to do that