Pagina 1 di 1

Proftpd settare user e password

Inviato: mar 21 giu 2005, 16:01
da DarkNeo
Sono riuscito a settare l'user nel file di config /etc/proftpd.conf però ancora non riesco a capire dove mettere la password:
/etc/proftpd.conf
# This is a basic ProFTPD configuration file.
# It establishes a single server and a single anonymous login.
# It assumes that you have a user/group "nobody" and "ftp"
# for normal/anonymous operation.

ServerName "ProFTPD Default Installation"
ServerType standalone
#ServerType inetd
DefaultServer on

# 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 that the server normally runs at.
User nobody
Group nogroup

# This next option is required for NIS or NIS+ to work properly:
#PersistentPasswd off

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

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

# A basic anonymous FTP server configuration.
# To enable this, remove the user ftp from /etc/ftpusers.
<Anonymous ~ftp>
RequireValidShell off
User ftp
Group ftp
# We want clients to be able to login with "anonymous" as well as "ftp"
UserAlias neo ftp
# Limit the maximum number of anonymous logins
MaxClients 50

# We want 'welcome.messaggio' displayed at login, and '.message' displayed
# in each newly chdired directory.
DisplayLogin welcome.messaggio
DisplayFirstChdir .message

# Limit WRITE everywhere in the anonymous chroot
<Limit WRITE>
DenyAll
</Limit>

# An upload directory that allows storing files but not retrieving
# or creating directories.
# <Directory incoming/*>
# <Limit READ>
# DenyAll
# </Limit>
#
# <Limit STOR>
# AllowAll
# </Limit>
# </Directory>

</Anonymous>

Inviato: mar 21 giu 2005, 16:43
da KKKennY
crea l'user con adduser e alla fine c'e' lo step della pwd

Inviato: mar 21 giu 2005, 16:44
da DarkNeo
Cioè io accedo al mio server ftp usando gli utenti che ho tipo root e neo?

Inviato: mar 21 giu 2005, 16:45
da KKKennY
eggia' :)...root comunque e' disabilitato di default

Inviato: mar 21 giu 2005, 17:06
da DarkNeo
:lol: :lol: è andato grazie.
OT faccio un'altra domanda, per resettare la scheda di rete il comando giusto non dovrebbe essere:
ifconfig SIGHUP eth0
?
/OT

Inviato: mar 21 giu 2005, 17:10
da KKKennY
ifconfig eth0 ip (per tirare su l'interfaccia e assgnerle un ip. ip=*.*.*.*)
ifconfig eth0 up (per tirare solo su l'interfaccia)

Inviato: mar 21 giu 2005, 21:25
da Bakkio2
per spegnere la scheda di rete è:
# ifconfig eth0 down

Poi se vuoi abilitare solo alcuni utenti da te creati per l'accesso ftp, mentre altri no, basta usare la rirettiva AllowUser e i nomi degli utenti abilitati.
Comunque per sapere tutti i comandi di proftpd come AllowUser ti consiglio:
http://www.proftpd.org/docs/directives/ ... -name.html
è fatto molto bene, con la spiegazione di ogni singolo comando e fa anche alcuni esempi. Unica pecca..... ...è in inglese!