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?

share|improve this question
    
The file is not on a read-only filesystem by any chance? – ubfan1 Aug 9 '16 at 3:48
    
I think you are correct. The file system type shown with df -T is showing fuseblk . Is this the reason? – Ron Piggott Aug 9 '16 at 4:20
    
Possible duplicate of Change folder permissions and ownership – heemayl Aug 9 '16 at 4:30
1  
Possible duplicate of How do file permissions work? – Anwar Aug 9 '16 at 6:50
    
The issue is the file system. – Ron Piggott Aug 10 '16 at 11:23

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.