ZioGeek Forum  

Torna Indietro   ZioGeek Forum > Alta definizione e Multimedia > Medley HMR Unofficial - Generale > Database Guide e Software

Ultimi post su Ziogeek
Microsoft Presenta IE 11 E WebGL Su Vine
Samsung Galaxy S4 Raggiunge 10 Milioni Di Unità Spedite
Hitachi Presenta Hard Disk Da 2.5 Pollici Da 1.5 TB
Xbox One VS PlayStation 4
YouTube: 100 Ore Di Video Caricate Ogni Minuto
Internet Lento? Sei Più Produttivo
Xbox One: Tutte Le Novità E Data Di Rilascio
Flickr Si Rinnova Ed Offre 1TB Di Spazio
Rispondi
 
LinkBack Strumenti Discussione Modalità Visualizzazione
Vecchio 11-12-08, 13:31   #1 (permalink)
Junior Geek
 

Data Registrazione: Dec 2008
Messaggi: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Predefinito FTP server : accessi in scrittura

Ciao
ho montato l'ftp server
ma la folder fat32 è in modalità scrittura/lettura
la folder ntfs è solo lettura

si può rendere il folder nts lettura e scrittura ?

grazie
Paolo
paoasp è offline   Rispondi Citando
Vecchio 11-12-08, 15:05   #2 (permalink)
Geek
 

Data Registrazione: Nov 2008
Messaggi: 99
Thanks: 0
Thanked 3 Times in 2 Posts
Predefinito

puoi avere fat32 e ntfs in tettura e scrittura con samba e NDAS
silvano è offline   Rispondi Citando
Vecchio 11-12-08, 15:37   #3 (permalink)
Senior Geek
 
Breakout Champion! Gandys Quest Champion! Mad Shark Champion! Plankton`s Revenge Pinball Champion!
Tournaments Won: 2

Data Registrazione: Nov 2008
Messaggi: 3.106
Thanks: 38
Thanked 59 Times in 44 Posts
Invia un messaggio via MSN a tuxmax
Thumbs up

Citazione:
Originariamente inviato da paoasp Visualizza Messaggio
Ciao
ho montato l'ftp server
ma la folder fat32 è in modalità scrittura/lettura
la folder ntfs è solo lettura

si può rendere il folder nts lettura e scrittura ?

grazie
Paolo
Ciao e benvenuto, ci farebbe piacere se ti presentassi nella sezione apposita...
Comunque la tua domanda è stata già postata, basta usare la funzione di ricerca.

Salutoni
tuxmax è offline   Rispondi Citando
Vecchio 11-12-08, 16:58   #4 (permalink)
Junior Geek
 

Data Registrazione: Dec 2008
Messaggi: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Predefinito

ciao
presentato
scusami ma sto al lavoro così non avevo tantissimo tempo per presentarmi
così lo avrei fatto dopo

Per il posto
l'unico che ho trovato è questo
[Only registered and activated users can see links. ]

ma non mi sembra che parla della stessa cosa
esiste un altro topic?
forse non sono così bravo con la ricerca
paoasp è offline   Rispondi Citando
Vecchio 11-12-08, 17:32   #5 (permalink)
Senior Geek
 
Breakout Champion! Gandys Quest Champion! Mad Shark Champion! Plankton`s Revenge Pinball Champion!
Tournaments Won: 2

Data Registrazione: Nov 2008
Messaggi: 3.106
Thanks: 38
Thanked 59 Times in 44 Posts
Invia un messaggio via MSN a tuxmax
Thumbs up

Citazione:
Originariamente inviato da paoasp Visualizza Messaggio
ciao
presentato
scusami ma sto al lavoro così non avevo tantissimo tempo per presentarmi
così lo avrei fatto dopo
Ci mancherebbe figurati...il mio non era un ordine!
Citazione:
Originariamente inviato da paoasp
Per il posto
l'unico che ho trovato è questo
[Only registered and activated users can see links. ]

ma non mi sembra che parla della stessa cosa
esiste un altro topic?
forse non sono così bravo con la ricerca
Non è un problema nemmeno questo ...solo che adesso, siccome stiamo diventando in tanti (grazie a voi!), i post stanno iniziando ad essere molti.
Comunque prova con questo:
[Only registered and activated users can see links. ]
dovresti trovare qualche risposta.


Salutoni e grazie di essere con noi...
tuxmax è offline   Rispondi Citando
Vecchio 25-01-09, 19:26   #6 (permalink)
Senior Geek
 

Data Registrazione: Dec 2008
Località: Udine
Messaggi: 1.703
Thanks: 5
Thanked 10 Times in 9 Posts
Invia un messaggio tramite Skype™ a petrik1970
Predefinito

ci sono 2 file dedicati alla configurazione del ftp auth.conf e bftpd.conf mentre sul primo si mettono gli utenti e pass nel secondo ci deve essere qualcosa che da l'errore di scrittura ... forse
petrik1970 è offline   Rispondi Citando
Vecchio 25-01-09, 23:21   #7 (permalink)
Junior Geek
 

Data Registrazione: Jan 2009
Messaggi: 24
Thanks: 0
Thanked 0 Times in 0 Posts
Predefinito

