LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-15-2008, 01:19 PM   #1
sfspartan
LQ Newbie
 
Registered: Mar 2008
Posts: 5

Rep: Reputation: 0
Proftpd wont shared folder


Im trying to get Proftpd to share /var/www/html. Right now it is sharing /home/ali. I tried to bind the html folder to /home/ali, it shows that it is binded on the terminal but when I use the ftp the folder is not there.
 
Old 04-15-2008, 02:46 PM   #2
slackhack
Senior Member
 
Registered: Jun 2004
Distribution: Arch, Debian, Slack
Posts: 1,016

Rep: Reputation: 47
change the default root in /etc/proftpd/proftpd.conf to what you want and restart proftpd.
 
Old 04-15-2008, 03:11 PM   #3
sfspartan
LQ Newbie
 
Registered: Mar 2008
Posts: 5

Original Poster
Rep: Reputation: 0
This is the config file

# This is the ProFTPD configuration file

ServerName "ProFTPD server"
ServerIdent on "FTP Server ready."
ServerAdmin root@localhost
ServerType standalone
#ServerType inetd
DefaultServer on
AccessGrantMsg "User %u logged in."
#DisplayConnect /etc/ftpissue
#DisplayLogin /etc/ftpmotd
#DisplayGoAway /etc/ftpgoaway
DeferWelcome off

# Use this to excude users from the chroot
DefaultRoot ~adm

# Use pam to authenticate (default) and be authoritative
AuthPAMConfig proftpd
AuthOrder mod_auth_pam.c* mod_auth_unix.c

# Do not perform ident nor DNS lookups (hangs when the port is filtered)
IdentLookups off
UseReverseDNS off

# Port 21 is the standard FTP port.
Port 21





I tried to change
DefaultRoot ~adm
to
DefaultRoot ~/var/www/html
but when I start ftp it says failed
 
Old 04-15-2008, 04:43 PM   #4
slackhack
Senior Member
 
Registered: Jun 2004
Distribution: Arch, Debian, Slack
Posts: 1,016

Rep: Reputation: 47
I wonder if it's a PAM issue?

>> edit: oh, remove the ~ before /var. the ~ means your home directory.

Last edited by slackhack; 04-15-2008 at 04:44 PM.
 
Old 04-16-2008, 07:43 PM   #5
sfspartan
LQ Newbie
 
Registered: Mar 2008
Posts: 5

Original Poster
Rep: Reputation: 0
Got it to work with virtual servers, but..........I have a file within that contains php, that won't load. So it keeps defaulting the website to my default virtual host. I did a yum install php, and I am using Apache 2.2.8 on Ferdora 7. I have changed permissions on the files for apache.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
I can not open the user folder in home and write in a shared folder jorge_ivan Linux - General 8 08-02-2006 11:28 AM
Shared Folder salmanucit Linux - Software 2 06-11-2006 08:27 AM
how can i move this folder of music from /root/Shared to /home/coffee/Shared ? thx mr_coffee Linux - Newbie 9 01-23-2006 06:50 AM
Cant add folder into my shared folder? amer_58 Linux - Newbie 2 04-03-2005 11:35 AM
I see shared win folder, but wont ask to authenticate dna3e8 Linux - Newbie 0 11-19-2004 08:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration