Ciao, volevo chiedere un paio di cosine rigurdo al server proftpd.
MIE ESIGENZE:
- Avrei necessità di assegnare username e passord differenti agli utenti, però che accedono allo stesso hd (esterno) e stessa cartella dove risiedono i files;
- Non devono poter fare upload;
- Non devono poter accedere ad altre cartelle se non alla cartella primaria e sottocartelle che ho assegnato.
- Più utenti possono scaricare lo stesso file contemporaneamente.
PROBLEMI RISCONTRATI:
Allora tutto questo è già attivo sul mio sistema, però ho notato che quando accendo il computer, nella maschera di login (per accedere a kde) mi appaiono i "commenti" degli user che ho creato per il server ftp, del tipo "No value has been set".
Credo di aver impostato male qualcosa e soprattutto non so se sono stata cauta nelle impostazioni. Vi posto il mio file di configurazione:
DOMANDE:
- Non ci sono utenti/password abilitati ad accedere al servizio per default vero ?
- Qual'è il cmd che devo dare per vedere chi è collegato in un determinato momento e vedere i cmd che ha dato?
- E' possibile realizzare uno script che ti avvisa quando un utente si collega al server e registra direttamente su files le attività?
----------------------------------proftd.conf---------------------------
ServerType standalone
DefaultServer on
Umask 022
ServerName "127.0.0.1"
ServerIdent on "My FTP Server"
ServerAdmin MIA EMAIL
IdentLookups off
UseReverseDNS off
Port 21
PassivePorts 49152 65534
#MasqueradeAddress None
TimesGMT off
MaxInstances 30
MaxLoginAttempts 3
TimeoutLogin 300
TimeoutNoTransfer 120
TimeoutIdle 120
DisplayLogin welcome.msg
DisplayChdir .message
User nobody
Group nobody
DirFakeUser off nobody
DirFakeGroup off nobody
DefaultTransferMode binary
AllowForeignAddress off
AllowRetrieveRestart on
AllowStoreRestart on
DeleteAbortedStores off
TransferRate RETR 220
TransferRate STOR 250
TransferRate STOU 250
TransferRate APPE 250
SystemLog /var/log/secure
RequireValidShell off
<IfModule mod_tls.c>
TLSEngine off
TLSRequired off
TLSVerifyClient off
TLSProtocol SSLv23
TLSLog /var/log/proftpd_tls.log
TLSRSACertificateFile /etc/gadmin-proftpd/certs/cert.pem
TLSRSACertificateKeyFile /etc/gadmin-proftpd/certs/key.pem
TLSCACertificateFile /etc/gadmin-proftpd/certs/cacert.pem
TLSRenegotiate required off
</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 amica1
AllowUser amica2
AllowUser amica3
DenyALL
</Limit>
<Anonymous /mnt/dati/SERVER_FTP>
User amica1
Group kartika ------------->>ATTENZIONE QUESTO E' DI SISTEMA
AnonRequirePassword on
MaxClients 5 "The server is full, hosting %m users"
DisplayLogin welcome.msg
<Limit LOGIN>
Allow from all
Deny from all
</Limit>
<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>
</Anonymous>
<Anonymous /mnt/dati/SERVER_FTP>
User amica2
Group kartika ------------->>ATTENZIONE QUESTO E' DI SISTEMA
AnonRequirePassword on
MaxClients 5 "The server is full, hosting %m users"
DisplayLogin welcome.msg
<Limit LOGIN>
Allow from all
Deny from all
</Limit>
<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>
</Anonymous>
<Anonymous /mnt/dati/SERVER_FTP>
User amica3
Group kartika ------------->>ATTENZIONE QUESTO E' DI SISTEMA
AnonRequirePassword on
MaxClients 5 "The server is full, hosting %m users"
DisplayLogin welcome.msg
<Limit LOGIN>
Allow from all
Deny from all
</Limit>
<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>
</Anonymous>
-----------------------------FINE proftd.conf---------------------------
Grazie
Utilizzo Mandriva 2009.0 2.6.27 kde.4.1.2.
Ciao
Posso solo risponderti su di un punto.
Per avere utenti che non vengono visualizzati da KDM devi crearli con un UID ed un GID inferiore a 500.
Se usi il centro di controllo ricordati di rimuovere il filtro utenti di sistema altrimenti non vedi questi utenti, ricordati anche di creare il gruppo manualmente dato che altrimenti vengono assegnati al gruppo user o ad un gruppo > di 500 cosa pessima.
Ciao Ciao, Moreno
Addio, e grazie per tutto il pesce.
Avatar by moonlight-dream.