Come dicevamo nell'altro topic:
Nel file bftpd.conf (all'interno della cartella di installazione del servizio FTP) ho trovato nella sezione generale:

#With the option ALLOWCOMMAND_XXXX, you can disable the command XXXX.
#For example, if you don't want any user to delete files, you can do
#ALLOWCOMMAND_DELE="no"
#Of course, you can disable it for specific users by writing the appropiate
#lines into the user structures.
ALLOWCOMMAND_DELE="no"
ALLOWCOMMAND_STOR="no"
ALLOWCOMMAND_SITE="no"
ALLOWCOMMAND_RETR="yes"

mentre per i singoli utenti:

user anonymous {
#If the client wants anonymous, medley is taken instead.
ALIAS="medley"
}

user medley-root {
DO_CHROOT="no"
ALLOWCOMMAND_DELE="yes"
ALLOWCOMMAND_STOR="yes"
ALLOWCOMMAND_SITE="yes"
}

Ho provato a modificare in questo modo:

#With the option ALLOWCOMMAND_XXXX, you can disable the command XXXX.
#For example, if you don't want any user to delete files, you can do
#ALLOWCOMMAND_DELE="no"
#Of course, you can disable it for specific users by writing the appropiate
#lines into the user structures.
ALLOWCOMMAND_DELE="yes"
ALLOWCOMMAND_STOR="yes"
ALLOWCOMMAND_SITE="no"
ALLOWCOMMAND_RETR="yes"

user medley {
ALLOWCOMMAND_DELE="no"
ALLOWCOMMAND_STOR="no"
ALLOWCOMMAND_SITE="yes"
}

user medley-root {
DO_CHROOT="no"
}

e ho notato che ora sia l'utente "medley-root" che l'utente "medley" possono scrivere e cancellare. E' come se il server FTP ignorasse le impostazioni date nella sezione "user" dei singoli utenti...

I gruppi di appartenenza degli utenti sembrano essere corretti nel file auth.
Albert è offline   Rispondi Citando
Vecchio 25-01-09, 23:23   #8 (permalink)
Senior Geek
 

Data Registrazione: Dec 2008
Località: Udine
Messaggi: 1.703
Thanks: 5
Thanked 10 Times in 9 Posts
Invia un messaggio tramite Skype™ a petrik1970
Predefinito

ce un qualcosa nel file di configurazione bftpd.conf che nn mi convince

PATH_FTPUSERS="/tmp/hddmedia/HDD1[FAT32]/System/bftpd-new/ftpusers"


buon lavoro

Ultima modifica di petrik1970; 28-01-09 alle 10:28 Motivo: aggiornamento topic
petrik1970 è offline   Rispondi Citando
Vecchio 25-01-09, 23:25   #9 (permalink)
Junior Geek
 

Data Registrazione: Jan 2009
Messaggi: 24
Thanks: 0
Thanked 0 Times in 0 Posts
Predefinito

Citazione:
Originariamente inviato da petrik1970 Visualizza Messaggio
ce un qualcosa nel file di configurazione bftpd.conf che nn mi convince

PATH_FTPUSERS="/tmp/hddmedia/HDD1[FAT32]/System/bftpd-new/ftpusers"

fa riferimento a qualcosa che non c'e' ...

buon lavoro
Quello era un riferimento "fittizio" che ho corretto con una modifica suggerita da themask al file /etc/profile:

if [ -e /tmp/hddmedia ]
then rm /tmp/hddmedia
fi
ln -s /usr/local/etc/hdd/volumes /tmp/hddmedia

il puntamento così dovrebbe essere corretto.
Albert è offline   Rispondi Citando
Vecchio 26-01-09, 20:07   #10 (permalink)
Senior Geek
 

Data Registrazione: Dec 2008
Località: Udine
Messaggi: 1.703
Thanks: 5
Thanked 10 Times in 9 Posts
Invia un messaggio tramite Skype™ a petrik1970
Lightbulb Sbloccare in scrittura Ftp

Finalmente ho sbloccato la scrittura di un fie in ftp
provo e poi poso tutto
petrik1970 è offline   Rispondi Citando
Vecchio 26-01-09, 20:28   #11 (permalink)
Senior Geek
 

Data Registrazione: Dec 2008
Località: Udine
Messaggi: 1.703
Thanks: 5
Thanked 10 Times in 9 Posts
Invia un messaggio tramite Skype™ a petrik1970
Predefinito

allora il percorso

/tmp/hdd/volumes/HDD1/System/bftpd-new/


il file e'


bftpd.conf

aprendolo con vi dovremo modificare le sritte in rosso


#With the option ALLOWCOMMAND_XXXX, you can disable the command XXXX.
#For example, if you don't want any user to delete files, you can do
#ALLOWCOMMAND_DELE="no"
#Of course, you can disable it for specific users by writing the appropiate
#lines into the user structures.
ALLOWCOMMAND_DELE="no"
ALLOWCOMMAND_STOR="no"
ALLOWCOMMAND_SITE="no"
ALLOWCOMMAND_RETR="yes"


#Files that belong to these groups (comma-separated) are hidden in LIST/NLST.
HIDE_GROUP=""


#What message should be used as reply for the QUIT command?
QUIT_MSG="A presto...."


secondo quello che vorremmo abilitare dobbiamo mettere yes o no

queste modifiche riguardano le impostazioni globali

nelle ultime righe
invece troveremo le impostazioni per utente



user ftp {
#Any password fits.
ANONYMOUS_USER="yes"
}


user anonymous {
#If the client wants anonymous, medley is taken instead.
ALIAS="medley"
}


user medley {
DO_CHROOT="no"
ALLOWCOMMAND_DELE="yes"
ALLOWCOMMAND_STOR="yes"
ALLOWCOMMAND_SITE="yes"
}


user root {
DO_CHROOT="no"
ALLOWCOMMAND_DELE="no"
ALLOWCOMMAND_STOR="no"
ALLOWCOMMAND_SITE="yes"
}

queste righe dovrebbero riguardare le impostazioni per utente ma devo ancora provarle

ciao buonlavoro a tutti
petrik1970 è offline   Rispondi Citando
Vecchio 26-01-09, 21:20   #12 (permalink)
Senior Geek
 

Data Registrazione: Dec 2008
Località: Udine
Messaggi: 1.703
Thanks: 5
Thanked 10 Times in 9 Posts
Invia un messaggio tramite Skype™ a petrik1970
Predefinito

Citazione:
Originariamente inviato da themask Visualizza Messaggio
Bravo Petrik. Visto che ci stai lavorando sopra ti passo un altro punto dolente dell'FTP

Il fatto di avere uno user di basso livello (medley) senza i permessi in scrittura verrebbe comodo per rendere pubblico l'FTP server.

Purtroppo questo non e' ancora possibile, in quanto nel percorso di esplorazione di FTP c'e' anche il file auth.conf che come ben sai contiene gli user e le password di accesso, e pertanto puo' tranquillamente essere letto dallo user di basso livello per carpire user e password dell'utenza privilegiata (medley-root) .

Per ovviare a questo incredibile baco, occorrerebbe modificare il file di configurazione e quello degli user/password in modo che il percorso ftp non inizi piu' da /usr/local/etc/hdd/volumes ma da /usr/local/etc/hdd/volumes/HDD1/Pubblic
(dopo aver opportunamento creato la cartella Pubblic)

Da /usr/local/etc/hdd/volumes/HDD1 andrebbe spostato tutto il contenuto che si vuole rendere pubblico nella nuova cartella ceata Pubblic

Facendo un listato della dir dovresti cosi' trovarti:
/usr/local/etc/hdd/volumes/HDD1 # ls -la
drwxr-xr-x 9 root root 32768 Jan 24 16:54 .
drwxr-xr-x 4 root root 0 Jan 20 23:46 ..
drwxr-xr-x 3 root root 32768 Jan 20 23:48 Applications
drwxr-xr-x 2 root root 32768 Jan 18 01:07 DOWNLOADS
drwxr-xr-x 2 root root 32768 Dec 28 18:51 Pubblic
drwxr-xr-x 5 root root 32768 Jan 24 23:39 System
drwxr-xr-x 2 root root 32768 Jan 18 01:07 TORRENTS
drwxr-xr-x 3 root root 32768 Jan 18 01:21 samba

Con questo percorso, poiche' le utenze FTP non sono in grado di risalire di un livello, il file auth.conf rimarrebbe al sicuro.

Il massimo sarebbe assegnare due percorsi FTP in base all'utenza:
lasciare /usr/local/etc/hdd/volumes per l'utenza privilegiata e /usr/local/etc/hdd/volumes/HDD1/Pubblic per l'utenza di basso livello. Ma questo e' gia molto piu' difficile, sarebbe gia' un successo fissare il nuovo percorso.

Fammi sapere cosa ne pensi e se hai voglia di occuparti di questo problema.

Ciao
allora i vari percorsi li puoi gia' modificare nel file auth.conf

guarda il mio

/tmp/hdd/volumes/HDD1/System/bftpd-new # cat auth.conf
user1 pass1 root /
user2 pass3 users /usr/local/etc/hdd/volumes/
user3 pass3 users /usr/local/etc/hdd/volumes/HDD1/
/tmp/hdd/volumes/HDD1/System/bftpd-new #

l'user 1 vede tutto

l'user 2 vede da volumes in poi

l'user 3 vede da hdd1 in poi

quello che non mi va sono i permessi ma ci studiero

preparati che dopo devi mettere tutto in pstartplus o ......

Ultima modifica di petrik1970; 26-01-09 alle 21:48
petrik1970 è offline   Rispondi Citando
Vecchio 26-01-09, 21:21   #13 (permalink)
Senior Geek
 

Data Registrazione: Dec 2008
Località: Udine
Messaggi: 1.703
Thanks: 5
Thanked 10 Times in 9 Posts
Invia un messaggio tramite Skype™ a petrik1970
Predefinito

Citazione:
Originariamente inviato da themask Visualizza Messaggio
Queste ultime righe non funzionano...
Ciao

lo so ci sto lavorando
petrik1970 è offline   Rispondi Citando
Vecchio 27-01-09, 17:21   #14 (permalink)
Junior Geek
 

Data Registrazione: Jan 2009
Messaggi: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Predefinito

Citazione:
Originariamente inviato da Albert Visualizza Messaggio
Come dicevamo nell'altro topic:
Nel file bftpd.conf (all'interno della cartella di installazione del servizio FTP) ho trovato nella sezione generale:

#With the option ALLOWCOMMAND_XXXX, you can disable the command XXXX.
#For example, if you don't want any user to delete files, you can do
#ALLOWCOMMAND_DELE="no"
#Of course, you can disable it for specific users by writing the appropiate
#lines into the user structures.
ALLOWCOMMAND_DELE="no"
ALLOWCOMMAND_STOR="no"
ALLOWCOMMAND_SITE="no"
ALLOWCOMMAND_RETR="yes"

mentre per i singoli utenti:

user anonymous {
#If the client wants anonymous, medley is taken instead.
ALIAS="medley"
}

user medley-root {
DO_CHROOT="no"
ALLOWCOMMAND_DELE="yes"
ALLOWCOMMAND_STOR="yes"
ALLOWCOMMAND_SITE="yes"
}

Ho provato a modificare in questo modo:

#With the option ALLOWCOMMAND_XXXX, you can disable the command XXXX.
#For example, if you don't want any user to delete files, you can do
#ALLOWCOMMAND_DELE="no"
#Of course, you can disable it for specific users by writing the appropiate
#lines into the user structures.
ALLOWCOMMAND_DELE="yes"
ALLOWCOMMAND_STOR="yes"
ALLOWCOMMAND_SITE="no"
ALLOWCOMMAND_RETR="yes"

user medley {
ALLOWCOMMAND_DELE="no"
ALLOWCOMMAND_STOR="no"
ALLOWCOMMAND_SITE="yes"
}

user medley-root {
DO_CHROOT="no"
}

e ho notato che ora sia l'utente "medley-root" che l'utente "medley" possono scrivere e cancellare. E' come se il server FTP ignorasse le impostazioni date nella sezione "user" dei singoli utenti...

I gruppi di appartenenza degli utenti sembrano essere corretti nel file auth.

Ciao Albert, hai risolto il problema? nemmeno io riesco a dare permessi differenti tra user e root... Fammi sapere, o se qualcuno sa darci la soluzione... Vorrei dare il permesso WRD al root e solo R all'user...
sandro0880 è offline   Rispondi Citando
Vecchio 27-01-09, 18:47   #15 (permalink)
Senior Geek
 

Data Registrazione: Dec 2008
Località: Udine
Messaggi: 1.703
Thanks: 5
Thanked 10 Times in 9 Posts
Invia un messaggio tramite Skype™ a petrik1970
Predefinito

una cosa che non capisco e la diversa configurazione di default del programma [Only registered and activated users can see links. ] sfrutta le autenticazioni di base ma ce qualcosa che hanno fatto quelli della medley che non mi torna
petrik1970 è offline   Rispondi Citando
Vecchio 27-01-09, 18:48   #16 (permalink)
Senior Geek
 

Data Registrazione: Dec 2008
Località: Udine
Messaggi: 1.703
Thanks: 5
Thanked 10 Times in 9 Posts
Invia un messaggio tramite Skype™ a petrik1970
Predefinito

vedete anche qua [Only registered and activated users can see links. ]
petrik1970 è offline   Rispondi Citando
Vecchio 27-01-09, 22:51   #17 (permalink)
Junior Geek
 

Data Registrazione: Jan 2009
Messaggi: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Predefinito

Citazione:
Originariamente inviato da themask Visualizza Messaggio
Queste ultime righe non funzionano...
Ciao

Anche eliminando i permessi principali... continuano a non funzionare...
sandro0880 è offline   Rispondi Citando
Vecchio 27-01-09, 23:29   #18 (permalink)
Senior Geek
 

Data Registrazione: Nov 2008
Messaggi: 174
Thanks: 2
Thanked 0 Times in 0 Posts
Predefinito

C'è modo di trasferire via ftp file enormi ?
Ho provato ad utilizzare questo ftp server per leggere direttamente dalla partizione udf, ma file di 16gb+ non vengono nemmeno visualizzati dal client
[ottengo un errore del genere per ogni file: 213-Error: Value too large for defined data type.]

Need heeeelp!
Grazieee
__________________
Medley HMR-500 Plus
Firmware 2009-02-16 4G-original [the best till now, IMHO]
HDD 500gb Hitachi
(360gb Fat32 + 8gb UDF TimeShift + 110gb UDF DvdRec + 7gb Ext3 debian mipsel playground)


NO PStart/Plus, NDAS or extra-services yet...
... only wondering to get a simple working linux box...
Sci-Fi ?!
Val3r10 è offline   Rispondi Citando
Vecchio 28-01-09, 00:07   #19 (permalink)
Junior Geek
 

Data Registrazione: Jan 2009
Messaggi: 24
Thanks: 0
Thanked 0 Times in 0 Posts
Predefinito

Citazione:
Originariamente inviato da sandro0880 Visualizza Messaggio
Ciao Albert, hai risolto il problema? nemmeno io riesco a dare permessi differenti tra user e root... Fammi sapere, o se qualcuno sa darci la soluzione... Vorrei dare il permesso WRD al root e solo R all'user...
Ci sto lavorando, ma purtroppo in settimana ho poco tempo libero
Nel weekend spero di riuscire a dedicarci un po' più di tempo (e di testa :P).
Albert è offline   Rispondi Citando
Vecchio 28-01-09, 01:28   #20 (permalink)
Senior Geek
 

Data Registrazione: Dec 2008
Località: Udine
Messaggi: 1.703
Thanks: 5
Thanked 10 Times in 9 Posts
Invia un messaggio tramite Skype™ a petrik1970
Predefinito

sono riuscito ad abilitare l'utente principale anche in scrittura ma ora gli utenti secondari non mi vanno piu'

lo scopo e' anche quello di non puntare su HDD1 ma crearci una cartella pubblic dentro, e puntare a seconda dei permessi solo su quella in maniera di non fare andare gli utenti semplici a modificare le cartelle di programma.

in rosso ho segnato le modifiche e i punti che ritengo importanti.



#The port number where the daemon should listen (only for daemon mode)
PORT="21"

#You can force bftpd to use a specific port range in passive mode.
#Passive mode means that the client will open data connections
#and the server stays 'passive'.
#This option can be very useful with some firewall configurations.
#Seperate values with "," and define ranges with "-".
#bftpd will try to bind one of these ports in ascending order as
#you specify them here.
#If none of the given ports could be bound, the connection is
#is refused. If you want to bind any free port in that case, add
#"0" to the list.
#PASSIVE_PORTS="10000,12000-12100,13000"
PASSIVE_PORTS="0"

#If PORT data connections should be opened from port 20, say yes here. You
#will probably need this if your server is behind a firewall that restricts
#outgoing packets from ports higher than 1024. Note that this may be a
#security hole, as the server can not drop its root privileges completely
#if you say yes here.
DATAPORT20="no"

#The password for the administration commands, encrypted (man mkpasswd).
ADMIN_PASS="x"

#With this option, you can put your entire FTP environment into a chroot
#jail. Apart from security, this offers you the possibility of having
#virtual users that don't exist in the system.
#Additionally, you can make some kind of 'file pool' by creating a directory
#with files which you can symlink from the users' homes (this means setting
#DO_CHROOT=no in order for the users to be able to access that dir.
#Note that you need the following files in your initial chroot directory:
#/etc/passwd, /etc/shadow, /etc/group
#On GNU systems, you will also need the NSS libraries in /lib.
#INITIAL_CHROOT="/ftp"

#The bftpdutmp file enables you to record user logins and logouts in
#bftpd, which is useful for the administration interface (which is not
#finished yet). You also need the file to be able to restrict the number
#of users simultaneously logged on, and so on.
#Note that the directory in which the file resides must already exist.
#Set the option to "" if you do not want that. This is discouraged for normal
#use, but can be helpful if you want to create a boot floppy or something.
PATH_BFTPDUTMP="/tmp/hddmedia/HDD1[FAT32]/System/bftpd-new/bftpdutmp"

#This option controls the buffer size while transferring files.
#If you are on a very fast network (fast meaning 100 Mbit/s or more),
#you should set this to 64000 or something like that.
#Transferring from localhost to localhost, I had a transfer speed of
#approx. 15 MB/s with XFER_BUFSIZE=2048 and a speed of approx. 20 MB/s
#with XFER_BUFSIZE=64000. You should not set big values for this if you have
#slow (dialup) clients.
# This option can also be used to (crudely) throttle back
# transfer speeds. Setting this to a very low value
# can slow transfer speeds.
XFER_BUFSIZE="64000"


# This variable controls whether the transfer buffer (see above option)
# should change size as more (or less) clients connect to the server.
# Setting this option to "yes" will put more work on your CPU, but
# will avoid chewing up as much bandwidth as more people connect.
# Setting this option to "no" is easier on the CPU, but may cause
# your bandwidth to spike.
CHANGE_BUFSIZE="no"



# This option allows you to add a delay (in microseconds) to
# the time between when one piece of data was sent
# and when the next will be sent. This is to aid in
# throttling bandwidth and applies to each client. The
# throttling effects the DATA transfers only (not control
# connections).
# A value of zero (0) means there is no added delay.
# A value of about 500000 (five hundred thousand) should
# delay for about half a second.
# These delays should be kept low to avoid triggering
# data transfer timeouts.
XFER_DELAY="0"

# This option determines whether hidden files
# ( files that start with a "." )
# will be shown in a directory listing.
SHOW_HIDDEN_FILES="no"

# This option determines whether files not readable
# to the ftp user will be shown in a directory listing.
SHOW_NONREADABLE_FILES="no"

#When set to yes, this option makes the server allow data connections which
#don't go to the client who initiated them.
#This is needed for FXP.
ALLOW_FXP="no"

#After how many seconds of idle time should a user be kicked from the server?
CONTROL_TIMEOUT="300"

#After how many seconds of idle time should a user be kicked from the server
#during a file transfer?
DATA_TIMEOUT="30"

#Use Ratio if you want the client to send a file before he can get a file.
#Usage: RATIO=send/receive or RATIO=none. Example: RATIO=2/1 lets the client
#receive a 1 MB file when he has sent a 2 MB file.


#ROOTDIR specifies the root directory of the client. It defaults to %h
#(user's home directory). %u is replaced by the user name.
ROOTDIR="/usr/local/etc/hdd/volumes/"

#Umask for the files or directories users create.
UMASK="022"

#Name of the log file. Say "syslog" to log into syslog.
#Say "" for no logging.
LOGFILE="/tmp/hddmedia/HDD1[FAT32]/System/bftpd-new/bftpd.log"

#Use %v for version, %h for the server FQDN and %i for the server IP address.
# Note: If you use the "%h" option and you do an inital CHROOT, then
# you'll need to copy your /etc/hosts and /etc/host.conf files into
# the chroot jail.
HELLO_STRING="CIAO!Benvenuto %u"

#The server automatically chdirs to the directory given here after login.
AUTO_CHDIR="/usr/local/etc/hdd/volumes/HDD1/Public/"

#Authentication type, values: PAM, PASSWD
AUTH="PASSWD"

# The FILE_AUTH varible over-rides the AUTH value. If the FILE_AUTH
# value is set to something other than an empty string ("")
# bftpd will search through the pathname given in order
# to find username/password matches.
# The format of this file is as shown below:
# username password group home_folder
# (for example
# robert secret users /home/robert
# james moose users /mnt/storage
#
# A entry with the password field set to * (star) requires
# no password. Any password the users enters will be accepted.
# The following example is for a user with no password.
# anyone * users /home/ftp
FILE_AUTH="/tmp/hddmedia/HDD1[FAT32]/System/bftpd-new/auth.conf"


#Enable this if you want the client's IP address to be resolved to a host
#name. Note that it increases the overhead and it may not work if your DNS
#is not configured correctly. Clients without a valid DNS name will take very
#long to connect.
RESOLVE_CLIENT_IP="no"

#Path to the message of the day, seen by all users before login.
MOTD_GLOBAL="/tmp/hddmedia/HDD1[FAT32]/System/bftpd-new/ftpmotd"

#Path to the message of the day, seen after login, relative to the root
#path of the user (see ROOTDIR).
# Use symbols %u and %h in place of user's username and home directory.
MOTD_USER="/.ftpmotd"

#If RESOLVE_UIDS is enabled, in directory lists the user and group names
#are shown instead of UID/GID. This may slow down directory listings.
RESOLVE_UIDS="yes"

#If DO_CHROOT is enabled, a user can not access directories other than his
#HOMEDIR and its subdirectories. DON'T disable this globally if you don't
#want to have a security hole!
DO_CHROOT="yes"

#Enable this to log each login to wtmp.
LOG_WTMP="yes"

#If you want bftpd to bind itself to one specific network interface, enter
#its IP address here. Else enter 'any'. This option only works in standalone
#mode.
BIND_TO_ADDR="any"


# This option allows you to over-ride the IP address Bftpd
# sends to the client. This may be useful is you are behind
# a router. If an address is given in this option, it over-rides
# the LAN IP your PC had. It is recommended you leave this option
# commented out unless you have a special setup.
#OVERRIDE_IP="127.0.0.1"


#Path to the ftpusers file. It can contain user names that are denied.
#If it does not exist, every user can log in. If you don't want this,
#just put a nonexistent filename here.
PATH_FTPUSERS="/tmp/hddmedia/HDD1[FAT32]/System/bftpd-new/ftpusers"

#Enable this if you want to deny any user who has a shell which is not in
#/etc/shells.
AUTH_ETCSHELLS="no"

#With the option ALLOWCOMMAND_XXXX, you can disable the command XXXX.
#For example, if you don't want any user to delete files, you can do
#ALLOWCOMMAND_DELE="no"
#Of course, you can disable it for specific users by writing the appropiate
#lines into the user structures.
ALLOWCOMMAND_DELE="no"
ALLOWCOMMAND_STOR="no"
ALLOWCOMMAND_SITE="no"
ALLOWCOMMAND_RETR="yes"


#Files that belong to these groups (comma-separated) are hidden in LIST/NLST.
HIDE_GROUP=""

#What message should be used as reply for the QUIT command?
QUIT_MSG="A presto...."

#The number of users that can be logged in at the same time.
#If set to "0", an unlimited users will be able to connect. This is not
#recommended, as it makes DoS attacks possible, even if the clients are
#kicked after a short time.
USERLIMIT_GLOBAL="0"

#This variable controls how often one user can be logged in at one time.
#This allows you to have a big connection limit (see above) and nevertheless
#prevent single users from having a lot of connections.
#This option may also be useful in a user {} or group {} environment.
USERLIMIT_SINGLEUSER="0"

#This variable controls how many users are allowed to connect from the same IP
#address. This prvents one user (or machine) from taking all of the avail
#connections.
#If you want to allow unlimited connections, leave this option as "0".
USERLIMIT_HOST="0"

#This option allows you to force files to be compressed
#on the fly during upload. A ".gz" extension will be given
#to the file. This should usually be turned off ("no"), but
#may be useful to servers with smaller storage space.
#To enable this option set the value to "yes".
#
# To use this option, bftpd must be configured using
# "./configure --enable-libz" _before_ running "make".
GZ_UPLOAD="no"

#This option allows you to set whether or not files
#with the extension .gz should be uncompressed on-the-fly
#during downloads. This should usually be turned off ("no").
#To enable this feature, set the value to "yes".
#
#To use this option, bftpd must be configured using
# "./configure --enable-libz" _before_ running "make".
GZ_DOWNLOAD="no"

# This option is enabled when the server should run
# a script before writing to the file system. This should
# usually be commented out, unless you need to prepare the
# file system for writing.
# NOTE: Be careful when using this option and the DO_CHROOT option.
# The location of the root directory can change when using DO_CHROOT.
# The current working directory (cwd) is passed to the script you run.
# PRE_WRITE_SCRIPT="/bin/true"

# This option is enabled when the server should run
# a script after writing to the file system. This should
# usually be commented out, unless you need to do something
# to the file system after writing.
# NOTE: Be careful when using this option and the DO_CHROOT option.
# The location of the root directory can change when using DO_CHROOT.
# The current working directory (cwd) is passed to the script you run.
# POST_WRITE_SCRIPT="/bin/false"
}

user ftp {
#Any password fits.
ANONYMOUS_USER="yes"
}

user anonymous {
#If the client wants anonymous, medley is taken instead.
ALIAS="medley"
}

user riki {
DO_CHROOT="no"
ALLOWCOMMAND_DELE="yes"
ALLOWCOMMAND_STOR="yes"
ALLOWCOMMAND_SITE="yes"
}

user miki {
DO_CHROOT="yes"
ALLOWCOMMAND_DELE="no"
ALLOWCOMMAND_STOR="yes"
ALLOWCOMMAND_SITE="yes"
}


il file auth.conf e questo


riki riki root /usr/local/etc/hdd/volumes/HDD1/Public/
miki miki root /usr/local/etc/hdd/volumes/HDD1/Public/
miki2 miki2 root /usr/local/etc/hdd/volumes/HDD1/Public/

ho gia provato sia con root sia con user a me non cambia niente
l'utente riki va gli altri no

buon divertimento

Ultima modifica di petrik1970; 28-01-09 alle 10:32 Motivo: erori battitura ehhh era quasi l'1
petrik1970 è offline   Rispondi Citando
Vecchio 01-02-09, 00:12   #21 (permalink)
Junior Geek
 

Data Registrazione: Jan 2009
Messaggi: 24
Thanks: 0
Thanked 0 Times in 0 Posts
Predefinito

Oggi ha smanettato parecchio con lo scatolotto e nulla di fatto...
La sensazione che ho è che il server FTP ignori le clausole "user" che vengono definite. Una ipotesi che ho fatto è che possa essere dovuto al fatto che si specificano gli utenti nel file auth.conf (e che per qualche motivo, ignori quindi poi le clausole).
Ho anche provato a definire delle clausole di "group" (ho seguito la documentazione dal sito del progetto [Only registered and activated users can see links. ]), ma con i medesimi (purtroppo) scarsi risultati...
Albert è offline   Rispondi Citando
Vecchio 09-02-09, 16:17   #22 (permalink)
Geek
 

Data Registrazione: Feb 2009
Località: Italy
Messaggi: 70
Thanks: 1
Thanked 1 Time in 1 Post
Predefinito

Ciao a tutti... ho seguito la guida per installare il server FTP sul mio Medley Plus che si trova [Only registered and activated users can see links. ]... finita la procedura quando accedo in FTP sul Medley mi chiede UserName e Password.... mettendo accesso anonimo non mi permette di entrare...

Dove ho sbagliato?
Il file [Only registered and activated users can see links. ] l'ho lasciato invariato senza modificarlo... Forse devo fare QLCS li?

La mia versione Firmware é la: 08-02-2009_WindMod2-ntfs-rw
langioletto è offline   Rispondi Citando
Vecchio 09-02-09, 17:12   #23 (permalink)
Geek
 

Data Registrazione: Feb 2009
Località: Italy
Messaggi: 70
Thanks: 1
Thanked 1 Time in 1 Post
Predefinito

Ok, fatto.. Ho fatto tutto con PStart...

A questo punto volevo chiedervi quali sono i comandi per poter cambiare gli user name e password dei seguenti servizi:

Password di root da Telnet:
root

FTP:
ADMINISTRATOR (permessi di lettura su/scrittura):
USER = medley-root
PWD = hmr-500-root

GUEST (permessi di sola lettura):
USER = medley
PWD = hmr-500

CLIENT TORRENT (P2P)
USER = medley
PWD = hmr-500

Quali sono i comandi da telnet per cambiare le seguenti Password?
langioletto è offline   Rispondi Citando
Vecchio 09-02-09, 17:33   #24 (permalink)
Geek
 

Data Registrazione: Feb 2009
Località: Italy
Messaggi: 70
Thanks: 1
Thanked 1 Time in 1 Post
Smile

Scusate mi rispondo da solo...

la password dell'FTP si cambia editanto questo file:
\\xxx.xxx.xxx.xxx\hdd\HDD1[FAT32]\System\bftpd-new\auth.conf

la password del Torrent si cambia editanto questo file:
\\xxx.xxx.xxx.xxx\hdd\HDD1[FAT32]\System\torrent_client\etc

al posto delle xxx.xxx.xxx.xxx logicamente vanno sostituite con l'IP del Medley...

Ora mia manca solo sapere qual'é la riga di comando per cambiare la password di ROOT del telnet...
langioletto è offline   Rispondi Citando
Vecchio 09-02-09, 22:09   #25 (permalink)
Senior Geek
 

Data Registrazione: Dec 2008
Località: Udine
Messaggi: 1.703
Thanks: 5
Thanked 10 Times in 9 Posts
Invia un messaggio tramite Skype™ a petrik1970
Predefinito

Le pass del ftp non funzionano benissimo prima o poi le sistemeremo anche quelle
in caso contrario posate
petrik1970 è offline   Rispondi Citando
Vecchio 09-02-09, 23:30   #26 (permalink)
Geek
 

Data Registrazione: Feb 2009
Località: Italy
Messaggi: 70
Thanks: 1
Thanked 1 Time in 1 Post
Predefinito

Ho visto... sto smanettando con l'ftp. lo installo tramite PStartPlus, accedo tramite FTP alle cartelle del disco con:

User: medley-root
Pass: hmr-500-root

ma praticamente con l'user medley-root che dovrebbe essere sia in lettura che in scrittura funziona solo in lettura..

poi con samba vado a modificare bftpd.conf per cambiare i permessi generali..e a quel punto in FTP non mi fa più accedere con l'user di default

User: medley-root
Pass: hmr-500-root

?????

Sai dirmi il perché??
langioletto è offline   Rispondi Citando
Vecchio 10-02-09, 00:19   #27 (permalink)
Senior Geek
 

Data Registrazione: Dec 2008
Località: Udine
Messaggi: 1.703
Thanks: 5
Thanked 10 Times in 9 Posts
Invia un messaggio tramite Skype™ a petrik1970
Predefinito

ci stiamo lavorando se ti vuoi provare leggi tutto il post e prova

avevamo ottenuto la scrittura modificando
#lines into the user structures.
ALLOWCOMMAND_DELE="no"
ALLOWCOMMAND_STOR="no" in yes
ALLOWCOMMAND_SITE="no"
ALLOWCOMMAND_RETR="yes"


#Files that belong to these groups (comma-separated) are hidden in LIST/NLST.


solo che dopo scrivevano tutti
cia o
petrik1970 è offline   Rispondi Citando
Vecchio 10-02-09, 01:19   #28 (permalink)
Geek
 

Data Registrazione: Feb 2009
Località: Italy
Messaggi: 70
Thanks: 1
Thanked 1 Time in 1 Post
Predefinito

Allora se io modifico il file non mi fa più accedere in FTP.. metto username e passwor giuste non me le accetta... ho letto tutto il post..
langioletto è offline   Rispondi Citando
Vecchio 10-02-09, 08:04   #29 (permalink)
Senior Geek
 

Data Registrazione: Dec 2008
Località: Udine
Messaggi: 1.703
Thanks: 5
Thanked 10 Times in 9 Posts
Invia un messaggio tramite Skype™ a petrik1970
Predefinito

Per modifica no in yes io intendevo così :

#lines into the user structures.
ALLOWCOMMAND_DELE="no"
ALLOWCOMMAND_STOR="yes"
ALLOWCOMMAND_SITE="no"
ALLOWCOMMAND_RETR="yes"


vero che non hai ricopiato alla lettera
petrik1970 è offline   Rispondi Citando
Vecchio 10-02-09, 11:17   #30 (permalink)
Geek
 

Data Registrazione: Feb 2009
Località: Italy
Messaggi: 70
Thanks: 1
Thanked 1 Time in 1 Post
Predefinito

Forse non mi sono spiegato. Se io modifico quel file anche solo se lo apro, cambio una virgola e lo salvo non mi accetta + le password anche se sono giuste!
Non sono cosi inesperto!
Gestisco una rete aziendale con + di 100 PC, 6 server e 40 VPN con hardware Cisco ecc..

Non mi voglio vantare di nulla, é solo per farti capire che un pò di esperienza nel settore ce l'ho..
Ero arrivato anch'io a capire che dovevo modificare le policy di gruppo, che quelle per singolo utente non funzionavano, però se eseguo la modifica non mi fà più entrare..

Se vuoi posso acquisirti un video della procedura...

Ultima modifica di langioletto; 10-02-09 alle 11:36
langioletto è offline   Rispondi Citando
Vecchio 10-02-09, 11:47   #31 (permalink)
Senior Geek
 

Data Registrazione: Dec 2008
Località: Udine
Messaggi: 1.703
Thanks: 5
Thanked 10 Times in 9 Posts
Invia un messaggio tramite Skype™ a petrik1970
Predefinito

Calma non serve scaldarsi ( anche perchè non abbiamo un video forum e non sappiamo chi abbiamo davanti )non era mia intenzione sminuire nessuno ho solo precisato.. anche perchè qua non siamo in guerra stiamo solo cercando di risolvere i problemi comuni tutti assieme ( anche perchè non hai una presentazione in cui descrivi tutto ciò )

comunque lasciando inalterato tutto e modificando solo la riga che ti ho mo mostrato ( piu in caso quella " DELE " ) a me in scrittura funzionava, solo che funzionava per tutti non solo per "root".

Io questa sett. dovrei tempo permettendo riprendere in mano la cosa e in caso se vuoi possiamo provre assieme se troviamouna soluzione.

mi era passato anche per la testa di caricare un installazione pulita quelli di 4... hanno fatto solo casino.

ciao a presto


Per evitare spiacevoli "incidenti " la presentazione nell'apposita sezione e gradita da tutti noi. anche per sapere con chi collaboriamo

Ultima modifica di petrik1970; 10-02-09 alle 11:50
petrik1970 è offline   Rispondi Citando
Vecchio 10-02-09, 13:32   #32 (permalink)
Geek
 

Data Registrazione: Feb 2009
Località: Italy
Messaggi: 70
Thanks: 1
Thanked 1 Time in 1 Post
Predefinito

Figurati, tutto ok.. Riproverò a modificare solo quella riga..

Ma cmq mi sa che é meglio rifare l'installazione pulita, sai, chi fà dà sè fà per tre...

Peccato che non ho conoscenze linux.. altrimenti mi mettevo ai ferri anch'io.. Mi piacerebbe implementare un servizio client emule, cosi finalmente spengo il pc di notte..
langioletto è offline   Rispondi Citando
Vecchio 10-02-09, 14:11   #33 (permalink)
Senior Geek
 

Data Registrazione: Dec 2008
Località: Udine
Messaggi: 1.703
Thanks: 5
Thanked 10 Times in 9 Posts
Invia un messaggio tramite Skype™ a petrik1970
Predefinito

Tranquillo,
per emule penso che non ci entrerà mai, purtroppo lo scatolotto ha risorese troppo limitate
petrik1970 è offline   Rispondi Citando
Vecchio 10-02-09, 14:25   #34 (permalink)
Geek
 

Data Registrazione: Feb 2009
Località: Italy
Messaggi: 70
Thanks: 1
Thanked 1 Time in 1 Post
Predefinito

Cappero.. hai distrutto i miei sogni.. adesso provero il Torrent.. magari faccio una bella migrazione li..

Grazie di tutto, ti faccio sapere per l'FTP...
langioletto è offline   Rispondi Citando
Vecchio 10-02-09, 14:37   #35 (permalink)
Senior Geek
 

Data Registrazione: Dec 2008
Località: Udine
Messaggi: 1.703
Thanks: 5
Thanked 10 Times in 9 Posts
Invia un messaggio tramite Skype™ a petrik1970
Predefinito

Sinceramente mi son trovato meglio ma abbandoniamo l'argomento sai come!! in caso di problemi SOLO CON IL PROGRAMMA chiedi !
petrik1970 è offline   Rispondi Citando
Vecchio 10-02-09, 21:43   #36 (permalink)
Geek
 

Data Registrazione: Feb 2009
Località: Italy
Messaggi: 70
Thanks: 1
Thanked 1 Time in 1 Post
Predefinito

Il PStartPlus non mi installa più i vari servizi, l'ftp, Samba, torrent ecc.. come mai?

Si deve collegare a internet per installare quelle cose? Cmq in tal caso l'accesso é abilitato..
langioletto è offline   Rispondi Citando
Vecchio 10-02-09, 21:48   #37 (permalink)
Senior Geek
 

Data Registrazione: Dec 2008
Località: Udine
Messaggi: 1.703
Thanks: 5
Thanked 10 Times in 9 Posts
Invia un messaggio tramite Skype™ a petrik1970
Predefinito

te li installava prima ? di ?

hai fatto qualcosa ?

sai usare telnet emm si se hai modificato il file ...

prova da root a fare ping [Only registered and activated users can see links. ] e vedi cosa ti dice
petrik1970 è offline   Rispondi Citando
Vecchio 10-02-09, 21:59   #38 (permalink)
Geek
 

Data Registrazione: Feb 2009
Località: Italy
Messaggi: 70
Thanks: 1
Thanked 1 Time in 1 Post
Predefinito

Prima me li installava.. ho smanettato un pò sull'ftp.. poi ho deciso di formattare il disco e di reinstallare il tutto... ma non mi ha installato + nulla.. al ping dice:

/ # ping [Only registered and activated users can see links. ]
No response from [Only registered and activated users can see links. ]
/ #
langioletto è offline   Rispondi Citando
Vecchio 10-02-09, 22:00   #39 (permalink)
Geek
 

Data Registrazione: Feb 2009
Località: Italy
Messaggi: 70
Thanks: 1
Thanked 1 Time in 1 Post
Predefinito

Ho reinstallato anche il firmware...ma niente..
langioletto è offline   Rispondi Citando
Vecchio 10-02-09, 22:02   #40 (permalink)
Senior Geek
 

Data Registrazione: Dec 2008
Località: Udine
Messaggi: 1.703
Thanks: 5
Thanked 10 Times in 9 Posts
Invia un messaggio tramite Skype™ a petrik1970
Predefinito

hai fatto tutta la procedura di adatta fw mi sa che non te la presa prova a vedere se ci sono le cartelle in hdd1 system samba torrent e download
petrik1970 è offline   Rispondi Citando
Rispondi

Strumenti Discussione
Modalità Visualizzazione

Regole di Scrittura
Tu non puoi inviare nuove discussioni
Tu non puoi replicare
Tu non puoi inviare allegati
Tu non puoi modificare i tuoi messaggi

Il codice BB è Attivato
Le faccine sono Attivato
Il codice [IMG] è Attivato
Il codice HTML è Disattivato
Trackbacks are Attivato
Pingbacks are Attivato
Refbacks are Attivato


Discussioni Simili
Discussione Autore Discussione Forum Risposte Ultimo Messaggio
Problemi di scrittura su HD tuxmax Medley HMR Unofficial - Generale 9 09-11-08 17:31


Tutti gli orari sono GMT +3. Adesso sono le 19:12.

Bottom

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Ad Management plugin by RedTyger

Disclaimer/Privacy