Operating System - Linux
1822430 Members
2831 Online
109642 Solutions
New Discussion юеВ

"services" E212: Can't open file for writing

 
Cliff Lim Kok Hwee
Regular Advisor

"services" E212: Can't open file for writing

Hi Forum,

Platform= Redhat AS 4.0

I m trying to install Service Guard and it is reporting unable to write /etc/services.

I tried to vi /etc/services and while saving it is reporting following errors

"services" E212: Can't open file for writing

Thanks/Cliff
2 REPLIES 2
spex
Honored Contributor

Re: "services" E212: Can't open file for writing

Cliff,

First confirm that you have write permission for /etc/services. Then see if any processes have /etc/services open:

$ lsof /etc/services

PCS
Franklin Abud
Occasional Advisor

Re: "services" E212: Can't open file for writing

Ordinary users should be able to check /etc/services e.g. less /etc/services, more /etc/services, however, if you're editing it a more priviledged user is need like root.

You may also want to check a couple of things:

1. SELinux configuration on /etc/services

2. if /etc/services is chattr'ed.

Frank