LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 11-08-2002, 11:09 PM   #1
KillerCheeto
LQ Newbie
 
Registered: Nov 2002
Location: KC Missouri
Distribution: Fedora Core
Posts: 20

Rep: Reputation: 0
Talking ProFTP


I'm setting up a webserver on RedHat, I installed ProFTP, but I can't get it configured...

I just need a simple config file that gives a user off the box access to the folder /www/...

Any help would be appreciated....
 
Old 11-09-2002, 02:00 AM   #2
markus1982
Senior Member
 
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 46
Next time please use the search function to search the forum ... in the meantime take a look at http://www.linuxquestions.org/questi...724#post160299

Afterwards the user is chrooted to the home directory so all you need to do is add a user like this:

useradd -g nobody www_upload -s /etc/ftponly -d /www

Last edited by markus1982; 11-09-2002 at 02:01 AM.
 
Old 11-10-2002, 01:02 AM   #3
KillerCheeto
LQ Newbie
 
Registered: Nov 2002
Location: KC Missouri
Distribution: Fedora Core
Posts: 20

Original Poster
Rep: Reputation: 0
Okay, I tried doing that with this command:

useradd -g shane -s /home/shane -d www shane -p ********

it doesn't let me login with that...

i'm a bit new to this stuff...

-g = group
-s = shell?
-d = startup folder?
shane = username
-p = password

what am I doing wrong?
 
Old 11-10-2002, 03:17 AM   #4
markus1982
Senior Member
 
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 46
Quote:
Extract from the manpage of useradd:
-p passwd
The encrypted password, as returned by crypt(3). The default is
to disable the account.
Are you sure you used a crypted password in this case? You can't use a cleartext password when using useradd. Instead add a user with useradd (without the -p part) and use passwd <username> or write a script that does the crypt, etc for you!
 
Old 11-10-2002, 05:13 AM   #5
Donald1000
Member
 
Registered: Oct 2002
Location: Germany
Distribution: Debian, Non-Linux: Solaris, FreeBSD
Posts: 107

Rep: Reputation: 15
You config File must be in /usr/local/etc/proftpd.conf

useradd -d /www/pathtoftproot username
Set in proftpd.conf:

<Anonymous /www/pathtoftproot>
User username
Group users
AnonyRequirePassword on
</Anonymous>

Restart ProFTPd


Greetings
 
Old 11-10-2002, 10:04 AM   #6
KillerCheeto
LQ Newbie
 
Registered: Nov 2002
Location: KC Missouri
Distribution: Fedora Core
Posts: 20

Original Poster
Rep: Reputation: 0
Oh man! Ouch... I was writing to the wrong conf file all this time... what an ass that I feel... but thanks markus for having the patience to help me... and Donald for pointing out where the conf file must go....

anyways... it's up... and i'm set....
 
Old 11-10-2002, 03:11 PM   #7
markus1982
Senior Member
 
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 46
Well there are different locations where the proftpd.conf file can be. For instance I like to install proftpd to /server/proftpd and it's chrooted there (the whole proccess not just the FTP users)
 
  


Reply


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
proftp onelung02 Slackware 5 05-15-2005 05:42 PM
ProFTP againstms Linux - Networking 3 11-20-2004 04:38 AM
proftp ScottCamp Linux - Newbie 3 11-02-2004 07:58 AM
ProFtp bnumark Linux - Software 5 06-28-2003 03:36 PM
proftp spate Linux - Software 2 01-09-2003 03:17 PM


All times are GMT -5. The time now is 04:40 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration