Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 09-07-2011, 01:10 AM   #1
Registered: Nov 2008
Posts: 486

Rep: Reputation: 36
change file permission including subdirectories

My site files' permission is messed, so could not load any image files.

The web hostimg company said republish every files through ftp, then the permission problem should be fixed.

But about 80% of files are uploaded, unfortunatelly I could not see any image files on web page.

So, is there any program or script which change permission of program files - especially for php ( 755 to 644)?
Old 09-07-2011, 01:28 AM   #2
LQ Guru
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295

Have a look at the man page for chmod:
man chmod
which can be used recursively to descend into subdirectories. Also check ownership of the files to see that the correct user has permissions.

Kind regards,

1 members found this post helpful.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
RAR not including subdirectories. WARNING NO FILES becoolufull Linux - Newbie 1 10-19-2010 09:47 PM
RAR not including subdirectories. WARNING NO FILES becoolufull Linux - Software 2 10-19-2010 12:05 PM
Any log file for checking file permission change history in RHEL 5.1? bilalcochin Linux - Newbie 3 04-02-2010 10:57 AM
FTP transfer including subdirectories for Linux Redhat 7.2 asaba Linux - Software 2 11-04-2004 03:17 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:22 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration