Problèm transfert FTP

Fermé
drogba7213 Messages postés 1521 Date d'inscription mardi 14 août 2007 Statut Membre Dernière intervention 3 avril 2010 - 1 juin 2009 à 18:18
nanocr0n Messages postés 329 Date d'inscription lundi 25 décembre 2006 Statut Membre Dernière intervention 7 septembre 2010 - 14 juin 2009 à 15:15
Bonjour a tout le monde,

Je tente a travers une de mes application de transférer un fichier photo mes il me met permission denied

Par contre quand j'utilise filezilla avec le meme log le transfert s'effectue bien auriez vous une explication svp?

merci d'avance
A voir également:

4 réponses

nanocr0n Messages postés 329 Date d'inscription lundi 25 décembre 2006 Statut Membre Dernière intervention 7 septembre 2010 111
1 juin 2009 à 18:25
Le FTP est un protocol de transfert , il n'est pas utiliser par tout les programmes c'est pourquoi des clients ftp existe , simple non ?
0
drogba7213 Messages postés 1521 Date d'inscription mardi 14 août 2007 Statut Membre Dernière intervention 3 avril 2010 21
1 juin 2009 à 18:28
non mais c'est une application que j'ai codé lol

C'est pour ca que je me pose la question est ce que ca pourrais venir des droits de l'utilisateur?
Mais alors pourquoi je peux les transférer avec filezilla?
0
drogba7213 Messages postés 1521 Date d'inscription mardi 14 août 2007 Statut Membre Dernière intervention 3 avril 2010 21
1 juin 2009 à 18:55
voici le fichier de conf de proftpd

#
# /etc/proftpd/proftpd.conf -- This is a basic ProFTPD configuration file.
# To really apply changes reload proftpd after modifications.
# 

# Includes DSO modules
Include /etc/proftpd/modules.conf

# Set off to disable IPv6 support which is annoying on IPv4 only boxes.
UseIPv6				off

ServerName			"Islo people"
ServerType			standalone
DeferWelcome			on

MultilineRFC2228		on
DefaultServer			on
ShowSymlinks			on

TimeoutNoTransfer		600
TimeoutStalled			600
TimeoutIdle			1200

DisplayLogin                    welcome.msg
DisplayFirstChdir               .message
ListOptions                	"-l"

DenyFilter			\*.*/

# Port 21 is the standard FTP port.
Port				21

# In some cases you have to specify passive ports range to by-pass
# firewall limitations. Ephemeral ports can be used for that, but
# feel free to use a more narrow range.
# PassivePorts                    49152 65534

# 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
Defaultroot			/home/ftp/

# Set the user and group that the server normally runs at.
User				proftpd
Group				nogroup

# Umask 022 is a good standard umask to prevent new files and dirs
# (second parm) from being group and world writable.
Umask				022  022
# Normally, we want files to be overwriteable.
AllowOverwrite			on

# Uncomment this if you are using NIS or LDAP to retrieve passwords:
# PersistentPasswd		off

# Be warned: use of this directive impacts CPU average load!
#
# Uncomment this if you like to see progress and transfer rate with ftpwho
# in downloads. That is not needed for uploads rates.
# UseSendFile			off

TransferLog /var/log/proftpd/xferlog
SystemLog   /var/log/proftpd/proftpd.log

<IfModule mod_tls.c>
TLSEngine on
TLSprotocol 				SSLv23
TLSRSACertificateFile			/etc/proftpd/proftpd.pem
TLSRSACertificateKeyFile		/etc/proftpd/proftpd.pem
TLSlog 					/var/log/proftpd/proftpd_SSL.log
TLSrequired				on
</IfModule>

<IfModule mod_quota.c>
QuotaEngine on
</IfModule>

<IfModule mod_ratio.c>
Ratios on
</IfModule>

# Delay engine reduces impact of the so-called Timing Attack described in
# http://security.lss.hr/index.php?page=details&ID=LSS-2004-10-02
# It is on by default. 
<IfModule mod_delay.c>
DelayEngine on
</IfModule>

<IfModule mod_ctrls.c>
ControlsEngine        on
ControlsMaxClients    2
ControlsLog           /var/log/proftpd/controls.log
ControlsInterval      5
ControlsSocket        /var/run/proftpd/proftpd.sock
</IfModule>

<IfModule mod_ctrls_admin.c>
AdminControlsEngine on
</IfModule>

# A basic anonymous configuration, no upload directories.

# <Anonymous ~ftp>
#   User				ftp
#   Group				nogroup
#   # We want clients to be able to login with "anonymous" as well as "ftp"
#   UserAlias			anonymous ftp
#   # Cosmetic changes, all files belongs to ftp user
#   DirFakeUser	on ftp
#   DirFakeGroup on ftp
# 
#   RequireValidShell		off
# 
#   # 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
#   <Directory *>
#     <Limit WRITE>
#       DenyAll
#     </Limit>
#   </Directory>
# 
#   # Uncomment this if you're brave.
#   # <Directory incoming>
#   #   # Umask 022 is a good standard umask to prevent new files and dirs
#   #   # (second parm) from being group and world writable.
#   #   Umask				022  022
#   #            <Limit READ WRITE>
#   #            DenyAll
#   #            </Limit>
#   #            <Limit STOR>
#   #            AllowAll
#   #            </Limit>
#   # </Directory>
# 
# </Anonymous>


après les retour quand je tente de me connecté avec l'application que j'ai codé

SKT <<< 220 ProFTPD 1.3.0 Server ready.
SKT >>> AUTH TLS
SKT <<< 234 AUTH TLS successful
>>> USER photographe
<<< 331 Password required for photographe.
>>> PASS *******
<<< 230-Welcome, archive user photographe@islo.local !
<<< 230-
<<< 230-The local time is: Mon Jun  1 18:06:07 2009
<<< 230-
<<< 230-This is an experimental FTP server.  If have any unusual problems,
<<< 230-please report them via e-mail to <root@localhost>.
<<< 230-
<<< 230 User photographe logged in.
>>> PBSZ 0
<<< 200 PBSZ 0 successful
>>> PROT P
<<< 200 Protection set to Private
>>> PASV
<<< 227 Entering Passive Mode (10,0,2,69,207,255).
>>> ALLO 26497
<<< 202 No storage allocation necessary.
>>> STOR logo.png
<<< 550 logo.png: Permission denied
>>> PBSZ 0
<<< 200 PBSZ 0 successful
>>> PROT P
<<< 200 Protection set to Private
>>> PASV
<<< 227 Entering Passive Mode (10,0,2,69,232,129).
>>> ALLO 191488
<<< 202 No storage allocation necessary.
>>> STOR chausiku.JPG
<<< 550 chausiku.JPG: Permission denied
>>> PBSZ 0
<<< 200 PBSZ 0 successful
>>> PROT P
<<< 200 Protection set to Private
>>> PASV
<<< 227 Entering Passive Mode (10,0,2,69,218,68).
>>> ALLO 37318
<<< 202 No storage allocation necessary.
>>> STOR formation_comprendre_raw_54.jpg
<<< 550 formation_comprendre_raw_54.jpg: Permission denied


Je ne sais pas si c'est ce que tu veut je pense que oui

merci d'avance
0
nanocr0n Messages postés 329 Date d'inscription lundi 25 décembre 2006 Statut Membre Dernière intervention 7 septembre 2010 111
14 juin 2009 à 15:15
Peut etre que les permision de l'utilisateur "photographe" sont limité juste a la lecture mais pas a l'ecriture
0