View previous topic :: View next topic |
Author |
Message |
itatabitovski n00b
Joined: 16 Oct 2003 Posts: 48
|
Posted: Sun Mar 14, 2004 10:35 pm Post subject: what FTP server should i use? |
|
|
i need some FTP server but there must be some kind of credit system like in glftpd. I am trying to avoid glftpd because it is pain to set it up.
thanks |
|
Back to top |
|
|
MighMoS Guru
Joined: 24 Apr 2003 Posts: 416 Location: @ ~
|
Posted: Sun Mar 14, 2004 10:55 pm Post subject: |
|
|
I use pure-ftpd. I love it. No more needs to be said.
[edit]If I remember correctly, it forces you to edit its /etc/conf.d/pure-ftpd file though... _________________ jabber: MighMoS@jabber.org
localhost # export HOME=`which heart` |
|
Back to top |
|
|
itatabitovski n00b
Joined: 16 Oct 2003 Posts: 48
|
Posted: Mon Mar 15, 2004 5:40 pm Post subject: |
|
|
MighMoS wrote: | I use pure-ftpd. I love it. No more needs to be said.
[edit]If I remember correctly, it forces you to edit its /etc/conf.d/pure-ftpd file though... |
ok i think i will go with pure-ftpd, i emerged it and edited the /etc/conf.d/pure-ftpd
then i rc-update add pure-ftpd default
but on next restart doesn't seem to be started.
since i run this server without graphic card i use only ssh to configure it makes it hard to see what is actually going on while booting.
to sum up, besides editing the file and adding new group and user in linux and adding users trough pure-pw what else do i need to run the server.
thanks
here is the pure-ftpd config file, on boot up i get this error
Mar 15 16:15:56 low-budget pure-ftpd: (?@?) [ERROR] Unable to start a standalone server: [Invalid argument]
pure-ftpd
Code: |
# Config file for /etc/init.d/pure-ftpd
##Comment variables out to disable its features, or change the values in it... ##
## This variable must be uncommented in order for the server to start ##
IS_CONFIGURED="yes"
## FTP Server,Port (separated by comma) ##
## If you prefer host names over IP addresses, it's your choice :
## SERVER="-S ftp.rtchat.com,21"
## IPv6 addresses are supported.
SERVER="-S myserver.room.com,21"
## Number of simultaneous connections in total, and per ip ##
MAX_CONN="-c 10"
MAX_CONN_IP="-C 2"
## Start daemonized in background ##
DAEMON="-B"
## Don't allow uploads if the partition is more full then this var ##
DISK_FULL="-k 99%"
## If your FTP server is behind a NAT box, uncomment this ##
USE_NAT="-N"
## Authentication (others are 'pam', ...)##
## Further infos in the README file.
AUTH="-l unix"
## Change the maximum idle time. (in minutes. default 15)
TIMEOUT="-I 15'"
## Use that facility for syslog logging. It defaults to 'ftp'
## Logging can be disabled with '-f none' .
#LOG="-f facility"
## Misc. Others ##
MISC_OTHER="-A -R -E -X -y 1:0 -r -p 20000:20200"
|
|
|
Back to top |
|
|
MighMoS Guru
Joined: 24 Apr 2003 Posts: 416 Location: @ ~
|
Posted: Mon Mar 15, 2004 8:43 pm Post subject: |
|
|
Hmm, it looks fine to me ...the best advice I could give would be to remove --quiet from the start line of /etc/init.d/pure-ftpd and then run it, seeing if it barfs any more useful errors. _________________ jabber: MighMoS@jabber.org
localhost # export HOME=`which heart` |
|
Back to top |
|
|
vargen Tux's lil' helper
Joined: 29 May 2003 Posts: 76 Location: Lost somewhere in the deep woods of northern Sweden
|
Posted: Tue Mar 16, 2004 10:32 am Post subject: |
|
|
Code: | SERVER="-S myserver.room.com,21" |
Is this really your url? _________________ "We are known by the tracks we leave behind.." |
|
Back to top |
|
|
itatabitovski n00b
Joined: 16 Oct 2003 Posts: 48
|
Posted: Tue Mar 16, 2004 5:37 pm Post subject: |
|
|
vargen wrote: | Code: | SERVER="-S myserver.room.com,21" |
Is this really your url? |
nah but does it matter ??!? btw i still have problems running the server.. ok when i run it from console it starts but with netstat -al i dont see ftp port open ?!?!
anybody ?!? |
|
Back to top |
|
|
vargen Tux's lil' helper
Joined: 29 May 2003 Posts: 76 Location: Lost somewhere in the deep woods of northern Sweden
|
Posted: Tue Mar 16, 2004 6:00 pm Post subject: |
|
|
Try changing it to your server name or ip.. _________________ "We are known by the tracks we leave behind.." |
|
Back to top |
|
|
itatabitovski n00b
Joined: 16 Oct 2003 Posts: 48
|
Posted: Tue Mar 16, 2004 6:02 pm Post subject: |
|
|
vargen wrote: | Try changing it to your server name or ip.. |
already done, nothing changes
another thing..
/etc/init.d/pure-ftpd stop can't stop the server !! |
|
Back to top |
|
|
adammc Apprentice
Joined: 07 Oct 2003 Posts: 230 Location: Europe
|
Posted: Tue Mar 16, 2004 6:05 pm Post subject: |
|
|
what does rc-status have to say about it? _________________ There'd better be fudge when I get home... |
|
Back to top |
|
|
itatabitovski n00b
Joined: 16 Oct 2003 Posts: 48
|
Posted: Tue Mar 16, 2004 7:14 pm Post subject: |
|
|
adammc wrote: | what does rc-status have to say about it? |
Code: |
low-budget root # rc-status
Runlevel: default
sshd [ started ]
local [ started ]
samba [ started ]
vixie-cron [ started ]
syslog-ng [ started ]
net.eth0 [ started ]
netmount [ started ]
pure-ftpd [ started ]
low-budget root # netstat -al
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 *:netbios-ssn *:* LISTEN
tcp 0 0 *:ssh *:* LISTEN
tcp 0 0 192.168.1.150:ssh 192.168.1.101:1485 ESTABLISHED
udp 0 0 192.168.1.15:netbios-ns *:*
udp 0 0 *:netbios-ns *:*
udp 0 0 192.168.1.1:netbios-dgm *:*
udp 0 0 *:netbios-dgm *:*
Active UNIX domain sockets (servers and established)
Proto RefCnt Flags Type State I-Node Path
unix 2 [ ACC ] STREAM LISTENING 3538 /dev/log
unix 3 [ ] STREAM CONNECTED 3761 /dev/log
unix 3 [ ] STREAM CONNECTED 3760
unix 3 [ ] STREAM CONNECTED 3695 /dev/log
unix 3 [ ] STREAM CONNECTED 3694
unix 3 [ ] STREAM CONNECTED 3684 /dev/log
unix 3 [ ] STREAM CONNECTED 3683
|
and here is the /etc/conf.d/pure-ftpd file
Code: |
# Config file for /etc/init.d/pure-ftpd
##Comment variables out to disable its features, or change the values in it... ##
## This variable must be uncommented in order for the server to start ##
IS_CONFIGURED="yes"
## FTP Server,Port (separated by comma) ##
## If you prefer host names over IP addresses, it's your choice :
## SERVER="-S ftp.rtchat.com,21"
## IPv6 addresses are supported.
SERVER="-S low-budget.biatch.dk,1337"
## Number of simultaneous connections in total, and per ip ##
MAX_CONN="-c 10"
MAX_CONN_IP="-C 2"
## Start daemonized in background ##
DAEMON="-B"
## Don't allow uploads if the partition is more full then this var ##
DISK_FULL="-k 98%"
## If your FTP server is behind a NAT box, uncomment this ##
USE_NAT="-N"
## Authentication (others are 'pam', ...)##
## Further infos in the README file.
AUTH="-l unix"
## Change the maximum idle time. (in minutes. default 15)
#TIMEOUT="-I <timeout>'"
## Use that facility for syslog logging. It defaults to 'ftp'
## Logging can be disabled with '-f none' .
#LOG="-f facility"
## Misc. Others ##
MISC_OTHER="-A -E -R K -O stats:/var/log/pureftpd.log -p 20000:20200 -P low-budget.biatch.dk -Q 1:2 -r -y 1:1"
|
|
|
Back to top |
|
|
adammc Apprentice
Joined: 07 Oct 2003 Posts: 230 Location: Europe
|
Posted: Tue Mar 16, 2004 7:25 pm Post subject: |
|
|
does the machine have a local IP (i.e. LAN), or is it connected directly to your modem? I notice you've set the passive IP manually, but you're also getting it to bind to the same IP with -S. In my config I have:
Code: | SERVER="-S 192.168.1.201,21"
...
MISC_OTHER="-A -x -j -E -p 21000:22000 -P [my-ip-here]"
|
perhaps you could try something similar? _________________ There'd better be fudge when I get home... |
|
Back to top |
|
|
itatabitovski n00b
Joined: 16 Oct 2003 Posts: 48
|
Posted: Tue Mar 16, 2004 7:30 pm Post subject: |
|
|
adammc wrote: | does the machine have a local IP (i.e. LAN), or is it connected directly to your modem? I notice you've set the passive IP manually, but you're also getting it to bind to the same IP with -S. In my config I have:
Code: | SERVER="-S 192.168.1.201,21"
...
MISC_OTHER="-A -x -j -E -p 21000:22000 -P [my-ip-here]"
|
perhaps you could try something similar? |
ok then just clarify this for me
-S internal or external IP
-P internal or external IP ?
Last edited by itatabitovski on Tue Mar 16, 2004 7:32 pm; edited 1 time in total |
|
Back to top |
|
|
adammc Apprentice
Joined: 07 Oct 2003 Posts: 230 Location: Europe
|
Posted: Tue Mar 16, 2004 7:32 pm Post subject: |
|
|
-S should be the internal IP, -P the external _________________ There'd better be fudge when I get home... |
|
Back to top |
|
|
itatabitovski n00b
Joined: 16 Oct 2003 Posts: 48
|
Posted: Tue Mar 16, 2004 7:33 pm Post subject: |
|
|
adammc wrote: | -S should be the internal IP, -P the external |
i'll give it a try right now |
|
Back to top |
|
|
itatabitovski n00b
Joined: 16 Oct 2003 Posts: 48
|
Posted: Tue Mar 16, 2004 7:36 pm Post subject: |
|
|
adammc wrote: | -S should be the internal IP, -P the external |
done.. man you are a lifesaver, name it what you want you got it ) thanks a lot |
|
Back to top |
|
|
adammc Apprentice
Joined: 07 Oct 2003 Posts: 230 Location: Europe
|
Posted: Tue Mar 16, 2004 7:37 pm Post subject: |
|
|
itatabitovski wrote: | done.. man you are a lifesaver, name it what you want you got it ) thanks a lot |
glad I could help _________________ There'd better be fudge when I get home... |
|
Back to top |
|
|
MighMoS Guru
Joined: 24 Apr 2003 Posts: 416 Location: @ ~
|
Posted: Tue Mar 16, 2004 8:10 pm Post subject: |
|
|
adammc wrote: | -S should be the internal IP, -P the external | Wow, I never knew that. Thank you Mr. Adam M C _________________ jabber: MighMoS@jabber.org
localhost # export HOME=`which heart` |
|
Back to top |
|
|
itatabitovski n00b
Joined: 16 Oct 2003 Posts: 48
|
Posted: Tue Mar 16, 2004 8:14 pm Post subject: |
|
|
adammc wrote: | itatabitovski wrote: | done.. man you are a lifesaver, name it what you want you got it ) thanks a lot |
glad I could help |
still need your help..
i use
-l unix
i create user
pure-pw useradd vbt -u ftpuser -d /ftp
and enter the pass and when i try localy says authentication failed ?!!? |
|
Back to top |
|
|
adammc Apprentice
Joined: 07 Oct 2003 Posts: 230 Location: Europe
|
Posted: Tue Mar 16, 2004 9:04 pm Post subject: |
|
|
hmm, I'm not sure about that...I'm the only one using it, so I just login with my normal account (i.e. using the normal useradd command). _________________ There'd better be fudge when I get home... |
|
Back to top |
|
|
itatabitovski n00b
Joined: 16 Oct 2003 Posts: 48
|
Posted: Tue Mar 16, 2004 10:06 pm Post subject: |
|
|
adammc wrote: | hmm, I'm not sure about that...I'm the only one using it, so I just login with my normal account (i.e. using the normal useradd command). |
yep i need to use virtual users and i follow the doc from pure-ftpd site to the letter but no luck. probably i am doing something wrong...
it works ok with the system user when pass trogh pure-pwconvert |
|
Back to top |
|
|
itatabitovski n00b
Joined: 16 Oct 2003 Posts: 48
|
Posted: Wed Mar 17, 2004 2:24 pm Post subject: |
|
|
i will give more details what i want to do.
i need all virtual users view one common folder that will be their home for example /ftp and to be able to browse all subfolders.
when creating them i set the home -d /ftp and i use -A in pure-ftpd configuration to chroot them to their home.
for authentication i use -l unix
what am i doing wrong ? |
|
Back to top |
|
|
adammc Apprentice
Joined: 07 Oct 2003 Posts: 230 Location: Europe
|
Posted: Wed Mar 17, 2004 5:11 pm Post subject: |
|
|
http://www.pureftpd.org/README.Virtual-Users
that may help you, it has instructions for setting up pretty much what you want _________________ There'd better be fudge when I get home... |
|
Back to top |
|
|
itatabitovski n00b
Joined: 16 Oct 2003 Posts: 48
|
Posted: Wed Mar 17, 2004 6:10 pm Post subject: |
|
|
adammc wrote: | http://www.pureftpd.org/README.Virtual-Users
that may help you, it has instructions for setting up pretty much what you want |
that is excately what i use for reference...
here is what i get from the ftp client.
Code: |
[19:06:20] WinSock 2.0
[19:06:28] Connecting to 192.168.1.150
[19:06:28] Connected to 192.168.1.150 -> IP=192.168.1.150 PORT=1337
[19:06:28] 220---------- Welcome to Pure-FTPd [TLS] ----------
[19:06:28] 220-You are user number 1 of 10 allowed.
[19:06:28] 220-Local time is now 19:15. Server port: 1337.
[19:06:28] 220-This is a private system - No anonymous login
[19:06:28] 220-RATIOS ARE ENABLED FOR EVERYONE:
[19:06:28] 220-to download 2 Mb, uploading 1 Mb of goodies is mandatory.
[19:06:28] 220 You will be disconnected after 15 minutes of inactivity.
[19:06:28] USER vbt
[19:06:28] 331 User vbt OK. Password required
[19:06:28] PASS (hidden)
[19:06:28] 530 Authentication failed, sorry
[19:06:28] Connection failed
|
|
|
Back to top |
|
|
adammc Apprentice
Joined: 07 Oct 2003 Posts: 230 Location: Europe
|
Posted: Wed Mar 17, 2004 6:26 pm Post subject: |
|
|
hmm, then I'm not sure what's going wrong _________________ There'd better be fudge when I get home... |
|
Back to top |
|
|
itatabitovski n00b
Joined: 16 Oct 2003 Posts: 48
|
Posted: Thu Mar 18, 2004 12:02 am Post subject: |
|
|
adammc wrote: | hmm, then I'm not sure what's going wrong |
pfff what happens when you dont read everything to the letter...
for virtual users
-l puredb:/path to file. |
|
Back to top |
|
|
|