Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Servers & Networking
FedoraForum Search

Forgot Password? Join Us!

Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 19th June 2005, 11:27 PM
jasonbaldwin Offline
Registered User
 
Join Date: Jun 2005
Posts: 1
FTP Users and Directory Access

Using ProFTPd which is working fine as long as I upload and download to the home directory I've logged into.

But, I'd like to be able to upload web files to the apache server which uses files in /var/www/html/<directory>

I've tried all sorts of things, I can log in and cd to /var but then te cd to ./www fails?
and i can't write to /var either?

I'm sure it must be a config issue in the proftpd.conf file.

Anyone got any clues?

Thanks,
Jason
Reply With Quote
  #2  
Old 22nd June 2005, 07:50 PM
johny's Avatar
johny Offline
Registered User
 
Join Date: May 2005
Location: Kosice, Slovakia
Age: 24
Posts: 52
My guess is that the user ProFTPd runs under (or the user you use to log in via ftp, I'm not sure which one is important) does not have (write) access to /var/www/html.
__________________
There are 10 kinds of people in the world. Those who understand binary and those who don't.
Reply With Quote
  #3  
Old 22nd June 2005, 09:42 PM
diablo93 Offline
Registered User
 
Join Date: Oct 2004
Location: Nebraska
Posts: 39
proftpd.conf

here are some sections from my proftpd.conf for you, first check out this section.....

# Use this to excude users from the chroot
DefaultRoot /var/ftp/pub ftpspecial

ftpspecial is just a group that my users must be in to access /var/ftp/pub
(my ftp directory) if they are not in that group, then they get their home directory

and add this line to the end of your config file

DefaultChdir /var/ftp/pub/

the paths on these can obviously be changed to your www directory or whatever you want the FTP server to point to, as long as the user the proftpd service is running as has permissions to that directory.

this should work for anyone logging in, if you want anonymous then it takes a few more lines. the proftpd website helped me out a lot in getting this setup, the instructions were pretty decent. try these lines though, they sound like they are what you are missing.
Reply With Quote
Reply

Tags
access, directory, ftp, users

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Keep users in their own FTP directory andymelton Servers & Networking 6 5th February 2007 12:30 AM
Share Directory Between Users meslick Using Fedora 8 15th June 2006 06:04 AM
How do I restrict ssh users to a particular directory? Dhana Servers & Networking 3 7th November 2005 04:15 PM
[vsFTP] chroot users to RW directory and some RO jambek2003 Servers & Networking 2 25th August 2005 04:57 AM
viewing another users directory. tekzilla Installation and Live Media 2 15th July 2005 03:22 AM


Current GMT-time: 16:32 (Monday, 20-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat