Como criar um servidor FTP no slack 9.1 ...


Página 1 de 2    1  2 
07-11-2003 por Peter Parker
Como criar um servidor FTP no slack 9.1 ...
Gostaria de habilitar um servidor FTP no meu slack 9.1, uso velox com ip dinâmico ... agluém poderia me dar uma ajuda ...
07-11-2003 por chou
Procure na net, arquivos tutoriais sobre o ProFTPd.
07-11-2003 por ag_andrade
Olá ...
Caro amigo use o proftpd ele é muito bom.
Mas pegue a versão mais atual porque versões antigas estão cheia de falhas...

www.proftpd.org

Um abraço ...
07-11-2003 por Peter Parker
Cara eu li alguns tutos, mas achei muito confuso .... não achei ele muito simples de configurar não ... até agora não consegui fazer um usuário para conectar no ftp ....
07-11-2003 por domus
Citação:
Postado Originalmente por Peter Parker
Cara eu li alguns tutos, mas achei muito confuso .... não achei ele muito simples de configurar não ... até agora não...
pelo que sei o slackware ja traz o proftpd ativo, é so criar as contas dos users (adduser) e passar utiliza-las como login no ftp


t+
07-11-2003 por revoltado
Acho que não precisa configurar praticamente nada.. pelo menos aqui no Debian nao precisou.. foi só instalar e mandar bala..
Ele usa as contas do seu sistema mesmo para permitir o acesso.
07-11-2003 por Peter Parker
Bom depois de ficar tentando pelo shell, eu resolvi instalar o gFTP ... o que melhorou um pouco a coisa ... ele parece que aceita o usuário ... desde que eu ponha senha ... tentei o root com a sua senha e nada ... cadastrei todos os usuários que usam o pc no grupo FTP e nada ....
Me ajudem...
07-11-2003 por Peter Parker
alguém me poderia mandar um exemplo de um arquvo proftpf.conf ... me ensinando como cadastrar usuário e como botar o servidor para funcionar legal ... obrigado ...
07-11-2003 por domus
esse é oq uso aqui, basico e funciona muito bem, quanto adiconar user mais simples

adduser fulano

pronto ja foi criada a conta do user com seu devido home

/etc/proftpd/proftpd.conf
Citação:
# This is a basic ProFTPD configuration file (rename it to
# 'proftpd.conf' for actual use. It establishes a single server
# and a single anonymous login. It assumes that you have a user/group
# "nobody" and "ftp" for normal operation and anon.

DefaultRoot ~
ServerName "ProFTPD Default Installation"
ServerType standalone
DefaultServer on
RequireValidShell off
AuthPAM off
AuthPAMConfig ftp
# Port 21 is the standard FTP port.
Port 21

# Umask 022 is a good standard umask to prevent new dirs and files
# from being group and world writable.
Umask 022

# To prevent DoS attacks, set the maximum number of child processes
# to 30. If you need to allow more than 30 concurrent connections
# at once, simply increase this value. Note that this ONLY works
# in standalone mode, in inetd mode you should use an inetd server
# that allows you to limit maximum number of processes per service
# (such as xinetd).
MaxInstances 30

# Set the user and group under which the server will run.
User proftpd
Group proftpd

# Normally, we want files to be overwriteable.
<Directory />
AllowOverwrite on
</Directory>

# A basic anonymous configuration, no upload directories.
<Anonymous ~ftp>
User ftp
Group ftp

# We want clients to be able to login with "anonymous" as well as "ftp"
UserAlias anonymous ftp

# Limit the maximum number of anonymous logins
MaxClients 10

# We want 'welcome.msg' displayed at login, and '.message' displayed
# in each newly chdired directory.
DisplayLogin welcome.msg
DisplayFirstChdir .message

# Limit WRITE everywhere in the anonymous chroot
<Limit WRITE>
DenyAll
</Limit>

</Anonymous>
07-11-2003 por Peter Parker
me responde outra coisa ... como sei que o proftpd tá rodando ... pois quando dou um killall proftpd .. ele iz que não tem processo para matar ...
07-11-2003 por Carlos Alberto
Dá um nmap localhost
Se tiver a porta 21 aberta é porque o danado tá rodando
07-11-2003 por Peter Parker
Caras ... mesmo depois dessa ajuda toda ... ainda não roda ... ele dá isso:

Código:
220 FTP Server Ready USER root 530 Invalid use
???
07-11-2003 por domus
Citação:
Postado Originalmente por Peter Parker
Caras ... mesmo depois dessa ajuda toda ... ainda não roda ... ele dá isso:

[code]220 FTP Server Ready
USER root
...
ps -A tambem mostra se o proftpd ta rodando

