Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[proftpd] overwrite impossible [resolu]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
Elianora la blanche
Tux's lil' helper
Tux's lil' helper


Joined: 22 Dec 2004
Posts: 78
Location: Brocéliande, Bretagne

PostPosted: Thu Apr 20, 2006 5:26 pm    Post subject: [proftpd] overwrite impossible [resolu] Reply with quote

hello, j'ai essayé d'installer un serveur ftp en suivant le tuto du forum astuces (https://forums.gentoo.org/viewtopic-t-358344-highlight-ftp.html) mais si tout fonctionne correctement il est impossible d'écraser les fichiers et/ou répertoires présents

je peux les supprimer et les recréer (j'ai donc les droits d'écriture) mais c'est pas très pratique qd mm...

aurais-je loupé quelque chose?

de plus, est-ce que quelqu'un peut me confirmer que un truc du genre
Code:
<Limit STOR READ CWD DELE MKD RNTO RMD RETR>
       AllowAll
   </Limit>

veut bien dire "tout le monde peut faire STOR READ CWD DELE MKD RNTO RMD RETR"?

merci d'avance

Code:
# 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.

ServerName          "Serveur FTP de Test"
ServerType          standalone
DefaultServer       on
RequireValidShell   off
AuthPAM             on
AuthPAMConfig       ftp
RootLogin       off
# 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            nobody
Group            nobody

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

DefaultRoot   /home/ftp/public_html

# Utilisateur
<Anonymous /home/ftp/elia>
   User elia
   Group ftp
   AnonRequirePassword yes # on demande l'identification par mot de passe
   <Limit STOR READ CWD DELE MKD RNTO RMD RETR>
       AllowAll
   </Limit>
</Anonymous>

_________________
Where once was light,
Now darkness falls;
Where once was love,
Love is no more;
Don't say "Goodbye",
Don't say: "I didn't try..."


Last edited by Elianora la blanche on Mon Apr 24, 2006 8:31 am; edited 1 time in total
Back to top
View user's profile Send private message
DuF
Advocate
Advocate


Joined: 09 Dec 2002
Posts: 2687
Location: Paris

PostPosted: Thu Apr 20, 2006 10:56 pm    Post subject: Reply with quote

Bonjour,

Bon déjà malheureusement le site proftpd a actuellement des petits problèmes, donc il m'est difficile de vérifier la syntaxe exacte des directives, en tout cas il y en a une qui est déjà mauvaise, c'est :
Code:
DefaultRoot

Normalement cette directive pointe vers le répertoire d'accueil par défaut, l'équivalent du home d'un user. Donc faire pointer cette directive sur un fichier html n'est pas correct.

Ensuite pour ta directive AllowOverwrite, as-tu essayé de la faire pointer sur le répertoire par défaut d'accueil de tes utilisateurs, soit le DefaultRoot soit la directive Anonymous. Car à mon avis faire pointer vers /* n'est pas correct.

Si jamais le site proftpd redonne rapidement l'accès aux documentations j'essairai de repréciser mes commentaires.
Back to top
View user's profile Send private message
Elianora la blanche
Tux's lil' helper
Tux's lil' helper


Joined: 22 Dec 2004
Posts: 78
Location: Brocéliande, Bretagne

PostPosted: Fri Apr 21, 2006 7:48 am    Post subject: Reply with quote

DefaultRoot pointe bien vers un répertoire (public_html) et c'est ce que je veux

par contre pour le AllowOverwrite, j'ai essayé
Code:
/
comme dans le tuto,
Code:
/*
au cas où
et même avec
Code:
/home/ftp/public_html
ça ne marche pas

après modifications, voici le fichier de conf :
Code:

# 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.

ServerName          "FTP Intranet de la DDJS"
ServerType          standalone
DefaultServer       on
RequireValidShell   off
AuthPAM             on
AuthPAMConfig       ftp
RootLogin           off

# 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                            ftp
Group                           ftp

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

# Nombre de connexions simultanees
MaxInstances                    10

# Racine par defaut
DefaultRoot                     /home/intranet/public_html

# Utilisateur adapte
<Anonymous /home/intranet/public_html>
   User                         intranet
   Group                        ftp
   AnonRequirePassword          yes
   <Limit OVERWRITE STOR WRITE READ CWD DELE MKD RNTO RMD RETR>
       AllowAll
   </Limit>
</Anonymous>

_________________
Where once was light,
Now darkness falls;
Where once was love,
Love is no more;
Don't say "Goodbye",
Don't say: "I didn't try..."


Last edited by Elianora la blanche on Mon Apr 24, 2006 8:32 am; edited 1 time in total
Back to top
View user's profile Send private message
DuF
Advocate
Advocate


Joined: 09 Dec 2002
Posts: 2687
Location: Paris

PostPosted: Fri Apr 21, 2006 11:56 pm    Post subject: Reply with quote

Essai avec "yes" plutot que "on".
Sinon chez moi j'ai le AllowOverwrite qui n'est pas dans une directive de répertoire, donc plutot que de faire :
Code:
# Normally, we want files to be overwriteable.
<Directory /home/intranet/public_html>
  AllowOverwrite                on
</Directory>

Essai :
Code:
# Normally, we want files to be overwriteable.
  AllowOverwrite                on
#######ou alors avec yes si avec on ça ne fonctionne pas#########
# AllowOverwrite                yes
Back to top
View user's profile Send private message
Elianora la blanche
Tux's lil' helper
Tux's lil' helper


Joined: 22 Dec 2004
Posts: 78
Location: Brocéliande, Bretagne

PostPosted: Mon Apr 24, 2006 8:30 am    Post subject: Reply with quote

avec
Code:
AllowOverwrite    on
dans la clause de l'utilisateur ça fonctionne

ce qui nous donne un fichier de conf du genre (sans accès anonyme) :
Code:

# 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.

ServerName          "FTP Intranet de la DDJS"
ServerType          standalone
DefaultServer       on
RequireValidShell   off
AuthPAM             on
AuthPAMConfig       ftp
RootLogin           off

# 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                            ftp
Group                           ftp

# Nombre de connexions simultanees
MaxInstances                    10

# Racine par defaut
DefaultRoot                     /home/intranet/public_html

# Utilisateur adapte
<Anonymous /home/intranet/public_html>
   User                         intranet
   Group                        ftp
   AnonRequirePassword          yes
# Normally, we want files to be overwriteable.
   AllowOverwrite                on
   <Limit OVERWRITE STOR WRITE READ CWD DELE MKD RNTO RMD RETR>
       AllowAll
   </Limit>
</Anonymous>

_________________
Where once was light,
Now darkness falls;
Where once was love,
Love is no more;
Don't say "Goodbye",
Don't say: "I didn't try..."
Back to top
View user's profile Send private message
DuF
Advocate
Advocate


Joined: 09 Dec 2002
Posts: 2687
Location: Paris

PostPosted: Mon Apr 24, 2006 10:15 pm    Post subject: Reply with quote

Bien content que tu t'en sois sorti.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum