Under what circumstances can I not make a file world readble on linux

0

I'm trying to set some files world readable

sudo chmod 664 *.ogg

however the files still have permission -rw-rw---- after the operation.

These are phone calls recorded from Asterisk - if that helps at all.

Alister

Posted 2014-03-14T09:05:35.647

Reputation: 647

Not sure what file structure you are using, so have a look here and see if this helps: https://www.linuxquestions.org/questions/linux-newbie-8/chmod-won%27t-change-the-file-permissions-259218/

– Matthew Williams – 2014-03-14T09:30:39.280

Doing chmod -R 664 (recursively set the permissions) on the folder then chmod 775 (set the permissions back on the folder only) on the folder seems to have solved this, although it is not the best solution – Alister – 2014-03-14T09:47:29.180

That is odd. Must have been a problem with the * extension. I was going to suggest a -R, but assumed you had more than just the .ogg files in your folder. Never mind you fixed it now. – Matthew Williams – 2014-03-14T10:00:43.157

Answers

1

You are using the wrong command. chown is used to change the owner of a file. You are looking for chmod:

sudo chmod 664 *.ogg

As I am sure you are aware the above command will give you the following permission structure:

-rw-rw-r--

Matthew Williams

Posted 2014-03-14T09:05:35.647

Reputation: 4 149

oops, you are correct - I've updated my question – Alister – 2014-03-14T09:24:01.897