Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Webserver Accounts

  1. #1
    Junior Member
    Join Date
    May 2002
    Posts
    89

    Webserver Accounts

    Hi
    I want to setup a fully functional file/web server for family and friends.
    This is how i woould like it to setup:
    • FTP only allows user to connect to their Directory eg. "sam" sees his home dir as / whereas to root is is veiwed as /home/sam
    • the url www.myhome.com is roots homepage (/var/www/) and the site www.myhome.com/sam is sams homepage which is located in sams home directory "/home/sam"
    • When sam telnets to my computer he can only view his home dir.
    • Sams cgi-bin is in /var/www/cgi-bin but sam cant see roots or suzies cgi-scripts and suzie cant see roots or sams cgi-scripts but root can see roots, sams and suzies cgi-scripts.

    Basically, Everyuser gets access to 90% of my systems resources but never conflicts with each others settings.
    Thanks
    p.s. Im using red-hat 7.2/3.

  2. #2
    Moderator
    Good Guru
    Compunuts's Avatar
    Join Date
    May 2001
    Location
    California
    Posts
    3,935

    Re:Webserver Accounts

    What you want is Apache in Chrooted envoronment. Head to Apache.org and check out how to do chrooting ....

  3. #3

    Re:Webserver Accounts

    I made the user's cgi-bin in their home directory and use the default public_html for the web documents.

    This is how I have my users set up:

    Code:
    /home/$USER/cgi-bin
    /home/$USER/public_html
    I don't know if this is the standard but this is how e-smith does it.

    BTW, if you're looking for a quick and easy setup, visit www.e-smith.org. It sets up a decent ftp, web, e-mail, windows/mac file/printer share, etc., etc. server. I've been using it for the past 1 1/2 - 2 years.

  4. #4

    Re:Webserver Accounts

    The usermod module lets you do things like: http://yoururl/~username/

    and that points to /home/sam/public_html/

    I do believe you can do the same thing by setting up script-alias directories in /home/username/cgi-bin/ for each user, not sure on that one.

    This is pretty easy to setup, apache.org has documentation on it.

    As far as telnet is conserned, getting them to _only_ see their home directory is kinda difficult, but via ftp it's quite easy, using vsftpd or proftpd, or even wu-ftpd (not recommended) to "chroot" the users into their home directory.

  5. #5
    Junior Member
    Join Date
    May 2002
    Posts
    89

    Re:Webserver Accounts

    eh?
    chroot? explain its useage/purpsoe/effects/everything
    and what the hell is e-smith? do I get to use my own ftpd or its? or is esmith a distro?
    how do I get rid of pure-ftpd to get proftpd?
    man, linux is confusing, i like it


  6. #6
    Junior Member
    Join Date
    May 2002
    Posts
    89

    Re:Webserver Accounts

    chroot isnt on apache.org >

  7. #7

    Re:Webserver Accounts

    Chroot is making a fake root. So the / directory is actually somethign else, but the user isn't allowed to leave that directory for a higher directory. Proftpd, Vsftpd, and even wu-ftpd can do a fake chroot for the FTP users. They login, and go to their home directory, say /home/username

    In the ftp client, /home/username will appear as / and they will not be able to get out of their user directory, only deeper into it.

    e-smith is a Linux distro, based off of Red Hat 6.x, and it is quite stale.

    What distro are you using? This will help us figure out how to remove the one package, and install another.

  8. #8
    Junior Member
    Join Date
    May 2002
    Posts
    89

    Re:Webserver Accounts

    red hat

  9. #9

    Re:Webserver Accounts

    rpm -e pure-ftpd ;

    and then rpm -ivh proftpd.rpm (;

  10. #10
    Junior Member
    Join Date
    May 2002
    Posts
    89

    Re:Webserver Accounts

    *shudder* rpm's
    i used the slower ./configure method

Similar Threads

  1. Dorman accounts
    By sabre in forum Linux - Software, Applications & Programming
    Replies: 5
    Last Post: 10-03-2006, 07:43 PM
  2. user accounts
    By trace in forum Windows - General Topics
    Replies: 2
    Last Post: 07-06-2005, 08:47 PM
  3. NO ACCESS TO USER ACCOUNTS
    By anthrvictim in forum Windows - General Topics
    Replies: 1
    Last Post: 05-13-2005, 12:34 PM
  4. outlook accounts troubleshoot help please
    By kaotik_good in forum Windows - General Topics
    Replies: 1
    Last Post: 02-15-2005, 09:46 PM
  5. Backing up user accounts
    By tolstoy in forum Linux - General Topics
    Replies: 7
    Last Post: 11-28-2001, 08:46 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •