problem of uploading webpage with ftp

Discussion regarding the installation and configuration of Linux distributions.

problem of uploading webpage with ftp

Postby fahadul » Fri Jul 03, 2009 6:47 pm

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
fahadul
Cadet
 
Posts: 4
Joined: Thu Jul 17, 2008 9:46 pm
Website: http://www.vyruz.o-f.com
WLM: pagasuse@hotmail.com
Location: Bangladesh

Re: problem of uploading webpage with ftp

Postby LinuxFreaK » Sun Jul 05, 2009 11:42 am

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.
Farrukh Ahmed
LinuxFreaK
Site Admin
 
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
ICQ: 82075802
Website: http://www.linuxpakistan.net/wiki/index.php?pagename=LinuxFreak
WLM: f4fahmed@hotmail.com
Yahoo Messenger: f4fahmed@yahoo.com
AOL: linuxpakistan@aol.com
Location: Karachi

Postby x2oxen » Sat Jul 11, 2009 3:29 pm

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.
Muhammad Usman
+92-321-6640501
Chemonics International
http://usmanpk.com
x2oxen
Major General
 
Posts: 1114
Joined: Wed Aug 22, 2007 3:17 pm
Website: http://usmanpk.com
WLM: x2oxen@hotmail.com
Yahoo Messenger: x2oxen
Location: Faisalabad

Postby shahzor » Thu Jul 23, 2009 5:06 pm

and also get your user under chroot jail
LinuxBoy
shahzor
Naik
 
Posts: 72
Joined: Thu Jun 29, 2006 11:33 am
ICQ: 000
WLM: none
Yahoo Messenger: shahzor007@yahoo.com
AOL: none
Location: Quetta

Postby ranatanveer » Thu Jul 30, 2009 5:20 am

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.
Regards

Rana Tanveer
+923224194457
Linux Student

For Affordable Web Development http://www.affordableprogrammers.com
http://www.qualityprogrammers.com
ranatanveer
Subedar
 
Posts: 355
Joined: Sat May 07, 2005 11:54 am
ICQ: 133032001
Website: http://www.affordableprogrammers.com
WLM: ranatanveer@gmail.com
Yahoo Messenger: ranahard@yahoo.com
Location: Lahore

As Salamo Alekum

Postby xeon » Thu Jul 30, 2009 11:39 am

You should check this URL there is complete solution.

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

Regards,
Asif Ali
Pink Link Network
+92-333-7849320
www.pinklinknetwork.com
xeon
Cadet
 
Posts: 10
Joined: Tue Feb 24, 2009 9:02 pm
Website: http://www.pinklinknetwork.com
WLM: great_victor@hotmail.com
Yahoo Messenger: asifalirp@yahoo.com
Location: Pakistan


Return to “%s” Installation

Who is online

Users browsing this forum: No registered users and 2 guests

cron