Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 15th November 2006, 06:05
simianstyle simianstyle is offline
Junior Member
 
Join Date: Jun 2006
Location: The East Coast
Posts: 4
Thanks: 0
Thanked 1 Time in 1 Post
Question How to add FTP Users on a Server

I recently just did a fresh install of Ubuntu 6.10 on a cheap $200 box. I'm using this as a home server to test on, and i didn't install Postfix, Courier, or ISPConfig on it. I was wondering how can i add users on proftpd with the proper privileges to read/write to the server via FTP access.

I am relatively new to Linux so I apologize if this seems a little obvious. Any help is much appreciated.
Reply With Quote
Sponsored Links
  #2  
Old 16th November 2006, 14:27
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
 
Default

Just add a user with the useradd command to your system, e.g. like this:
Code:
useradd -d /home/exampleuser -m -g users -s /bin/bash exampleuser
This creates a user exampleuser with the homedir /home/exampleuser and the shell /bin/bash (you can also use another shell like /bin/false (which means the user has no shell access which is good security-wise), but then you might have to add the shell to /etc/shells). Then run
Code:
passwd exampleuser
to give that user a password. Next make sure you have
Code:
DefaultRoot ~
in /etc/proftpd.conf. If you have to modify /etc/proftpd.conf, restart Proftpd. Afterwards, you can use an FTP client and login with the username exampleuser and his password. That user will be chrooted to his homedir /home/exampleuser.

If you don't want to use system users, have a look at this tutorial: http://www.howtoforge.com/proftpd_mysql_virtual_hosting
It uses virtual users which means all you have to do to create a new user is to add it to the MySQL database.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
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
php Apps email not going through palkat General 8 21st September 2011 05:35
Statistic not working mzo Installation/Configuration 49 20th April 2011 12:19
Setting up a backup mail server setup with two installations of ISPConfig zitch Tips/Tricks/Mods 7 30th December 2006 10:07
WEB UI FTP not working gimhan90 Installation/Configuration 2 16th March 2006 08:03
The Perfect Setup Suse 9.3 - Postfix problems new_bee05 HOWTO-Related Questions 20 25th November 2005 02:30


All times are GMT +2. The time now is 23:00.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.