Go Back   GIDForums > Computer Forums > Computer Software Forum - Linux
User Name
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
Thread Tools Search this Thread Rate Thread
Old 19-Mar-2012, 02:53
admin's Avatar
admin admin is offline
Join Date: Sep 2002
Posts: 1,052
admin will become famous soon enough

Change File or Folder Permissions Recursively

The following Linux commands are useful when you want to change or modify file or folder permissions recursively, quickly and easily.

In the examples below, we assume the top level directory is /home/jdesilva/domains/ and we want to modify every file and folder (permission) below that.

Change file permissions recursively:
find /home/jdesilva/domains/ ! -type d -exec chmod 640 {} \;

Modify (only) directory or folder permissions recursively:
find /home/jdesilva/domains/ -type d -exec chmod 750 {} \;
Custom BB codes you can use here:
[HTML] | [C++] | [CSS] | [JAVA] | [PY] | [VB]
Old 18-Aug-2017, 06:55
persysweb's Avatar
persysweb persysweb is offline
Junior Member
Join Date: Aug 2017
Location: India
Posts: 51
persysweb is on a distinguished road

Re: Change File or Folder Permissions Recursively

You can also fire below command -

ind /home/user -type d -print0 | xargs -0 chmod 0775
find /home/user -type f -print0 | xargs -0 chmod 0664


find . -type d -exec chmod 775 {} \;
find . -type f -exec chmod 644 {} \;

Please note, you will need to fire these commands under public_html directory.

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache2 config issues monev Apache Web Server Forum 2 28-Jun-2004 06:19
CD burner wont burn!! robertli55 Computer Hardware Forum 1 18-Jun-2004 10:53
Yet another CD burner problem: Lite-On LSC-24082K Erwin Computer Hardware Forum 1 22-May-2004 11:28
Can't view pages from another machine on the Intranet aevans Apache Web Server Forum 9 14-May-2004 02:26
CD Buring Failed skanth2000 Computer Hardware Forum 1 15-Nov-2003 04:52

Network Sites: GIDNetwork · GIDApp · GIDBlog · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 02:39.

vBulletin, Copyright © 2000 - 2018, Jelsoft Enterprises Ltd.