mostra ai pra gente como esta seu /etc/inetd.conf
07-11-2003 por Peter Parker
# See "man 8 inetd" for more information.
#
# If you make changes to this file, either reboot your machine or send the
# inetd a HUP signal:
# Do a "ps x" as root and look up the pid of inetd. Then do a
# "kill -HUP <pid of inetd>".
# The inetd will re-read this file whenever it gets that signal.
#
# <service_name> <sock_type> <proto> <flags> <user> <server_path> <args>
#
# The first 4 services are really only used for debugging purposes, so
# we comment them out since they can otherwise be used for some nasty
# denial-of-service attacks. If you need them, uncomment them.
# echo stream tcp nowait root internal
# echo dgram udp wait root internal
# discard stream tcp nowait root internal
# discard dgram udp wait root internal
# daytime stream tcp nowait root internal
# daytime dgram udp wait root internal
# chargen stream tcp nowait root internal
# chargen dgram udp wait root internal
time stream tcp nowait root internal
time dgram udp wait root internal
#
# These are standard services:
#
# File Transfer Protocol (FTP) server:
ftp stream tcp nowait root /usr/sbin/tcpd proftpd
#
# Telnet server:
#telnet stream tcp nowait root /usr/sbin/tcpd in.telnetd
#
# The comsat daemon notifies the user of new mail when biff is set to y:
comsat dgram udp wait root /usr/sbin/tcpd in.comsat
#
# Shell, login, exec and talk are BSD protocols
#
#shell stream tcp nowait root /usr/sbin/tcpd in.rshd -L
#login stream tcp nowait root /usr/sbin/tcpd in.rlogind
# exec stream tcp nowait root /usr/sbin/tcpd in.rexecd
# talk dgram udp wait root /usr/sbin/tcpd in.talkd
ntalk dgram udp wait root /usr/sbin/tcpd in.talkd
#
# To use the talk daemons from KDE, comment the talk and ntalk lines above
# and uncomment the ones below:
# talk dgram udp wait root /usr/sbin/tcpd /opt/kde/bin/kotalkd
# ntalk dgram udp wait root /usr/sbin/tcpd /opt/kde/bin/ktalkd
#
# Kerberos authenticated services
#
# klogin stream tcp nowait root /usr/sbin/tcpd rlogind -k
# eklogin stream tcp nowait root /usr/sbin/tcpd rlogind -k -x
# kshell stream tcp nowait root /usr/sbin/tcpd rshd -k
#
# Services run ONLY on the Kerberos server
#
# krbupdate stream tcp nowait root /usr/sbin/tcpd registerd
# kpasswd stream tcp nowait root /usr/sbin/tcpd kpasswdd
#
# POP and IMAP mail servers
#
# Post Office Protocol version 3 (POP3) server:
#pop3 stream tcp nowait root /usr/sbin/tcpd /usr/sbin/popa3d
# Internet Message Access Protocol (IMAP) server:
#imap2 stream tcp nowait root /usr/sbin/tcpd imapd
#
# The Internet Unix to Unix copy (UUCP) service:
# uucp stream tcp nowait uucp /usr/sbin/tcpd /usr/lib/uucp/uucico -l
#
# Tftp service is provided primarily for booting. Most sites
# run this only on machines acting as "boot servers."
# tftp dgram udp wait nobody /usr/sbin/tcpd in.tftpd
# bootps dgram udp wait root /usr/sbin/bootpd bootpd
#
# Finger, systat and netstat give out user information which may be
# valuable to potential "system crackers." Many sites choose to disable
# some or all of these services to improve security.
# Try "telnet localhost systat" and "telnet localhost netstat" to see that
# information yourself!
finger stream tcp nowait nobody /usr/sbin/tcpd in.fingerd -u
# systat stream tcp nowait nobody /usr/sbin/tcpd /bin/ps -auwwx
# netstat stream tcp nowait root /usr/sbin/tcpd /bin/netstat -a
#
# Ident service is used for net authentication
# Since we start identd as nobody, it can't write a .pid file in /var/run, so tell it
# to use /dev/null. This is of little importance unless you run identd as a
# standalone daemon anyway.
auth stream tcp wait nobody /usr/sbin/in.identd in.identd -P/dev/null
#
# These are to start Samba, an smb server that can export filesystems to
# Pathworks, Lanmanager for DOS, Windows for Workgroups, Windows95, Lanmanager
# for Windows, Lanmanager for OS/2, Windows NT, etc.
# If you're running smbd and nmbd as daemons in /etc/rc.d/rc.samba, then you
# shouldn't uncomment these lines.
#netbios-ssn stream tcp nowait root /usr/sbin/smbd smbd
#netbios-ns dgram udp wait root /usr/sbin/nmbd nmbd
#
#Samba Web Administration Tool:
#swat stream tcp nowait.400 root /usr/sbin/swat swat
#
# Sun-RPC based services.
# <service name/version><sock_type><rpc/prot><flags><user><server><args>
# rstatd/1-3 dgram rpc/udp wait root /usr/sbin/tcpd rpc.rstatd
# rusersd/2-3 dgram rpc/udp wait root /usr/sbin/tcpd rpc.rusersd
# walld/1 dgram rpc/udp wait root /usr/sbin/tcpd rpc.rwalld
#
# End of inetd.conf.
07-11-2003 por Peter Parker
depois de rodar o comando proftpd

