Trouble editing /etc/my.cnf file

mbnorth

Registered
Feb 8, 2011
4
0
51
Hey guys--

I was able to get to /etc/my.cnf, but it's not allowing me to edit it, I right clicked on it to change the permission but still it's not letting me do it. Where else shall I go to change the permission so it can be edited?

Thanks
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
40
248
somewhere over the rainbow
cPanel Access Level
Root Administrator
Hello mbnorth,

I've moved your post into a new thread, since this is a different issue than the InnoDB questions that the other thread had.

For your question, please run the following commands and paste the output:

Code:
lsattr /etc/my.cnf
ls -lah /etc/my.cnf
Next, are you ensuring you are root user when trying to edit the file? You will not be able to edit it as a jailed shell or wheel group user who hasn't su or sudo to root.

Thanks.
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
40
248
somewhere over the rainbow
cPanel Access Level
Root Administrator
What message are you getting when trying to edit it precisely? You should be able to save any edits on that file.
 

mbnorth

Registered
Feb 8, 2011
4
0
51
After I hit the save button once I finish editing. There is a several lines message.
Here they are:

- Cannot overwrite remote file '/etc/my.cfn'.
- Permission denied.
- Error code: 3
- Error message from server: Permission denied.
- Request code: 3
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
40
248
somewhere over the rainbow
cPanel Access Level
Root Administrator
I believe you are going to need to use putty instead, since it sounds like it isn't trying to actually edit the file but overwrite the file ("Cannot overwrite remote file" error indicates you aren't editing the file by trying to replace it with another copy).

Here's the link for putty:

PuTTY Download Page

If you have questions on using it, please let us know.