Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 07-04-2003, 03:48 PM   #1
Registered: Jul 2003
Location: San Luis Obispo, CA
Distribution: Gentoo 2007.0
Posts: 88

Rep: Reputation: 15
How do I setup ProFTPD so users can access my website

I have installed Apache 2 / PHP4 / MySQL with a single host in /wwwroot (no virtual hosts) running as localhost. Then, I use DNS2Go and bind my IP address to the domain I also installed ProFTPD, but I'm not sure how to setup users/passwords such that I could access this server from anywhere and edit/delete files and directories. Say, for example, I want user1 with pwd1 to be able to login and access/edit/move/delete anything in the /wwwroot folder. How do I do this?
Old 07-05-2003, 11:34 AM   #2
LQ Guru
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Create a user with the useradd command.

Set their home directory to /wwwroot if that's what you want them to be directed to when first logging in. If that is the only directory you want them to have access to, including its subdirectories, look into using chroot to lock them in that directory.

Add them to the appropiate group ownership to your /wwwroot folder by doing it in the adduser command or maybe adding them to it by editing your /etc/group file.

Make sure if they belong to the group that has access to the folder /wwwroot, then make sure it has whatever access granted as you want.

If you don't want a user to have a valid shell access, only FTP access to upload/download files, you can make it so their shell is /bin/false and add that to your /etc/shells file.

Some commands to get to know:

man useradd
man chown
man chgroup
man chroot
man usermod
man passwd
Old 07-10-2003, 02:33 PM   #3
Registered: Jul 2003
Location: San Luis Obispo, CA
Distribution: Gentoo 2007.0
Posts: 88

Original Poster
Rep: Reputation: 15
Ok, I've tried that, but all the users that I try to use to login always get 'Incorrect Password'. Heck, I even put the fake username 'faker' in just to see if it'd ask for a password and it did! So, basically I don't think it's recognizing the users I have. Do I have to edit my proftpd.conf file to make it so that authenticated users have access? Right now I have the default proftpd.conf file with anonomous FTP setup, which I don't want.
Old 07-10-2003, 11:07 PM   #4
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
It will prompt for user pass even if the user doesn't exist. First thing to try, make sure the users can actually login to the system from the system first. It might just be a password problem with the system. Also, the error you get when you do ftp, that'll be helpful. Lastly, check your log files. With proftpd.conf you can set where you want your log files to be, or just look in /var/log/messages or your similar system log (this might be /var/log/everything or /var/log/syslog).

I personally use:
/var/log/proftpd.log but that is setup in my proftpd.conf file, with a section:
SystemLog                       /var/log/proftpd.log
TransferLog                     /var/log/xferlog
If you do make changes to this file, be sure to restart it. This brings me to my next point, are you running it as a daemon (inetd or xinetd) or standalone. This should be shown at the top of your proftpd.conf file which one you are using.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How to setup FTP users only users on LInux Fedora Soujiro Linux - Newbie 8 09-13-2010 07:34 AM
local users can't see website or get mail Michele Linux - Newbie 8 07-01-2004 01:00 PM
Creating users from website colin.mca Linux - Software 2 05-22-2004 01:20 AM
Apache: number of users on a website? mikeshn Linux - Software 0 07-22-2003 06:40 PM
how do you setup users on ProFTPD? ShawnD Linux - Software 22 08-01-2002 09:33 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:17 AM.

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