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 22/11/2007, à 11:40

tkno

pb de droit sur un dossier dans un serveur ftp - joint fichie config

bonjour

tout est dans le titre

bonjour à  tous

de plus j'ai installé webmin mais ne trouve pas de tuto pour un débutant complet donc je ne sais pas faire pour me tester en interne avec lui a partir d'une autre machine du réseau.

je viens de créer un premier serveur ftp pour mon assoc (il s agit de gproftp)

a priori c'est presque tout bon sauf l'user visiteur: je m'explique cette user ne devrait avoir le droit de visite (avec depose et prise de dossier de fichier c'est tout) a son dossier /home/apcs/visiteur.

hors quand je teste de l'extérieur il se balade dans ce qu'il veux et fait ce qu il veux.

je pense à  un problème de droit mais débutant complètement sous linux et encore plus sur le réseau je suis perdu.

voici le fichier config


ServerType standalone
DefaultServer on
Umask 022
ServerName "chat-scout@no-ip.biz"
ServerIdent on "My FTPD"
ServerAdmin phoenix@orange.fr
IdentLookups off
#UseReverseDNS off
Port 21
PassivePorts 5000 5500
#MasqueradeAddress None
TimesGMT off
MaxInstances 30
MaxLoginAttempts 3
TimeoutLogin 300
TimeoutNoTransfer 300
TimeoutIdle 300
DisplayLogin welcome.msg
User nobody
Group nobody
# Répertoire racine, les connectés au ftp ne verrons que lui et son contenu
DefaultRoot /home/apcs
DirFakeUser off nobody
DirFakeGroup off nobody
DefaultTransferMode binary
AllowForeignAddress off
AllowRetrieveRestart on
AllowStoreRestart on
DeleteAbortedStores off
TransferRate RETR 30
TransferRate STOR 100
TransferRate STOU 100
TransferRate APPE 100
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_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>
<IfModule mod_ratio.c>
Ratios off
SaveRatios off
RatioFile "/restricted/proftpd_ratios"
RatioTempFile "/restricted/proftpd_ratios_temp"
CwdRatioMsg "Please upload first!"
FileRatioErrMsg "FileRatio limit exceeded, upload something first..."
ByteRatioErrMsg "ByteRatio limit exceeded, upload something first..."
LeechRatioMsg "Your ratio is unlimited."
</IfModule>
<Limit LOGIN>
  AllowUser visiteur
  AllowUser terry
  AllowUser tethys
  AllowUser thierry
  AllowUser adminftp
  DenyALL
</Limit>

<Anonymous /home/apcs/visiteur>
# Répertoire racine, les connectés au ftp ne verrons que lui et son contenu
DefaultRoot /home/apcs/visiteur
User visiteur
Group nobody
AnonRequirePassword on
MaxClients 5 "The server is full, hosting %m users"
DisplayLogin welcome.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>
<Directory /home/apcs/visiteur>
<Limit LIST NLST  STOR STOU  APPE  RETR  RNFR RNTO  MKD XMKD SITE_MKDIR  MTDM  PWD XPWD  SIZE  STAT  CWD XCWD  CDUP XCUP >
AllowAll
</Limit>
<Limit DELE  RMD XRMD SITE_RMDIR  SITE  SITE_CHMOD  SITE_CHGRP >
DenyAll
</Limit>
</Directory>
<Directory /home/apcs/visiteur>
<Limit LIST NLST  STOR STOU  APPE  RETR  MTDM  PWD XPWD  SIZE  STAT  CWD XCWD  CDUP XCUP >
AllowAll
</Limit>
<Limit RNFR RNTO  DELE  MKD XMKD SITE_MKDIR  RMD XRMD SITE_RMDIR  SITE  SITE_CHMOD  SITE_CHGRP >
DenyAll
</Limit>
</Directory>
<Directory /var/ftp/Cliquer_Ici>
<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>
</Anonymous>

