Koozali.org: home of the SME Server

Legacy Forums => General Discussion (Legacy) => Topic started by: Bradster on March 08, 2004, 04:12:33 AM

Title: User Web Pages
Post by: Bradster on March 08, 2004, 04:12:33 AM
Warning Newbie Question.

How do I make user pages available with web browser?
When I navigate to http://www.mydomain.com/~username I get "You are not autorized to view this page" error.

Any ideas how to make this work?

Thanks in advance!
Brad
Title: User Web Pages
Post by: Anonymous on March 08, 2004, 04:50:32 AM
Perhaps

https://mydomain/user-manager
Title: User Web Pages
Post by: Bradster on March 08, 2004, 06:35:26 AM
I haven't seen /user-manager before and it doesn't seem to work either.

Here's what I'm trying to do...
I have a small ISP, my users would like the ability to have personal web sites.  I would like to find a contrib or howto that shows how to enable their home directory as default document root. This way I can enable ftp access and the users can copy their website to their home directory.

With most distributions, you can access personal web pages by navigating to: http://www.yourdomain.com/~username - when I try to access the personal web page I get the following error...
You are not authorized to view this page
HTTP Error 403 - Forbidden

Why don't I get this error?
The page cannot be displayed


Has anybody tried this?
Title: User Web Pages
Post by: mthomas on March 08, 2004, 11:02:03 AM
there is a contrib around here some where that will do what you want. it's called "user web space", i think. i looked but couldn't find it here on contribs.org. it also works on 6.0. see:
http://theswamp.org/~mark/
Title: User Web Pages
Post by: gasparraposo on March 08, 2004, 11:36:29 AM
You have a very good point. i tried to see what i am getting when i try to access the personal home directory and i get the same

" you are not authorized to view this page"

Well i would like to know if there is a way around this?
Title: User webspace / ftp access
Post by: cc_skavenger on March 08, 2004, 06:08:32 PM
You need two things, the user space contrib and chroot for ftp.  Chroot for ftp confines a user to a specified ftp directory.  The user space contrib allows you to create the user space you specified, http://www.mydowmain.com/~user_name.  You can get the userspace contrib here:

http://ccskavenger.lc-usa.net/SME(E-SMITH)/contribs/userwebspace/

And the chroot for ftp here:

http://ccskavenger.lc-usa.net/SME(E-SMITH)/contribs/5.6/chrootforftp/

The chroot contrib works in 6.0, just ignore the errors.  Don't forget to setup quotas for your users, or they will use up your hard drive.  Also, since you are an ISP, make sure that you have some kind of contract that exonerates you from any legal matters that may arise from copyrighted material being hosted on your server (ie. mp3s, movies, and the like).  

As stated by everyone else, I am not responsible for what you do with your server, test all software on another machine before you install on your production server.  That being said, have fun and good luck.
Title: User Web Pages
Post by: RonM on March 08, 2004, 09:38:43 PM
Thanks.

This has come up before, so I added the infor to the Howto classification here http://no.longer.valid/phpwiki/index.php/Users
Title: Howto
Post by: cc_skavenger on March 08, 2004, 11:51:30 PM
Good Idea RonM
Title: User Web Space
Post by: Bradster on March 09, 2004, 05:54:54 AM
Seems to be working correctly for the most part except the user page http://www.domain.com/~username can only be displayed from within the local network. I get a page cannot be displayed from other networks.

https://www.domain.com/~username will load the page correctly.

Is there a work-around for this?

My configuration:
SME 6.0
Single network card (server-only)
Use router port forwarding to private IP address
Title: User Web Space
Post by: cc_skavenger on March 09, 2004, 04:43:30 PM
Bradster,

Have you tried putting the wan IP address of the router into the local access panel in the server manager?  

just a thought
Title: User Web Pages
Post by: Bradster on March 09, 2004, 10:46:52 PM
Doesn't seem to work.

Have any other Ideas?
Are there any conf files I could look at?
Title: User Web Pages
Post by: Anonymous on March 10, 2004, 10:37:35 AM
hey guys can you please check the links again to download the rpms?

Thanks.
Title: links
Post by: cc_skavenger on March 11, 2004, 05:24:40 AM
sorry, my server decided it was time to take a vacation and I am in the process of restoring the data back onto it :(

It should be back up on 3-11-04, will be working on it at work.
Title: Links Working Again
Post by: cc_skavenger on March 11, 2004, 06:16:59 AM
I have the links working again, sorry for the trouble.
Title: Chroot
Post by: Turtle on March 12, 2004, 11:37:24 PM
Is Chroot (http://www.tech-geeks.org/contrib/bbutts/chroot/dungog-proftpd-chroot-0.1-1.noarch.rpm) running on SME v5.1?