Find the answer to your Linux question:
Results 1 to 8 of 8
Hi, i want to allow a friend to log in via FTP and be able to edit files on a section i created for him his section is www.thegoshem.com/dave/ my ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Apr 2005
    Posts
    35

    FTP help


    Hi, i want to allow a friend to log in via FTP and be able to edit files on a section i created for him

    his section is www.thegoshem.com/dave/

    my question is, how do i make it so when he logs in with a user i created on the server, how can i redirect him to the /var/www/dave folder so he can edit his stuff but cant mess with mine?

    probably a stupid question but mah dad always taught me the only stupid question is an unasked one...

  2. #2
    Linux Guru
    Join Date
    Mar 2003
    Location
    Wisconsin
    Posts
    1,907
    The easiest thing to do is use web-min to restrict his acces, or you can directly edit the config files yourself. Just make sure you put user specific restrictions first. If you put everyone and then dave, it won't work, you have to put dave first, then everyone else. Are you using proFTP or something else? proFTP restricts users bases on groups. This is no problem, as dave usually is (the only one) in group dave.

    Jeremy
    Registered Linux user #346571
    "All The Dude ever wanted was his rug back" - The Dude

  3. #3
    Just Joined!
    Join Date
    Apr 2005
    Posts
    35
    we arent using proftp or web-min but i think i should try the webmin, all i basically want is for him to start out with his main folder (being /var/www/dave/) and for him to only have access to the folders Inside that folder... i dont want him to be able to go backwards at all into the /www

    i just want him to log in with IE, copy paste his files into where they need to go, and edit old ones

    Thanks for the input, ill try that webmin

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Newbie
    Join Date
    Mar 2005
    Posts
    230
    If you're using vsftpd, then I can help you with that. You don't need webmin.

  6. #5
    Just Joined!
    Join Date
    Apr 2005
    Posts
    35
    oic! hmm, sounds good

    Edit: actually wait, i just remembered i AM using proftp, sorry...

  7. #6
    Just Joined!
    Join Date
    Mar 2005
    Posts
    13
    If you're using proFTP, you should have the file: /etc/proftp.conf

    Open this file up, and add the line:

    Code:
    DefaultRoot /var/www/dave dave
    This is assuming his ftp username is "dave", of course. Don't forget to restart proFTP after making this change.

  8. #7
    Just Joined!
    Join Date
    Apr 2005
    Posts
    35
    sorry, thanks, i got it, should have made a post saying that i got it wokring, thanks again to all that helped tho!

  9. #8
    Linux Newbie schwim's Avatar
    Join Date
    May 2005
    Location
    Denial
    Posts
    154
    Quote Originally Posted by SilentRage
    If you're using vsftpd, then I can help you with that. You don't need webmin.
    SilentRage, can I direct you to this problem that I'm having w/VSFTPD? I mistakenly thought it was a Redhat related problem, but after reading here, it seems that my problem lies in a configuration flaw.

    I'm just trying to get the ftp to point to the /www dir for the webserver, right now it shows that it's in "/" and the only thing available in it is a folder called "pub".

    thanks,
    json

Posting Permissions

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