How to save ftp.plist file when using sudo nano

ftpsudo

I edited ftp.plist by using sudo nano in terminal, and I saved by control + O but after reboot, it changed again. How can I save the file?

Best Answer

In Finder navigate to /System/Library/LaunchDaemons/ftp.plist

  1. File > Get info Command + i
  2. Tick the "Locked" box

The file should not change now when you reboot.

Locked