View previous topic :: View next topic |
Author |
Message |
Rain Designs Tux's lil' helper
Joined: 01 Jul 2002 Posts: 130 Location: Los Angeles, CA
|
Posted: Tue Jul 09, 2002 5:22 am Post subject: pure-ftpd got some questions :) |
|
|
well in the console I typed "emerge pure-ftpd" just to see if gentoo could find it and it did! lol now how do I run and config it? I searched pure-ftpd site and I couldn't really find anything. I tried to execute /usr/sbin/pure-ftpd and it didn't work. Any ideas? _________________ ^M = Death by notepad
http://www.raindesigns.com |
|
Back to top |
|
|
delta407 Bodhisattva
Joined: 23 Apr 2002 Posts: 2876 Location: Chicago, IL
|
Posted: Tue Jul 09, 2002 5:24 am Post subject: |
|
|
Do you have a pure-ftpd script in your /etc/init.d/? I've never used it, but that's generally where daemons go...
Anyway, check /etc/ for pro-ftpd-related things, that's how you configure it. _________________ I don't believe in witty sigs. |
|
Back to top |
|
|
Rain Designs Tux's lil' helper
Joined: 01 Jul 2002 Posts: 130 Location: Los Angeles, CA
|
Posted: Tue Jul 09, 2002 5:30 am Post subject: |
|
|
well I rebooted and typed /sr/sbin/pure-ftpd and it appears that pure-ftpd was installed, I just have to configure it, so I will take your advice!
yeah there is a script in there, I'll check it out.
Thanks!
-Rain
Your the man delta _________________ ^M = Death by notepad
http://www.raindesigns.com |
|
Back to top |
|
|
delta407 Bodhisattva
Joined: 23 Apr 2002 Posts: 2876 Location: Chicago, IL
|
Posted: Tue Jul 09, 2002 5:32 am Post subject: |
|
|
Use an init script (/etc/init.d/*) if at all possible, since they let you start/stop things nicely and have startup/shutdown dependency tracking (so your ftpd will start up after the network is loaded, etc.)
If it has an init script (which I'm betting it does), just "rc-update add pure-ftpd [or whatever] default" and it'll launch automagically on startup. _________________ I don't believe in witty sigs. |
|
Back to top |
|
|
Rain Designs Tux's lil' helper
Joined: 01 Jul 2002 Posts: 130 Location: Los Angeles, CA
|
Posted: Tue Jul 09, 2002 5:36 am Post subject: |
|
|
all I could find in /etc was ftpusers, there seems to be nothing else in there. I'll search usr and get back to you
well I found a lot of stuff in /usr/sbin and a lot of it contained chars that looked really funky. All I edited was an html doc lol. I'm just gonna read the website. I tried to connected to "ftp://192.168.0.4" in IE but no worky
Thanks man, your the best
-Rain _________________ ^M = Death by notepad
http://www.raindesigns.com |
|
Back to top |
|
|
kipper Tux's lil' helper
Joined: 20 Apr 2002 Posts: 112
|
Posted: Tue Jul 09, 2002 12:45 pm Post subject: |
|
|
There should be a script called pure-ftpd in /etc/conf.d that you should edit. In this script most of your server settings can be set. Once this script is edited to your satisfaction, you can add pure-ftpd to your boot sequence by typing
#rc-update add pure-ftpd default
If you are going to be using virtual users (highly recommended) you will need to add a new group called ftpgroup and a user called ftpuser. Once the group is created you can start adding virtual users.
the authorization file will be in /etc/pureftpd.pdb (needed for the script in /etc/conf.d)
e.g.
#groupadd ftpgroup
#useradd -g ftpgroup -d /dev/null -s /etc ftpuser
Let's create "joe", whoose home directory will be /home/ftpusers/joe . The
system account associated with "joe" is "ftpusers".
#pure-pw useradd joe -u ftpuser -d /home/ftpusers/joe
Check out www.pureftpd.org for details.
cheers,
kipper[/url] |
|
Back to top |
|
|
Rain Designs Tux's lil' helper
Joined: 01 Jul 2002 Posts: 130 Location: Los Angeles, CA
|
Posted: Tue Jul 09, 2002 9:44 pm Post subject: |
|
|
I set in the conf.d script to allow only anonous users (just to see if I could even get it up and running) I started pure-ftpd via "/usr/sbin/pure-ftpd &" and I got back:
"[1] 3366"
"#" and I'm back at the console. I then goto my windows box and try to goto "fpt://192.168.0.4" and its not found.
Any Ideas??
Thanks
-Rain
I looked at their site, and I couldn't really find any configuration docs. _________________ ^M = Death by notepad
http://www.raindesigns.com |
|
Back to top |
|
|
delta407 Bodhisattva
Joined: 23 Apr 2002 Posts: 2876 Location: Chicago, IL
|
Posted: Tue Jul 09, 2002 10:04 pm Post subject: |
|
|
Use the init scripts. Occasionally (okay, often) Gentoo config files are in non-standard locations (/etc/conf.d/ is not the usual place), and often the new locations are specified on the command line.
Code: | # /etc/init.d/pureftpd start |
Then, if you still get problems, look for a log file that might give you more information. _________________ I don't believe in witty sigs. |
|
Back to top |
|
|
Rain Designs Tux's lil' helper
Joined: 01 Jul 2002 Posts: 130 Location: Los Angeles, CA
|
Posted: Tue Jul 09, 2002 10:22 pm Post subject: |
|
|
ok I did that and it said I had to edit /etc/conf.d/pure-ftpd lol, I missed some really important stuff in there, so I editted the file and I tried to connect in my windows computer, still doesn't work When I executed /etc/init.d/pure-ftpd start it started ok, but I still couldn't connect I think its something wrong with my config. Any other ideas?
Thanks
-Rain _________________ ^M = Death by notepad
http://www.raindesigns.com |
|
Back to top |
|
|
Zu` l33t
Joined: 26 May 2002 Posts: 716 Location: BE
|
Posted: Tue Jul 09, 2002 10:24 pm Post subject: |
|
|
Rain Designs wrote: |
I looked at their site, and I couldn't really find any configuration docs. |
http://www.pureftpd.org/README
It's really not that hard to find and it has all the answers you need to set up Pure-FTPd successfully.
You'll have to read it yourself, but since I read it here's a few pointers:
Did you create /home/ftp ?
Do you have a system account named 'ftp' ?
The docs will help you out with this.
Also, try checking your ftp server with a real ftp client rather than a browser so you can see the error messages.
Good luck.
Last edited by Zu` on Tue Jul 09, 2002 10:29 pm; edited 1 time in total |
|
Back to top |
|
|
delta407 Bodhisattva
Joined: 23 Apr 2002 Posts: 2876 Location: Chicago, IL
|
Posted: Tue Jul 09, 2002 10:24 pm Post subject: |
|
|
Can you "ftp localhost"? _________________ I don't believe in witty sigs. |
|
Back to top |
|
|
Rain Designs Tux's lil' helper
Joined: 01 Jul 2002 Posts: 130 Location: Los Angeles, CA
|
Posted: Tue Jul 09, 2002 10:35 pm Post subject: |
|
|
I did "ftp localhost" and I got:
ftpd: connect: connection refues
ftp>
sorry zu I thought that that was just on installation, my bad, but thanks for the help!
Thanks
Rain _________________ ^M = Death by notepad
http://www.raindesigns.com |
|
Back to top |
|
|
Rain Designs Tux's lil' helper
Joined: 01 Jul 2002 Posts: 130 Location: Los Angeles, CA
|
Posted: Tue Jul 09, 2002 10:50 pm Post subject: |
|
|
well I followed the directions and I still don't have anything
off topic a little, how do I emerge sshd (emerge sshd) didn't work and (/etc/rc.d/init.d/sshd start) didn't either, so I'm assuming ssh isn't installed.
Thanks
-Rain _________________ ^M = Death by notepad
http://www.raindesigns.com |
|
Back to top |
|
|
delta407 Bodhisattva
Joined: 23 Apr 2002 Posts: 2876 Location: Chicago, IL
|
Posted: Wed Jul 10, 2002 12:09 am Post subject: |
|
|
Rain Designs wrote: | well I followed the directions and I still don't have anything |
If you're getting a "connection refused" on localhost that means your FTPd isn't listening on the standard port. Either you configured it differently, or you b0rked your configuration file so it pukes on load. Check your logs. (Poke around in /var/log/ with less.)
Rain Designs wrote: | off topic a little, how do I emerge sshd (emerge sshd) didn't work and (/etc/rc.d/init.d/sshd start) didn't either, so I'm assuming ssh isn't installed. |
It is installed, but the init scripts are in /etc/init.d/, not /etc/rc.d/init.d/. (Also, when you fire it up for the first time it'll do all kinds of nifty things -- like generating a set of keys -- that are un-fun to do manually. Ergo, use the init scripts!) _________________ I don't believe in witty sigs. |
|
Back to top |
|
|
Rain Designs Tux's lil' helper
Joined: 01 Jul 2002 Posts: 130 Location: Los Angeles, CA
|
Posted: Wed Jul 10, 2002 1:26 am Post subject: |
|
|
so set up ssh to boot up, do I just do:
rc-update add sshd default
and in my logs I'm getting this:
[INFO] New connection from 192.168.0.5 (my windows machine)
[ERROR] unable to set up secure anonymous FTP
so I'm asuming I gotta reconfig something. I'll see what I can do.
in /etc/conf.d/pure-ftpd which is the main script, there is a line like this:
## Authentication (others are 'pam' , ...)##
AUTH="-l unix"
and maybe that should be changed
Thanks a lot delta
-Rain _________________ ^M = Death by notepad
http://www.raindesigns.com |
|
Back to top |
|
|
delta407 Bodhisattva
Joined: 23 Apr 2002 Posts: 2876 Location: Chicago, IL
|
Posted: Wed Jul 10, 2002 1:33 am Post subject: |
|
|
Rain Designs wrote: | so set up ssh to boot up, do I just do:
rc-update add sshd default |
Right.
Rain Designs wrote: | and in my logs I'm getting this:
[INFO] New connection from 192.168.0.5 (my windows machine)
[ERROR] unable to set up secure anonymous FTP |
Sounds like a configuration issue to me. You might be able to find manpages on it... _________________ I don't believe in witty sigs. |
|
Back to top |
|
|
Rain Designs Tux's lil' helper
Joined: 01 Jul 2002 Posts: 130 Location: Los Angeles, CA
|
Posted: Wed Jul 10, 2002 1:40 am Post subject: |
|
|
well sshd works but I'm still havin problems with pure-ftpd, I just gotta configure users file I think, I hope lol.
Thanks a lot delta, your the man
-Rain _________________ ^M = Death by notepad
http://www.raindesigns.com |
|
Back to top |
|
|
delta407 Bodhisattva
Joined: 23 Apr 2002 Posts: 2876 Location: Chicago, IL
|
Posted: Wed Jul 10, 2002 1:42 am Post subject: |
|
|
Rain Designs wrote: | Thanks a lot delta, your the man |
No I'm not. Besides, "you're" grammar is wrong. _________________ I don't believe in witty sigs. |
|
Back to top |
|
|
Rain Designs Tux's lil' helper
Joined: 01 Jul 2002 Posts: 130 Location: Los Angeles, CA
|
Posted: Wed Jul 10, 2002 1:47 am Post subject: |
|
|
yeah yeah yeah, just accept the compliment and be dont with it!
_________________ ^M = Death by notepad
http://www.raindesigns.com |
|
Back to top |
|
|
shakti Guru
Joined: 15 May 2002 Posts: 358 Location: omnipresent
|
|
Back to top |
|
|
Rain Designs Tux's lil' helper
Joined: 01 Jul 2002 Posts: 130 Location: Los Angeles, CA
|
Posted: Wed Jul 10, 2002 11:37 pm Post subject: |
|
|
to get pure ftpd to boot at start usually you would do rc-update pure-ftpd default right, well what if I use this command to start ftpd:
/usr/sbin/pure-ftpd -j -l puredb:/etc/pureftpd.pdb &
rather than just /usr/sbin/pure-ftpd?
Thanks
-Rain _________________ ^M = Death by notepad
http://www.raindesigns.com |
|
Back to top |
|
|
delta407 Bodhisattva
Joined: 23 Apr 2002 Posts: 2876 Location: Chicago, IL
|
Posted: Thu Jul 11, 2002 12:00 am Post subject: |
|
|
Rain Designs wrote: | to get pure ftpd to boot at start usually you would do rc-update pure-ftpd default right |
Right.
Rain Designs wrote: | well what if I use this command to start ftpd:
/usr/sbin/pure-ftpd -j -l puredb:/etc/pureftpd.pdb & |
I don't know how many times I've said this: use the freaking init scripts! Run "/etc/init.d/pure-ftpd start" instead, you will end up a lot happier.
Example: say you change /etc/conf.d/net, you can run "/etc/init.d/net.eth0 restart" to load the new configuration. But, all your network services will still be listening on the old IP! Well, the Gentoo folk though of that, so when you restart your network interface all of your services restart too. But, they won't do that if you didn't use /etc/init.d/* to start them.
Again, just one more time:
Use the init scripts!
I feel better. _________________ I don't believe in witty sigs. |
|
Back to top |
|
|
klieber Bodhisattva
Joined: 17 Apr 2002 Posts: 3657 Location: San Francisco, CA
|
Posted: Thu Jul 11, 2002 12:13 am Post subject: |
|
|
uh oh. You made delta407 pull out the trout. I think you'd better use the scripts.
_________________ The problem with political jokes is that they get elected |
|
Back to top |
|
|
delta407 Bodhisattva
Joined: 23 Apr 2002 Posts: 2876 Location: Chicago, IL
|
Posted: Thu Jul 11, 2002 12:16 am Post subject: |
|
|
LOL!
...we need a trout emoticon. _________________ I don't believe in witty sigs. |
|
Back to top |
|
|
Rain Designs Tux's lil' helper
Joined: 01 Jul 2002 Posts: 130 Location: Los Angeles, CA
|
Posted: Thu Jul 11, 2002 12:23 am Post subject: |
|
|
sorry delta I'm still a little confused. I edited /etc/init.d/pure-ftpd so that the command in there was what I wanted. Then I added it to the boot, but the command that I wanted to be included did not work.
Sorry
-Rain _________________ ^M = Death by notepad
http://www.raindesigns.com |
|
Back to top |
|
|
|