Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 07/02/2008, à 22:30

Kadwin

Droits proftpd

Salut!

J'ai installé un serveur proftpd sur une debian!
Il y a un dossier upload et un dossier download.
Je vous montre mon fichier de conf proftpd.conf:

# To really apply changes reload proftpd after modifications.

AllowOverwrite on

AuthAliasOnly on



UseIPv6                         off



# Choose here the user alias you want !!!!

UserAlias  kadwin adminftp

UserAlias  gillou familyftp

UserAlias  toto   thomas 



ServerName			"Srvced"

ServerType 			standalone

DeferWelcome			on



MultilineRFC2228 on

DefaultServer			on

ShowSymlinks			off



TimeoutNoTransfer 600

TimeoutStalled 100

TimeoutIdle 2200



DisplayFirstChdir               .message

ListOptions                	"-l"



RequireValidShell 		off



#TimeoutLogin 20



RootLogin 			off



# It's better for debug to create log files ;-)

ExtendedLog 			/var/log/ftp.log

TransferLog 			/var/log/xferlog

SystemLog			/var/log/syslog.log



#DenyFilter			\*.*/



# I don't choose to use /etc/ftpusers file (set inside the users you want to ban, not useful for me)

UseFtpUsers off



# Allow to restart a download

AllowStoreRestart		on



# Port 21 is the standard FTP port, so you may prefer to use another port for security reasons (choose here the port you want par exemple 1980)

Port				21



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



# Set the user and group that the server normally runs at.

User                  nobody

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



PersistentPasswd		off



MaxClients 8

MaxClientsPerHost 8

MaxClientsPerUser 8

MaxHostsPerUser 8



# Display a message after a successful login

AccessGrantMsg "BONJOIR TOUR LE MONDE ;)"

# This message is displayed for each access good or not

ServerIdent                  on       "you're at home"



# Set /home/ftpshare directory as home directory

DefaultRoot /home/ftpshare/



# Lock all the users in home directory, ***** really important *****

DefaultRoot ~



MaxLoginAttempts    5



#VALID LOGINS

<Limit LOGIN>

AllowUser adminftp

AllowUser familyftp

AllowUser thomas

DenyALL

</Limit>



<Directory /home/ftpshare>

Umask 022 022

AllowOverwrite off

  

        <Limit MKD DELE STOR XMKD RNRF RNTO RMD XRMD>

	DenyAll

	</Limit>

</Directory>



<Directory /home/ftpshare/download/>

Umask 022 022

AllowOverwrite off

     

      <Limit MKD RNFR RNTO DELE RMD STOR CHMOD SITE_CHMOD SITE XCUP WRITE XRMD XPWD XMKD> 

      AllowUser adminftp

      DenyAll

      </Limit>

</Directory>



<Directory> /home/ftpshare/upload/>

Umask 022 022

AllowOverwrite on

       

       <Limit READ STOR CWD>

       AllowAll

       </Limit>



       <Limit DELE RMD RNFR RNTO MKD>

       AllowUser adminftp

       DenyAll

       </Limit>



       <Limit APPE STOU CHMOD SITE_CHMOD>

       DenyAll

       </Limit>

</Directory>

Voila je voudrais faire en sorte que les utilisateurs puissent seulement uploader dans le dossier upload (en ne puissent pas downloader) et idem pour le dossier download (interdire l'upload) ??

Merci d'avance pour votre aide wink

Hors ligne

#2 Le 09/02/2008, à 12:19

Kadwin

Re : Droits proftpd

Up

Hors ligne

#3 Le 09/02/2008, à 16:10

Cybermanu

Re : Droits proftpd

Va voir ici, c'est plus facile avec une interface :

http://www.teletuto.fr/story.php?title=Gproftpd_installation


La connaissance est la seule chose qui s'accroit lorsqu'on la partage.
http://www.teletuto.fr

Hors ligne

#4 Le 09/02/2008, à 16:12

Ghost33

Re : Droits proftpd

Oui installe Gproftpd, comme ça tu aura une interface pour configurer proftpd wink

Hors ligne

#5 Le 09/02/2008, à 16:26

Kadwin

Re : Droits proftpd

Je précise que je n'ai pas d'interface graphique sur ma Debian smile

Hors ligne

#6 Le 09/02/2008, à 17:11

Cybermanu

Re : Droits proftpd

Voici une partie du fichier de config fait par GPROFTPD pour l'utilisateur2 avec un dossier "UP" que de l'upload et un dossier "down" que du download

<Limit LOGIN>
  AllowUser utilisateur2
  DenyALL
</Limit>

<Anonymous /home/ftp>
User utilisateur2
Group ftp
AnonRequirePassword off
MaxClients 5 "The server is full, hosting %m users"
DisplayLogin welcome.msg
<Limit LOGIN>
Allow from all
Deny from all
</Limit>
<Limit LIST NLST  PWD XPWD  SIZE  STAT  CWD XCWD  CDUP XCUP >
AllowAll
</Limit>
<Limit STOR STOU  APPE  RETR  RNFR RNTO  DELE  MKD XMKD SITE_MKDIR  RMD XRMD SITE_RMDIR  SITE  SITE_CHMOD  SITE_CHGRP  MTDM >
DenyAll
</Limit>
<Directory /home/ftp/up>
<Limit LIST NLST  STOR STOU  PWD XPWD  SIZE  STAT  CWD XCWD  CDUP XCUP >
AllowAll
</Limit>
<Limit APPE  RETR  RNFR RNTO  DELE  MKD XMKD SITE_MKDIR  RMD XRMD SITE_RMDIR  SITE  SITE_CHMOD  SITE_CHGRP  MTDM >
DenyAll
</Limit>
</Directory>
<Directory /home/ftp/down>
<Limit LIST NLST  RETR  PWD XPWD  SIZE  STAT  CWD XCWD  CDUP XCUP >
AllowAll
</Limit>
<Limit STOR STOU  APPE  RNFR RNTO  DELE  MKD XMKD SITE_MKDIR  RMD XRMD SITE_RMDIR  SITE  SITE_CHMOD  SITE_CHGRP  MTDM >
DenyAll
</Limit>
</Directory>
</Anonymous>

Dernière modification par Cybermanu (Le 09/02/2008, à 17:11)


La connaissance est la seule chose qui s'accroit lorsqu'on la partage.
http://www.teletuto.fr

Hors ligne

#7 Le 09/02/2008, à 17:32

Kadwin

Re : Droits proftpd

Super je pourrais m'en inspirer!
Merci pour ton aide big_smile

Hors ligne