Fórum Ubuntu Linux - PT
Suporte Técnico => Servidores => Tópico iniciado por: augustonunes em 05 de Setembro de 2006, 15:53
-
Pessoal,
Instalei via Synaptic o proftpd (servidor de ftp) e segui algumas intruções conseguidas na Internet para configurá-lo, mas todas as vezes que chamo o programa, surgem as seguintes linhas de erro no terminal:
admin@ubuntu01:~$ proftpd -t
Checking syntax of configuration file
localhost.localdomain - PRIVS_ROOT: unable to seteuid(): Operation not permitted
localhost.localdomain - PRIVS_ROOT: unable to setegid(): Operation not permitted
localhost.localdomain - PRIVS_RELINQUISH: unable to seteuid(PR_ROOT_UID): Operation not permitted
localhost.localdomain - PRIVS_RELINQUISH: unable to setegid(session.gid): Operation not permitted
localhost.localdomain - PRIVS_RELINQUISH: unable to seteuid(session.uid): Operation not permitted
localhost.localdomain - mod_delay/0.4: error opening DelayTable '/var/run/proftpd/proftpd.delay': Operation not permitted
Syntax check complete.
localhost.localdomain - PRIVS_ROOT: unable to seteuid(): Operation not permitted
localhost.localdomain - PRIVS_ROOT: unable to setegid(): Operation not permitted
localhost.localdomain - PRIVS_RELINQUISH: unable to seteuid(PR_ROOT_UID): Operation not permitted
localhost.localdomain - PRIVS_RELINQUISH: unable to setegid(session.gid): Operation not permitted
localhost.localdomain - PRIVS_RELINQUISH: unable to seteuid(session.uid): Operation not permitted
localhost.localdomain - mod_delay/0.4: warning: unable to open DelayTable '/var/run/proftpd/proftpd.delay': Operation not permitted
Alguém poderia ajudar a resolver este problema?
Agradeço qualquer ajuda possível.
Abraços,
Augusto Cesar
-
Esse erro indica que o comando deve ser executado como administrador/root (colocar sudo antes):
sudo proftpd -t
-
Valeu, Lamego ! Rodou sem apresentar erro...!!!
Agora, como eu faço para acessar este servidor via página web? Qual o endereço que outros na rede poderão digitar para acessar os arquivo que eu disponibilizar? O meu endereço é 10.10.xx.yy
Abraços,
Augusto
-
augustonunes,
servidor ftp não é para servir páginas web, é para servir arquivos por FTP.
No máximo podem utilizar o suporte FTP do browser digitando ftp://seu_ip , mas isto só funciona se você tiver configurando uma conta de ftp anónimo.
-
o que eu configurei aqui com ajuda de tutos... está rodando certinho para rede local... para web ainda não.... mas acho que... pensei nisso hoje... deve ser firewall... pois ainda não liberei nada no firewall, e acho que seje isso que não está deixando que eu acesse via internet... assim como a pagina que está no servidor apache....
quando chegar em casa hoje, eu tento e coloco aqui se deu certo
-
Bom, pensei que apenas configurando o firewall iria funcionar na web... mas ainda não... estou reestudando o arquivo proftpd.conf para ver se acho algo errado...
com o servidor apache, agora está funcionando, era realmente o firewall
creio que deve ser problema de configuração do arquivo proftpd.conf pois ao tentar acessar por telnet ele consegue se conectar ao ProFTPD....
220 ProFTPD 1.2.10 Server (Devian) [192.168.x.y]
isso acessando de uma máquina win...
e ao tentar logar com user Anonymous e senha um email qualquer, dá erro de login....
Agora "basta" eu achar o erro aqui no arquivo.. ehehe
off: vejo que todo mundo representa assim o seu ip local... x.y mas isso é realmente necessário?
-
Bom dia, Físico_UEM !!! Como estou apanhando um pouco aqui para configurar o bendito proftpd.conf, estou colocando abaixo como ele se encontra aqui na minha máquina. Eu consigo localmente ver tudo (usando o gftp, bem parecido com o WS-Ftp); de uma outra máquina, quando entro no navegador e digito ftp://10.10.xx.yy, é solicitada um nome de login e uma senha... Aí é que eu não estou sabendo como configurar isso e onde... preciso apenas que qualquer usuário da rede acesse uma determindada pasta, para ler e gravar arquivos nela...
Pode dar um Help?
Valeu aí pela ajuda !!!
#
# /etc/proftpd.conf -- This is a basic ProFTPD configuration file.
# To really apply changes reload proftpd after modifications.
#
ServerName "Ubuntu01"
ServerType standalone
DeferWelcome on
#ScoreboardPath /var/run
ServerAdmin root@localhost
SyslogFacility AUTH
#ServerIdent "Bem-vindo ao Servidor de FTP Ubuntu 01"
Port 21
Umask 022
MaxInstances 30
User nobody
Group nobody
<Directory /*>
AllowOverwrite no
</Directory>
<Anonymous /var/ftp/default>
User anonymous
Group ftp
DirFakeUser on
DirFakeGroup on
RequireValidShell off
UserAlias anonymous ftp
MaxClients 10
MaxClientsPerHost 2
DisplayLogin welcome.msg
DisplayFirstChdir .message
AccessGrantMsg "Acesso anonimo aceito para %u"
ListOptions "-l"
DenyFilter \*.*/
</Anonymous>
-
Você deu permissão de acesso a pasta?
Dá uma olhada nesse tutorial... por ele cosegui deixar funcionando na rede local.. mas ainda não via web...
http://www.guiadohardware.net/tutoriais/091/
-
E ai augustonune, conseguiu?
Aqui consegui por no "ar" o servidor ftp, mas preferi deixar sem usuário anonimo... prefire deixar apenas acesso com senha.
-
Valeu, Fisico_UEM !!! Eu acabei desinstalando o proftpd e instalei o vsftpd, que é mais simples e já faz a configuração quase que 100% automática, criando uma pasta /home/ftp pública, somente para leitura.
De qualquer forma, depois vou estudar o proftpd porque talvez seja necessário para outras instalações.
Qualquer coisa estou por aqui, ok?
[]s
Augusto
-
Olá Fisico_UEM,
também estou com problema para acesso externo.
Localmente está funcionando blz, mas externamente após colocar user e psw não conecta nem com reza braba.
O tópico que criei sobre o problema é : http://ubuntuforum-pt.org/index.php?topic=18943.0
Vc conseguiu resolver? Como?
Utilizei o seguinte critério para a criação dos diretórios e usuários:
Diretório: Usuário:
/var/ftp imigrante
/var/ftp/comum comum
/var/ftp/fernanda fernanda
/var/ftp/vitor vitor
Cada user somente vê sua pasta, com exceção do "imigrante" que vê todas.
Será algum problema com permissões??? Devo configurar alguma permissão especial nos diretórios especificados?
Meu proftpd.conf (/etc/proftpd.conf):
ServerType standalone
DefaultServer on
Umask 022
ServerName "imigrante.no-ip.info"
ServerIdent on "Imigrante"
ServerAdmin imigrante@msn.com
IdentLookups on
UseReverseDNS on
Port 2121
PassivePorts 49152 65534
#MasqueradeAddress None
TimesGMT on
MaxInstances 30
MaxLoginAttempts 3
TimeoutLogin 300
TimeoutNoTransfer 60
TimeoutIdle 60
DisplayLogin welcome.msg
DisplayFirstChdir .message
User nobody
Group nobody
DirFakeUser off nobody
DirFakeGroup off nobody
DefaultTransferMode binary
AllowForeignAddress on
AllowRetrieveRestart on
AllowStoreRestart on
DeleteAbortedStores off
TransferRate RETR 0
TransferRate STOR 0
TransferRate STOU 0
TransferRate APPE 0
SystemLog /var/log/secure
RequireValidShell off
#gp_random_username_length 6
#gp_random_password_length 6
#gp_randomize_case lower
#gp_useradd_homedir_path /var/ftp
#gp_useradd_upload_path /upload
#gp_html_path /var/www/html/ftp.htm
#gp_welcome_name welcome.msg
<IfModule mod_tls.c>
TLSEngine off
TLSRequired off
TLSVerifyClient off
TLSProtocol TLSv1
TLSLog /var/log/proftpd_tls.log
TLSRSACertificateFile /etc/gproftpd/gproftpd.pem
</IfModule>
<Limit LOGIN>
AllowUser fernanda
AllowUser vitor
AllowUser comum
AllowUser imigrante
DenyALL
</Limit>
<Anonymous /var/ftp/fernanda>
User fernanda
Group fernanda
AnonRequirePassword on
MaxClients 3 "The server is full, hosting %m users"
DisplayLogin welcome.msg
DisplayFirstChdir .msg
<Limit LOGIN>
Allow from all
Deny from all
</Limit>
AllowOverwrite on
<Limit LIST NLST STOR STOU RETR RNFR RNTO DELE MKD XMKD SITE_MKDIR RMD XRMD SITE_RMDIR PWD XPWD SIZE STAT CWD XCWD CDUP XCUP >
AllowAll
</Limit>
<Limit APPE SITE SITE_CHMOD SITE_CHGRP MTDM >
DenyAll
</Limit>
</Anonymous>
<Anonymous /var/ftp/vitor>
User vitor
Group vitor
AnonRequirePassword on
MaxClients 3 "The server is full, hosting %m users"
DisplayLogin welcome.msg
DisplayFirstChdir .msg
<Limit LOGIN>
Allow from all
Deny from all
</Limit>
AllowOverwrite on
<Limit LIST NLST STOR STOU RETR RNFR RNTO DELE MKD XMKD SITE_MKDIR RMD XRMD SITE_RMDIR PWD XPWD SIZE STAT CWD XCWD CDUP XCUP >
AllowAll
</Limit>
<Limit APPE SITE SITE_CHMOD SITE_CHGRP MTDM >
DenyAll
</Limit>
</Anonymous>
<Anonymous /var/ftp/comum>
User comum
Group comum
AnonRequirePassword on
MaxClients 3 "The server is full, hosting %m users"
DisplayLogin welcome.msg
DisplayFirstChdir .msg
<Limit LOGIN>
Allow from all
Deny from all
</Limit>
AllowOverwrite on
<Limit LIST NLST STOR STOU RETR RNFR RNTO DELE MKD XMKD SITE_MKDIR RMD XRMD SITE_RMDIR PWD XPWD SIZE STAT CWD XCWD CDUP XCUP >
AllowAll
</Limit>
<Limit APPE SITE SITE_CHMOD SITE_CHGRP MTDM >
DenyAll
</Limit>
</Anonymous>
<Anonymous /var/ftp>
User imigrante
Group imigrante
AnonRequirePassword on
MaxClients 3 "The server is full, hosting %m users"
DisplayLogin welcome.msg
DisplayFirstChdir .msg
<Limit LOGIN>
Allow from all
Deny from all
</Limit>
AllowOverwrite on
<Limit LIST NLST STOR STOU APPE RETR RNFR RNTO DELE MKD XMKD SITE_MKDIR RMD XRMD SITE_RMDIR SITE SITE_CHMOD SITE_CHGRP MTDM PWD XPWD SIZE STAT CWD XCWD CDUP XCUP >
AllowAll
</Limit>
<Limit NOTHING >
DenyAll
</Limit>
</Anonymous>
Abraços...