PDA

View Full Version : anyone know how to chmod -R ?



killick
2007-09-01, 15:44
Hi folks.

I just did a fresh install of Ubuntu 7.04. I copies all my music onto my second internal HD, /media/disk in directory audiofiles. I've been trying without success to change the permissions on that directory.

If you had a directory /media/disk/audiofiles/ that contained artist/album/track.ogg and playlist files, how would you change the permissions to let slimserver scan and play the files?

sudo chmod --recursive 777 /media/disk/ isn't doing it. Any ideas where I'm going wrong?

Thanks,

-- Killick

Mark Lanctot
2007-09-01, 16:14
How is the drive formatted?

What is the error message?

killick
2007-09-01, 16:34
Sorry folks. I've found my mistake. chmod -R 777 /media/disk/audiophiles does work.

-- Killick

Timothy Stockman
2008-02-03, 22:43
"chmod -R a+rX"

Robin Bowes
2008-02-04, 05:58
killick wrote:
> Sorry folks. I've found my mistake. chmod -R 777
> /media/disk/audiophiles does work.

You really don't need to do that - you'd be better off getting to the
bottom of your permissions issues and sorting out properly.

Failing that, you don't need 777 permissions on everything. "read" is
all you need:

chmod -R a+r /media/disk/audiophiles


R.

Linzer
2008-02-05, 11:31
killick wrote:
> Sorry folks. I've found my mistake. chmod -R 777
> /media/disk/audiophiles does work.

You really don't need to do that - you'd be better off getting to the
bottom of your permissions issues and sorting out properly.

Failing that, you don't need 777 permissions on everything. "read" is
all you need:

chmod -R a+r /media/disk/audiophiles


R.

Agree on getting to the bottom of your permissions issue BUT you will probably need "write" to update tags outside of Slimserver.

Robin Bowes
2008-02-05, 12:46
Linzer wrote:
> Robin Bowes;265437 Wrote:
>> killick wrote:
>>> Sorry folks. I've found my mistake. chmod -R 777
>>> /media/disk/audiophiles does work.
>> You really don't need to do that - you'd be better off getting to
>> the bottom of your permissions issues and sorting out properly.
>>
>> Failing that, you don't need 777 permissions on everything. "read"
>> is all you need:
>>
>> chmod -R a+r /media/disk/audiophiles
>>
>>
>> R.
>
> Agree on getting to the bottom of your permissions issue BUT you will
> probably need "write" to update tags outside of Slimserver.


The OP said:

> If you had a directory /media/disk/audiofiles/ that contained
> artist/album/track.ogg and playlist files, how would you change the
> permissions to let slimserver scan and play the files?

slimserver only needs read permissions.

R.

snarlydwarf
2008-02-05, 20:28
slimserver only needs read permissions.


But it needs X permissions on directories.

So the ideal way is to do it with two commands:



find /media/disk/audiophiles -type d -exec chmod a+rx {} \;
find /media/disk/audiophiles -type f -exec chmod a+r {} \;