LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   FTP Config (https://www.linuxquestions.org/questions/linux-software-2/ftp-config-392184/)

jajtiii 12-12-2005 10:56 PM

FTP Config
 
I have just set up my first linux box and now want to configure an FTP server to allow me to connect as my user account and subsequently upload files to /var/www/html. Everything is working fine, execpt for where i can upload.

I have tried vsftp and, now, pure-ftp. I simply want the user to be able to upload files to the wwwroot directory.

Right now, I can only upload files to my user home directory.

Permissions are set to 775, with my user group as the owner in the /var/www/html dir.

I am about 2 days odl to linux and am now guessing that I must be missing someting.

Again, FTP connections work fine. I can even upload to my home dir. But, now I want to upload to other places. How do I do that?

thx

reddazz 12-13-2005 07:21 AM

There maybe better solutions out there, but I have a suggestion that may work for you. Why not create a user whos home dir is /var/www/html and has write permissions to that directory. Vsftpd will automatically chroot that user to /var/www/html when they login (if you have allowed chrooting in the config file).

jajtiii 12-13-2005 08:26 AM

That sounds promising and I will try that.

But, I now want to take it one step further. This linux box is simply a dev box sitting in an isolated environment. After I work all day, I am in no mood to sit in front of some box and mess around with it.

Instead, I would simply like to lay on my couch with my laptop (w/wireless connection to my home network) and monkey around with the linux server from there.

I discovered Putty, which is assists me in doing some of the things I am doing. But, I would like to be able to use FTP do download/upload config files (those in /etc) and other files.

On our Solaris boxes at work, all users have a Home Directory and many admins can FTP to and from nearly the entire file structure. This is what I am trying to replicate on my home box.

Any help would be appreciated.

jt


All times are GMT -5. The time now is 08:08 AM.