:



root@slackwar:~# ps -A
PID TTY TIME CMD
1 ? 00:00:04 init
2 ? 00:00:00 migration/0
3 ? 00:00:00 ksoftirqd/0
4 ? 00:00:00 events/0
5 ? 00:00:00 kblockd/0
6 ? 00:00:00 khubd
7 ? 00:00:00 pdflush
8 ? 00:00:01 pdflush
9 ? 00:00:00 kswapd0
10 ? 00:00:00 aio/0
11 ? 00:00:00 scsi_eh_0
12 ? 00:00:00 kseriod
13 ? 00:00:00 reiserfs/0
348 ? 00:00:00 syslogd
351 ? 00:00:00 klogd
354 ? 00:00:00 inetd
363 ? 00:00:00 crond
365 ? 00:00:00 atd
369 ? 00:00:00 acpid
388 ? 00:00:00 gpm
390 tty6 00:00:00 agetty
391 ? 00:00:00 kdm
393 ? 00:05:37 X
394 ? 00:00:00 kdm
408 ? 00:00:00 startkde
457 ? 00:00:00 kdeinit
460 ? 00:00:00 kdeinit
463 ? 00:00:00 kdeinit
465 ? 00:00:01 kdeinit
488 ? 00:00:10 artsd
490 ? 00:00:00 kdeinit
491 ? 00:00:00 kwrapper
493 ? 00:00:00 kdeinit
494 ? 00:00:15 kdeinit
496 ? 00:00:00 kdeinit
498 ? 00:00:03 kdeinit
501 ? 00:00:24 kdeinit
506 ? 00:00:00 kdeinit
508 ? 00:00:00 kalarmd
510 ? 00:00:00 kdeinit
517 ? 00:00:11 sim
2141 ? 00:00:00 in.identd
11996 ? 00:00:00 kdeinit
12658 ? 00:00:00 run-mozilla.sh
12664 ? 00:01:14 mozilla-bin
12745 ? 00:00:00 kdeinit
12769 ? 00:00:00 netstat <defunct>
15733 ? 00:00:00 kdeinit
15734 pts/1 00:00:00 bash
15756 pts/1 00:00:00 ps
07-11-2003 por domus
Citação:
Postado Originalmente por Peter Parker
depois de rodar o comando proftpd

:



root@slackwar:~# ps -A
PID TTY TIME CMD
1 ? 00:...
seu proftpd nao está na lista do ps
07-11-2003 por Peter Parker
ok, mas como está o arquivo proftpd.conf .... me ajude a fazê-lo funcionar ..

Muito obrigado a todos pela perseverança .... :wink:
07-11-2003 por Mestre Jedi Linux
Re: Como criar um servidor FTP no slack 9.1 ...
Citação:
Postado Originalmente por Peter Parker
Gostaria de habilitar um servidor FTP no meu slack 9.1, uso velox com ip dinâmico ... agluém poderia me dar uma ajuda...

no mandrake o serviço pode ser configurado com um front end gráfico
07-11-2003 por Peter Parker
eu achei um tal de Kproftpd .... um front-end para o proftpd ... só que na hora de compilar tá dando isso aqui ó :

Código:
checking for kde headers installed... configure: error: your system is not able to compile a small KDE application! Check, if you installed the KDE header files correctly.
alguém já teve um problema similar ... e/ou sabe a solução ??
08-11-2003 por droterdam
O padrão é negar ao root o acesso ao ftp.
O arquivo /etc/ftpusers contém todos os usuários que não podem acessar o ftp.Se quiser acessar com o root tem que tirar ele de lá. ( não é boa idéia).
A melhor forma de configurar é "na mão" mesmo.No site do projeto tem a melhor documentação que eu conheço. ---> www.proftpd.org
No site do Conectiva tem um bom tutorial também.
 
Guia do Hardware Melhores Tópicos