LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-29-2004, 02:03 AM   #1
evensen
Member
 
Registered: Apr 2004
Location: Norway/Hamar
Distribution: Debian Sarge :)
Posts: 116

Rep: Reputation: 15
make a folder readable


hi. How do i make a folder with other folders and files readable for all users ? Its so boring givin`read permission on every file and folder. Need a command so i give the entire folder with content read permissions
 
Old 12-29-2004, 02:09 AM   #2
zoiks
LQ Newbie
 
Registered: Dec 2004
Distribution: SuSE 9.1 Pro on Intel 2.4GHz (Dell Optiplex GX260)
Posts: 20

Rep: Reputation: 0
Sorry if I misunderstand, but it sounds like you want to make a folder, and everything in it, including subfolders, etc., readable to all users. You can do that with the command

chmod -R a+r /folder/name/here
 
Old 12-29-2004, 02:12 AM   #3
evensen
Member
 
Registered: Apr 2004
Location: Norway/Hamar
Distribution: Debian Sarge :)
Posts: 116

Original Poster
Rep: Reputation: 15
yes, that is what i mean.
Thank You
 
Old 12-29-2004, 02:15 AM   #4
evensen
Member
 
Registered: Apr 2004
Location: Norway/Hamar
Distribution: Debian Sarge :)
Posts: 116

Original Poster
Rep: Reputation: 15
but i still get 403 Forbidden when trying to access one of the sub folders using my web browser. The files i want to make accessable is within my public_html folder. Any other sugestions ?
 
Old 12-29-2004, 05:59 AM   #5
PBSchmidt
Member
 
Registered: Aug 2004
Location: Aachen, Germany
Distribution: Debian Sarge
Posts: 129

Rep: Reputation: 15
evensen,

publishing files with apache means that
  • they have to be owned by the default apache user (on my boxes, www-data) - chown can do that
  • easiest is to put the data into the apache publishing directory tree, on my boxes it starts with /var/www/
  • you can also symlink (ln -s) the files into /var/www

Hope this helps,

Peter
 
Old 12-29-2004, 06:18 AM   #6
phil.d.g
Senior Member
 
Registered: Oct 2004
Posts: 1,272

Rep: Reputation: 153Reputation: 153
Quote:
Originally posted by evensen
but i still get 403 Forbidden when trying to access one of the sub folders using my web browser. The files i want to make accessable is within my public_html folder. Any other sugestions ?
The parent folders to the data also need to be readable by apache, all folders need to have execute permissions for apache and all files need read permission, so for folders you would do a chmod 755 /folder and all files you would do a chmod 644 /folder/file
 
Old 12-29-2004, 06:37 AM   #7
beanerjo
Member
 
Registered: Aug 2004
Location: New Zealand
Distribution: Slackware
Posts: 40

Rep: Reputation: 15
As phil.d.g pointed out, the directories (folders) need execute permission too: In the top directory

find . -type d | while read f; do chmod 755 $f; done

(I don't know how to use '-exec' with 'find'.) Check other directories too just for fun. You will find that any directory that has no execute premission can't be read.
 
  


Reply


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
how do i make fat32 partition readable? jaan kaer Linux - Newbie 15 08-01-2006 10:59 AM
How can I make the fonts in WINE more readable? DaneM Linux - General 10 12-11-2005 06:30 AM
How to make a folder FireInTheDark Linux - Newbie 2 11-28-2004 04:55 AM
Make a shell script executable but not readable davholla Linux - Security 5 03-24-2004 03:44 AM
Make an archive readable aizkorri Programming 4 03-07-2002 11:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:07 AM.

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