you’d better ssh
to your server and then go to that directory and edit said file… be carfeul of the owner of the modified file. - how excacty you’d do that - that’s a linux-question. aunt g. does hold some answers for you in this case.
again you would get wise if you’d only search the forum for answers, yourself…
and whatever you’re going to do: take backups… it might be of help