__/ [ fletchb@xxxxxxxxx ] on Sunday 15 April 2007 04:48 \__
> On Apr 14, 9:35 pm, Lampros Liontos <r...@xxxxxxxxxx> wrote:
>> flet...@xxxxxxxxx, you wrote the following on Saturday 14 April 2007 06:59
>> pm:
>>
>>
>>
>> > On Apr 14, 7:42 pm, p5000011 <p5000...@xxxxxxxxx> wrote:
>> >> The banal fletchb scribbled:
>>
>> >> > Any utils that can change ownship of files and directories below
>> >> > your current dir? With my distro the -R command also changes the
>> >> > ownship of the directories ABOVE the current dir causing a big mess.
>>
>> >> Please post the actual command you used. I use 'chown -R' quite often
>> >> and it never does what you say.
>>
>> > chown -R name:group *
>>
>> > Yes I know it used to not do that but it went to the top of the home
>> > dir took ownship and all others within it.
>>
>> > Again, what is good replacement..cl or gui is fine. I need to fix a
>> > bunch of home dir and all files and subs within.
>>
>> > tnx, Fletch
>>
>> Here's a way to fix that:
> Thank you!
> You just made my evening and saved me hours of work!
>
>> chown name:group `find`
>>
>> `find` will locate all files in the current directory and below, and does
>> not return the parent directory.
It would be interesting to discover why chown behaved as you say it did. My
first thought was: link in the home directory. While it's not clear if chown
will follow it (I don't know the answer), assuming you were not running as
root, you would get errors/warnings.
|
|