[CoLoCo] permission question

Paul Hummer paul at eventuallyanyway.com
Sat Mar 29 18:50:58 GMT 2008


Collins Richey wrote:
> On Sat, Mar 29, 2008 at 12:05 PM, Jim Hutchinson <jim at ubuntu-rocks.org> wrote:
>   
>
>   
>> Okay, I'm getting it about right. However, all the directories are set to
>> drw-r--r-- (i.e. no x). Is there a way to change the dirs to 755 or 655 or
>> whatever is right without doing it one by one? Using -R will affect files
>> too I suppose.
>>
>>     
>
> Now would be a fine time to learn about the intricacies of using find
> to search out directories only and piping the found directory names to
> a command that applies the changes. Warning, you'll want to do a dry
> run that only echos the commands first!
>
> A little googling should bring up thousands of examples for this very
> common tool set.
>
>
>   
A quick fix is:

cd $HOME
find . -type d | xargs chmod 0755
find . -type f | xargs chmod 0644

This will give you a general file reset.  However, things like .dmrc and 
.xsession need special file settings made.  You'll have to dig through 
those and set them all manually.

Paul




More information about the Ubuntu-us-co mailing list