Tag Archives: ‘readonly’ option is set add error

[Solved] Linux: ‘readonly’ option is set add-command line save error

In order to facilitate the command line save error when configuring a static IP for the Linux virtual machine:’readonly’ option is set add (add! To override), but try to enter: wq! Still unable to save the updated configuration.

Reason for error: The user does not have permission to write to the file

Solution: switch to root user

 

Enter the command: sudo -i

Enter the password of the current management account to get root privileges, and enter exit when not needed to return to the low-privilege management account