problem of uploading webpage with ftp
problem of uploading webpage with ftp
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.
Fahadul haque
-
- Site Admin
- Posts: 5132
- Joined: Fri May 02, 2003 10:24 am
- Location: Karachi
- Contact:
Re: problem of uploading webpage with ftp
Dear fahadul,
Salam,
Best Regards.
Salam,
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.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.
Best Regards.
Farrukh Ahmed
-
- Subedar
- Posts: 355
- Joined: Sat May 07, 2005 11:54 am
- Location: Lahore
- Contact:
Hi Fahad,
if you dont yet get, Do the following
now edit the /etc/passwd like
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.
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
last thing is ur firewall, open up port 21 and passive ports ( > 1024)
you can also open selected passive ports, google out it.
Regards
Rana Tanveer
+923224194457
Linux Student
For Affordable Web Development http://www.affordableprogrammers.com
http://www.qualityprogrammers.com
Rana Tanveer
+923224194457
Linux Student
For Affordable Web Development http://www.affordableprogrammers.com
http://www.qualityprogrammers.com
As Salamo Alekum
You should check this URL there is complete solution.
http://www.linuxhomenetworking.com/wiki ... rver_Setup
Regards,
http://www.linuxhomenetworking.com/wiki ... rver_Setup
Regards,