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?

Ron Piggott
  • 678
  • 4
  • 11
  • 26

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
  • 90,425
  • 20
  • 200
  • 267
sмurf
  • 4,660
  • 1
  • 23
  • 29