0

I'm working with a embedded linux machine that was made with Buildroot. The default user is root and I would like to edit /etc/systemd/journald.conf to set the SystemMaxUse to prevent the log files from taking all the limited space.

When I try to edit this file as root using vi journald.conf it says [ReadOnly] in the status bar. The permissions for user are rw yet I can't write to this file as root. I tried :set noreadonly in vi but it still says [ReadOnly]. I tried stopping the journald service then editing the file but it was still read only.

Why I can't edit this file even though I'm the root user and the root user should have rw permissions to this file? (btw, this system doesn't have sudo)

0 Answers0