Linux - SoftwareThis 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
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.
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.
I have a situation here.
Suppose there are 35 students in my class, and I am thinking of allowing each of them to host a web page, with full control to edit or add/delete the content - something like the below:
I am running apache web server with root directory as /var/www/html. Thus for each user a subdirectory in /var/www/html can be created. Now how can we give each of the users access to his or her directory.
Would we be required to create system accounts for each of them ?
Further, allowing them to add content to their directory would perhaps require some sort of ftp attangement ?
Sir,
This is driving me crazy. It should work, but on accessing "http://localhost/~guest/index.html" I keep getting
Quote:
Forbidden
You don't have permission to access /~guest/index.html on this server.
Even after increasing the log level in httpd.conf to "debug", I get only this log entry:
Quote:
[Thu Oct 14 02:04:58 2010] [error] [client 127.0.0.1] (13)Permission denied: access to /~guest/index.html denied
Now for the configuration:
/home/guest has permissions of 711.
/home/guest/public_html has the permission of 775.
/home/guest/public_html/index.html has permissions of 664.
And in the /etc/httpd/conf/httpd.conf, I have
Quote:
<IfModule mod_userdir.c>
#
# UserDir is disabled by default since it can confirm the presence
# of a username on the system (depending on home directory
# permissions).
#
#UserDir disabled
# To enable requests to /~user/ to serve the user's public_html
# directory, remove the "UserDir disabled" line above, and uncomment
# the following line instead:
#
UserDir public_html
</IfModule>
I still don't know why I am getting "FORBIDDEN ....."
Now for the configuration:
/home/guest has permissions of 711.
/home/guest/public_html has the permission of 775.
/home/guest/public_html/index.html has permissions of 664.
Is the 711 a typeo? I tried to chmod to 711 on my Linux server and it failed.
Try making the permissions 755 for /home/guest and see if that helps.
Ok friends, but now the problem is "how to make it work with the selinux policy being at 'enforcing' instead of 'permissive'.
It was indicated in the selinux warning concerning this access (to the web page) that the context should be "httpd_user_content_t" in place of "user_home_t". Even after incorporation of this change (and rebooting) it was same - "permission denided....".
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.