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.
- 04-12-2005 #1Just 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...
- 04-12-2005 #2Linux 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.
JeremyRegistered Linux user #346571
"All The Dude ever wanted was his rug back" - The Dude
- 04-13-2005 #3Just 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
- 04-13-2005 #4Linux Newbie
- Join Date
- Mar 2005
- Posts
- 230
If you're using vsftpd, then I can help you with that. You don't need webmin.
- 04-13-2005 #5Just Joined!
- Join Date
- Apr 2005
- Posts
- 35
oic! hmm, sounds good
Edit: actually wait, i just remembered i AM using proftp, sorry...
- 04-13-2005 #6Just 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:
This is assuming his ftp username is "dave", of course. Don't forget to restart proFTP after making this change.Code:DefaultRoot /var/www/dave dave
- 04-13-2005 #7Just 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!
- 05-30-2005 #8SilentRage, 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.
Originally Posted by SilentRage
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


Reply With Quote