<Anonymous /home/apcs>
User terry
Group nobody
AnonRequirePassword on
MaxClients 5 "The server is full, hosting %m users"
DisplayLogin welcome.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>
<Directory /home/apcs>
<Limit LIST NLST  STOR STOU  APPE  RETR  RNFR RNTO  MKD XMKD SITE_MKDIR  MTDM  PWD XPWD  SIZE  STAT  CWD XCWD  CDUP XCUP >
AllowAll
</Limit>
<Limit DELE  RMD XRMD SITE_RMDIR  SITE  SITE_CHMOD  SITE_CHGRP >
DenyAll
</Limit>
</Directory>
</Anonymous>

<Anonymous /home/apcs>
User tethys
Group nobody
AnonRequirePassword on
MaxClients 5 "The server is full, hosting %m users"
DisplayLogin welcome.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>
<Directory /home/apcs>
<Limit LIST NLST  STOR STOU  APPE  RETR  RNFR RNTO  MKD XMKD SITE_MKDIR  MTDM  PWD XPWD  SIZE  STAT  CWD XCWD  CDUP XCUP >
AllowAll
</Limit>
<Limit DELE  RMD XRMD SITE_RMDIR  SITE  SITE_CHMOD  SITE_CHGRP >
DenyAll
</Limit>
</Directory>
</Anonymous>

<Anonymous /home/apcs>
User thierry
Group nobody
AnonRequirePassword on
MaxClients 5 "The server is full, hosting %m users"
DisplayLogin welcome.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>

<Anonymous /home/apcs>
User adminftp
Group nobody
AnonRequirePassword on
MaxClients 5 "The server is full, hosting %m users"
DisplayLogin welcome.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>



--------------------------------------------------------------------------------------------------------------------------------------------------

merci de votre aide

#2 Le 22/11/2007, à 11:50

maskott

Re : pb de droit sur un dossier dans un serveur ftp - joint fichie config

pour webmin tu l'installes sur ton serveur,
tu t'y connectes à  l'adresse :
http://x.y.z.t:10000

o๠x.y.z.t est l'IP de ton serveur
10000 est le port par défaut si tu ne l'as pas changé

si il te refuse, dans le fichier de configuration de webmin (/etc/webmin/miniserver.conf) tu as une ligne "allow" il faut qu'il y ait ton adresse IP et celle de la machine sur laquelle webmin est installé séparées par un espace (tu peux en ajouter d'autres si tu veux y accéder à  partir d'autre machines)


Backups are for wimps. Real men upload their work to an ftp server and have everybody mirror it. - Linus Torvalds
                                                                               
[RESOLU] dans les posts qui le sont, merci
(Et si vous y arrivez tout seul, indiquez aussi la solution, remerci)

Hors ligne

#3 Le 22/11/2007, à 12:15

tkno

Re : pb de droit sur un dossier dans un serveur ftp - joint fichie config

super rapide maskot merci

web min c'est bien ouvert  -- j'ai suivi le wiki et est mis un mot de passe pour root webmin

mais après pour aller sur mon serveur je fais comment - j'ai un peux tout parcouru mais rien toucher de paur de faire une grosse boulette

#4 Le 22/11/2007, à 12:17

maskott

Re : pb de droit sur un dossier dans un serveur ftp - joint fichie config

dans la liste "serveur"
faut que tu trouve le tien, tu cliques il va ouvrir une page pour le configurer
si il y es pas faut installer un module pour webmin...
mais je crois que proftp y est


Backups are for wimps. Real men upload their work to an ftp server and have everybody mirror it. - Linus Torvalds
                                                                               
[RESOLU] dans les posts qui le sont, merci
(Et si vous y arrivez tout seul, indiquez aussi la solution, remerci)

Hors ligne

#5 Le 22/11/2007, à 12:28

tkno

Re : pb de droit sur un dossier dans un serveur ftp - joint fichie config

j'ai trouvé pro ftp et j'ai remplie ça
ça m'emméne pas sur le serveur qui pour l'instant est sur la même machine que webmin




Prend en charge toutes les connexions non gérées par des serveurs virtuels.
Adresse Toutes     Nom du serveur chat-scout@no-ip.biz
Créer un Serveur virtuel
Adresse     192.168.1.xx
Port FTP     Defaut
Nom du serveur     Defaut   


pas évident au début de faire un serveur lol