Avoid Linux Files From Getting Written

To change permission in Linux, just to read-only a file you can use

“chmod a-w filename

Once this is command executed the permission on the file will change to “-r——–”

Remember this is a administration command and you will need to have root access to run this.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s