0

I want to change this file to be read only ( 444 ). At present it is:

-rwxrwxrwx 1 root root 10313267 Aug  8 14:28 ron-video-intro-24fps-november-05-2015.mp4

I've tried the commands unsuccessfully:

sudo chmod 444 ron-video-intro-24fps-november-05-2015.mp4
sudo chmod -X ron-video-intro-24fps-november-05-2015.mp4

What is the corret command?

1 Answers1

3

The first command is the correct one: sudo chmod 444 ron-video-intro-24fps-november-05-2015.mp4

The second command will only remove the executable bit and the file will end up with permission 666.

heemayl
  • 91,753
sмurf
  • 4,680