Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
10-01-2003, 12:20 PM
|
#1
|
Member
Registered: Jul 2003
Location: DC
Distribution: mandrake 9.1
Posts: 415
Rep:
|
creating pub direcotries for users?
hi, i was wondering how i would go about making a pub directory for some users? like i would for in their home account to have a directory called "pub" where they could put all the stuff they wantedt o host. i tried doing symbolic links to /var/www/html but that didn't seem to cut it, and i'm thinking i need to mess with some apache config files? could somoen eplease guide me in the right direction. thanks.
|
|
|
10-01-2003, 01:13 PM
|
#2
|
LQ Guru
Registered: Jan 2001
Posts: 24,149
|
Good documentation about setting up public_html type folders here for 2.x version: http://httpd.apache.org/docs-2.1/en/...blic_html.html
Should be the same concept for other versions you might be using as well.
|
|
|
10-01-2003, 02:23 PM
|
#3
|
Member
Registered: Jul 2003
Location: DC
Distribution: mandrake 9.1
Posts: 415
Original Poster
Rep:
|
hey thanks tricky, worked great. have another quick question. i want peopel to be able to list files in a directory without an index.html page. right now it gives you a 403 forbidden when you try and view a directory without an index.html. i can't seem to find where it talks about that in the apache site. do you know where i could find this information?
|
|
|
10-01-2003, 03:43 PM
|
#4
|
Member
Registered: Apr 2003
Location: Netherlands
Distribution: SuSE (before: Gentoo, Slackware)
Posts: 613
Rep:
|
<Directory /home/.../>
Options Indexes
</Directory>
and "Options FollowSymlinks" might be a feature you're looking for
If you use AllowOverride, you can override httpd.conf parameters in a .htaccess file that is stored in the directory.
oh, and if you want a global pub directory where anyone can write data, but not remove each others files:
mkdir /data/pub
chmod go+w /data/pub (group+others may write)
chmod +t /data/pub (only remove your own files)
or only a single group:
chgrp users /data/pub
chmod g+w /data/pub
...
Last edited by yapp; 10-01-2003 at 03:44 PM.
|
|
|
10-01-2003, 04:10 PM
|
#5
|
Member
Registered: Jul 2003
Location: DC
Distribution: mandrake 9.1
Posts: 415
Original Poster
Rep:
|
i tried the followsymlinks suggestion and restarted httpd but its still giving me the 403. any other ideas?
|
|
|
10-01-2003, 04:46 PM
|
#6
|
Member
Registered: Jul 2003
Location: Clinging to my guns and religion.
Posts: 683
Rep:
|
|
|
|
10-01-2003, 05:58 PM
|
#7
|
LQ Guru
Registered: Jan 2001
Posts: 24,149
|
Put something like this in your httpd.conf file and then restart apache:
Code:
<Directory /home/*/public_html>
AllowOverride FileInfo AuthConfig Limit
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
<Limit GET POST OPTIONS PROPFIND>
Order allow,deny
Allow from all
</Limit>
<LimitExcept GET POST OPTIONS PROPFIND>
Order deny,allow
Deny from all
</LimitExcept>
</Directory>
Or you can just edit yours to look like this instead:
Code:
<Directory /home/*/public_html>
Options Indexes
</Directory>
Last edited by trickykid; 10-01-2003 at 06:01 PM.
|
|
|
10-02-2003, 08:07 PM
|
#8
|
Member
Registered: Jul 2003
Location: DC
Distribution: mandrake 9.1
Posts: 415
Original Poster
Rep:
|
tried it tricky, still doesn't work. i'd just liek to restate exactly what i want to be able to do. i want to be able tos how the files in a directory without having an index.html or any html page directly linking them. right now i can go to files and it all works fine but it won't show the contents of the directory.
|
|
|
10-02-2003, 11:28 PM
|
#9
|
LQ Guru
Registered: Jan 2001
Posts: 24,149
|
Are you actually storing the html or files in public_html directory in the users home directory? What is the exact folder your storing these files in and I assume after making the changes to httpd.conf you are restarting the httpd server?
|
|
|
10-03-2003, 07:33 PM
|
#10
|
Member
Registered: Jul 2003
Location: DC
Distribution: mandrake 9.1
Posts: 415
Original Poster
Rep:
|
yeah, i am restarting the httpd server. i am storing these files in the public_html directory as well.
|
|
|
10-03-2003, 09:10 PM
|
#11
|
Senior Member
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120
Rep:
|
Worth a shot.....try doing it like +Indexes
|
|
|
10-04-2003, 09:26 AM
|
#12
|
Member
Registered: Jul 2003
Location: DC
Distribution: mandrake 9.1
Posts: 415
Original Poster
Rep:
|
nope. oh well.
|
|
|
All times are GMT -5. The time now is 04:13 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|