logo Debian Debian Debian-France Debian-Facile Debian-fr.org Forum-Debian.fr Debian ? Communautés logo inclusivité

Debian-facile

Bienvenue sur Debian-Facile, site d'aide pour les nouveaux utilisateurs de Debian.

Vous n'êtes pas identifié(e).

#1 20-12-2014 12:11:51

justclo
Membre
Inscription : 19-10-2012

Configuration proftrp

Bonjour, je souhaite permettre un acces Ftp pour mon imprimante.

J'ai donc configurer  nano /etc/proftpd/proftpd.conf mais rien y fait pas de connection avec epsonftp avec le password creer

#
# /etc/proftpd/proftpd.conf -- This is a basic ProFTPD configuration file.
# To really apply changes, reload proftpd after modifications, if
# it runs in daemon mode. It is not required in inetd/xinetd mode.
#

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

# Set off to disable IPv6 support which is annoying on IPv4 only boxes.
UseIPv6                         on
# If set on you can experience a longer connection delay in many cases.
IdentLookups                    off

ServerName                      "Debian"
ServerType                      standalone
DeferWelcome                    off
MultilineRFC2228                on
DefaultServer                   on
ShowSymlinks                    on
TimeoutNoTransfer               600
TimeoutStalled                  600
TimeoutIdle                     1200

DisplayLogin                    welcome.msg
DisplayChdir                    .message true
ListOptions                     "-l"

DenyFilter                      \*.*/

# Use this to jail all users in their homes
DefaultRoot ~

# Users require a valid shell listed in /etc/shells to login.
# Use this directive to release that constrain.
# RequireValidShell             off

# Port 21 is the standard FTP port.
Port                            23456

# 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

# If your host was NATted, this option is useful in order to
# allow passive tranfers to work. You have to use your public
# address and opening the passive ports used on your firewall as well.
# MasqueradeAddress             1.2.3.4
# PersistentPasswd              off

# This is required to use both PAM-based authentication and local passwords
# AuthOrder                     mod_auth_pam.c* mod_auth_unix.c
<Limit LOGIN>
AllowUser epsonftp
DenyALL
</Limit>
# 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

# Logging onto /var/log/lastlog is enabled but set to off by default
#UseLastlog on

# In order to keep log file dates consistent after chroot, use timezone info
# from /etc/localtime.  If this is not set, and proftpd is configured to
# chroot (e.g. DefaultRoot or <Anonymous>), it will use the non-daylight
# savings timezone regardless of whether DST is in effect.
#SetEnv TZ :/etc/localtime

<IfModule mod_quotatab.c>
QuotaEngine off
</IfModule>

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


# Delay engine reduces impact of the so-called Timing Attack described in
# http://www.securityfocus.com/bid/11430/discuss
# It is on by default.
<IfModule mod_delay.c>
DelayEngine on
</IfModule>

<IfModule mod_ctrls.c>
ControlsEngine        off
ControlsMaxClients    2
ControlsLog           /var/log/proftpd/controls.log
ControlsInterval      5
ControlsSocket        /var/run/proftpd/proftpd.sock
</IfModule>
# Include other custom configuration files
Include /etc/proftpd/conf.d/


<Directory /home/serveur/SCAN>
Umask 022 022http://debian-facile.org/help.php#smilies
AllowOverwrite off
        <Limit MKD STOR DELE XMKD RNRF RNTO RMD XRMD>
        DenyAll
        </Limit>
</Directory>
 



j'ai creer un user epsonftp

useradd epsonftp -p monpass -d /home/serveur/SCAN -s /bin/false



passwd epsonftp



chmod 777 /home/serveur/SCAN



/etc/init.d/proftpd restart

Hors ligne

#2 21-12-2014 09:12:04

paskal
autobahn
Lieu : ailleurs
Inscription : 14-06-2011
Site Web

Re : Configuration proftrp

Bonjour,

justclo a écrit :

rien y fait pas de connection avec epsonftp

Peux-tu préciser comment tu tentes de t'y connecter ?


I'd love to change the world
But I don't know what to do
So I'll leave it up to you...

logo-sur-fond.png

Hors ligne

#3 21-12-2014 10:15:37

justclo
Membre
Inscription : 19-10-2012

Re : Configuration proftrp

Bonjour, j'utlise nautilus et son outil de connection ou Gftp par exemple
le Hote: monsite.hd.free.fr
port: 23456 car j'ai router le 21 vers ce port
utilsateur : epsonftp
mot de passe : le mot de passe

J'ai un acces ssh sur ce serveur qui heberge le ftp, mais l'imprimante ne gere que le ftp.

Hors ligne

#4 21-12-2014 10:18:08

paskal
autobahn
Lieu : ailleurs
Inscription : 14-06-2011
Site Web

Re : Configuration proftrp

Je n'y connais pas grand chose mais l'adresse IP de l'imprimante est-elle correctement configurée ?

I'd love to change the world
But I don't know what to do
So I'll leave it up to you...

logo-sur-fond.png

Hors ligne

#5 21-12-2014 17:25:47

justclo
Membre
Inscription : 19-10-2012

Re : Configuration proftrp

Ce n'ai pas neccessaire de configurer cette ip, ce n'est pas pour avoir accès a l'imptimante via internet, Mais l'imprimante a une foncton scanner et elle peut envoyer le fichier sur un serveur plutot qu'un support usb par exemple..
C'est donc l'imprimante qui expedie le scan vers un serveur ftp, mais au préalable je fait des tests de connexion avec nautilus ou Gftp.

Dernière modification par justclo (21-12-2014 17:26:31)

Hors ligne

#6 21-12-2014 17:30:44

paskal
autobahn
Lieu : ailleurs
Inscription : 14-06-2011
Site Web

Re : Configuration proftrp

Ah ok.
Donc, sur l'imprimante, tu indiques l'IP de la machine sur laquelle tourne le serveur FTP ?

I'd love to change the world
But I don't know what to do
So I'll leave it up to you...

logo-sur-fond.png

Hors ligne

#7 21-12-2014 18:22:43

justclo
Membre
Inscription : 19-10-2012

Re : Configuration proftrp

Oui tout a fait, mais on peut le faire en ftp ou samba je crois. et usb en local bien entendu.

Hors ligne

Pied de page des forums