chmod 200 FILENAME

chmod -w------- FILENAME

Who owns the file has the ability to Write to it only, and nobody else can do anything with it.

You can do this by using either “chmod 200 FILENAME” or “chmod -w------- FILENAME“.

MeaningNumericSymbolic
The Owner (user) has Write permissions2-w-
The Group has no permissions0---
The Public has no permissions0---
Owner
Group
Public