Page 1 of 1

problem of uploading webpage with ftp

Posted: Fri Jul 03, 2009 6:47 pm
by fahadul
i install in a Redhat enterprise 3 es webserver(Apache)and i want to give access with ftp to a user for uploading,deleting privilage to /var/www/html/ directory only .plz tell me the prosedure.

Re: problem of uploading webpage with ftp

Posted: Sun Jul 05, 2009 11:42 am
by LinuxFreaK
Dear fahadul,
Salam,

fahadul wrote:i install in a Redhat enterprise 3 es webserver(Apache)and i want to give access with ftp to a user for uploading,deleting privilage to /var/www/html/ directory only .plz tell me the prosedure.


You can not login into FTP Server as "root". The directory which you have mentioned is owned by root. So, you can not upload any thing in this folder due to privileges.

Best Regards.

Posted: Sat Jul 11, 2009 3:29 pm
by x2oxen
create a new user with the home directory of path which you want to give access to user. set some permissions and ask ur buddy to login with that new user name.

Posted: Thu Jul 23, 2009 5:06 pm
by shahzor
and also get your user under chroot jail

Posted: Thu Jul 30, 2009 5:20 am
by ranatanveer
Hi Fahad,

if you dont yet get, Do the following

Code: Select all

useradd -G root ftpuser
passwd ftpuser



now edit the /etc/passwd like

Code: Select all

ftpuser:x:51:51::/var/www/html:/sbin/nologin


Code: Select all

chmod 2775 /var/www/html


try to connect ftp and upload files.

last thing is ur firewall, open up port 21 and passive ports ( > 1024)
you can also open selected passive ports, google out it.

As Salamo Alekum

Posted: Thu Jul 30, 2009 11:39 am
by xeon
You should check this URL there is complete solution.

http://www.linuxhomenetworking.com/wiki ... rver_Setup

Regards,