2009/8/13 Alan Lord (News) <alansli...@gmail.com>:
> On 13/08/09 14:26, John Matthews wrote:
>> Jonathon Fernyhough wrote:
>>> 2009/8/13 John Matthews<jake...@sky.com>:
>>>
>>>> Hi, I wonder if somebody can help. I have uploaded a something to my
>>>> server, I need to change the ownership. I managed to change the folders
>>>> ownership, but not everything inside.
>>>>
>>>> the script I used was
>>>>
>>>> sudo chown www-data:www-data and filename
>>>>
>>>> I think I need to add the -R some where to make it recursive, but not
>>>> sure where to add it. Should it be after the filename, or before.
>>>>
>>>> Thank you.
>>>>
>>>> John.
>>>>
>>>
>>> $ sudo chown -R www-data:www-data datadirectory
>>>
>>> $ chown --help
>>> $ man chown
>>>
>>>
>> Um, thank you very much for the hep. I did actually try that, and it
>> didnt make any sense to me. I dont see anywhere there that is similar to
>> what you posted. I know its me, as I dont know enough, but sorry about that.
>>
>> Thank you anyway.
>>
>> John.
>>
>
> Just for reference,
>
> you do not need to type both the user and group if they are the same.
>
> You can shortcut the command to:
>
> chown -R www-data: directory
>
> or if you are already in the directory just use a "*", e.g.
>
> chown -R www-data: *
>
>
> HTH
>
> Alan
>
>

Ah! Now that /is/ a useful shortcut!

-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/

Reply via email to