Welcome to the most active Linux Forum on the web.
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 11-08-2006, 09:03 AM   #1
Registered: Feb 2006
Distribution: RHEL4
Posts: 80

Rep: Reputation: 15
How to set folder permissions to allow 777 for all files

I have an ftp folder in which i ftp files into. I want to be able to open these files from a browser (.pdf, jpg, etc..) without setting individual permissions. How can I set the folder up to allow permissions of 777 to be on all files in it?
Old 11-08-2006, 09:07 AM   #2
Registered: May 2004
Location: Tampa, Fl
Distribution: Arch
Posts: 648

Rep: Reputation: 30
chmod -R 777 /whatever/director/* should work
Old 11-08-2006, 09:13 AM   #3
Registered: Feb 2006
Distribution: RHEL4
Posts: 80

Original Poster
Rep: Reputation: 15
and it did. thanks!
Old 11-08-2006, 09:26 AM   #4
Registered: Jul 2003
Posts: 256

Rep: Reputation: 32
A more generic way to do it is:

find /whatever/folder/ -type f -exec chmod 666 {} \;

This is good to know because you can use it anytime you have a tree of files you want to work on, even if the application doesn't have a "-R" type of switch like chmod does.


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
want to avoid 777 permission, but want to write on folder suruchiparimu Linux - Newbie 10 02-09-2006 03:25 AM
Want to write to folder, but, don't want to give 777 rights suruchiparimu Linux - Security 2 02-08-2006 10:11 AM
Default permissions of files and folder maginotjr Slackware 2 07-29-2005 03:52 AM
default files and folder acl permissions Baltasar Fedora 4 08-30-2004 12:50 PM
changeing permissions for a folder + subfolders and files ? YBA^[x] Slackware 7 08-06-2004 04:07 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:57 PM.

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
Open Source Consulting | Domain Registration