Ciao a tutti, possiedo un computer su cui ho installato ubuntu server 14.04 e il demone vsftpd e vi accedo principalmente mediante Cyberduck da Mac. Fino ad oggi ha sempre funzionato tutto alla perfezione ma all'improvviso (senza che io modificassi alcunché) non riesco più a scrivere in nessuna cartella del filesystem. Ho provato con altri software, con windows e anche con il terminale ma niente. Dal terminale se provo a creare una cartella in /media mi dice "Couldn't create directory: Permission denied". Da cyberduck ho visto che i permessi di ogni file o cartella sul server sono rwxr-xr-x (755) ma non so se fossero questi anche prima del problema (non sono un esperto di linux). Non sono neanche riuscito ad ottenere un codice di errore quindi non ho potuto fare una ricerca proficua sul web. Spero che qualcuno possa aiutarmi. Grazie.

PS: il file vsftpd.conf è così configurato:

# Example config file /etc/vsftpd.conf
#
# The default compiled in settings are fairly paranoid. This sample file
# loosens things up a bit, to make the ftp daemon more usable.
# Please see vsftpd.conf.5 for all compiled in defaults.
#
# READ THIS: This example file is NOT an exhaustive list of vsftpd options.
# Please read the vsftpd.conf.5 manual page to get a full idea of vsftpd's
# capabilities.
#
#
# Run standalone?  vsftpd can run either from an inetd or as a standalone
# daemon started from an initscript.
listen=YES
#
# Run standalone with IPv6?
# Like the listen parameter, except vsftpd will listen on an IPv6 socket
# instead of an IPv4 one. This parameter and the listen parameter are mutually
# exclusive.
#listen_ipv6=YES
#
# Allow anonymous FTP? (Disabled by default)
anonymous_enable=NO
#
# Uncomment this to allow local users to log in.
local_enable=YES
#
# Uncomment this to enable any form of FTP write command.
write_enable=YES
#
# Default umask for local users is 077. You may wish to change this to 022,
# if your users expect that (022 is used by most other ftpd's)
#local_umask=022
#
# Uncomment this to allow the anonymous FTP user to upload files. This only
# has an effect if the above global write enable is activated. Also, you will
# obviously need to create a directory writable by the FTP user.
#anon_upload_enable=YES
#
# Uncomment this if you want the anonymous FTP user to be able to create
# new directories.
#anon_mkdir_write_enable=YES
#
# Activate directory messages - messages given to remote users when they
# go into a certain directory.
dirmessage_enable=YES
#
# If enabled, vsftpd will display directory listings with the time
# in  your  local  time  zone.  The default is to display GMT. The
# times returned by the MDTM FTP command are also affected by this
# option.
use_localtime=YES
#
# Activate logging of uploads/downloads.
xferlog_enable=YES
#
# Make sure PORT transfer connections originate from port 20 (ftp-data).
connect_from_port_20=YES
#
# If you want, you can arrange for uploaded anonymous files to be owned by
# a different user. Note! Using "root" for uploaded files is not
# recommended!
#chown_uploads=YES
#chown_username=whoever
#
# You may override where the log file goes if you like. The default is shown
# below.
#xferlog_file=/var/log/vsftpd.log
#
# If you want, you can have your log file in standard ftpd xferlog format.
# Note that the default log file location is /var/log/xferlog in this case.
#xferlog_std_format=YES
#
# You may change the default value for timing out an idle session.
#idle_session_timeout=600
#
# You may change the default value for timing out a data connection.
#data_connection_timeout=120
#
# It is recommended that you define on your system a unique user which the
# ftp server can use as a totally isolated and unprivileged user.
#nopriv_user=ftpsecure
#
# Enable this and the server will recognise asynchronous ABOR requests. Not
# recommended for security (the code is non-trivial). Not enabling it,
# however, may confuse older FTP clients.
#async_abor_enable=YES
#
# By default the server will pretend to allow ASCII mode but in fact ignore
# the request. Turn on the below options to have the server actually do ASCII
# mangling on files when in ASCII mode.
# Beware that on some FTP servers, ASCII support allows a denial of service
# attack (DoS) via the command "SIZE /big/file" in ASCII mode. vsftpd
# predicted this attack and has always been safe, reporting the size of the
# raw file.
# ASCII mangling is a horrible feature of the protocol.
#ascii_upload_enable=YES
#ascii_download_enable=YES
#
# You may fully customise the login banner string:
ftpd_banner=Servizio FTP del server di Marco. Attento a dove metti le mani!
#
# You may specify a file of disallowed anonymous e-mail addresses. Apparently
# useful for combatting certain DoS attacks.
#deny_email_enable=YES
# (default follows)
#banned_email_file=/etc/vsftpd.banned_emails
#
# You may restrict local users to their home directories.  See the FAQ for
# the possible risks in this before using chroot_local_user or
# chroot_list_enable below.
#chroot_local_user=YES
#
# You may specify an explicit list of local users to chroot() to their home
# directory. If chroot_local_user is YES, then this list becomes a list of
# users to NOT chroot().
# (Warning! chroot'ing can be very dangerous. If using chroot, make sure that
# the user does not have write access to the top level directory within the
# chroot)
#chroot_local_user=YES
#chroot_list_enable=YES
# (default follows)
#chroot_list_file=/etc/vsftpd.chroot_list
#
# You may activate the "-R" option to the builtin ls. This is disabled by
# default to avoid remote users being able to cause excessive I/O on large
# sites. However, some broken FTP clients such as "ncftp" and "mirror" assume
# the presence of the "-R" option, so there is a strong case for enabling it.
#ls_recurse_enable=YES
#
# Customization
#
# Some of vsftpd's settings don't fit the filesystem layout by
# default.
#
# This option should be the name of a directory which is empty.  Also, the
# directory should not be writable by the ftp user. This directory is used
# as a secure chroot() jail at times vsftpd does not require filesystem
# access.
secure_chroot_dir=/var/run/vsftpd/empty
#
# This string is the name of the PAM service vsftpd will use.
pam_service_name=vsftpd
#
# This option specifies the location of the RSA certificate to use for SSL
# encrypted connections.
rsa_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
# This option specifies the location of the RSA key to use for SSL
# encrypted connections.
rsa_private_key_file=/etc/ssl/private/ssl-cert-snakeoil.key

chiesto 16 Jan '15, 22:49

marcowip's gravatar image

marcowip
20113

Non sono un esperto, ma sei sicuro che la partizione non venga montata read-only all'avvio?

Fagli fare un check della partizione da live.
Suppongo sia ext, quindi con fsck dovresti essere a posto :)

(16 Jan '15, 23:44) dadexix86 ♦♦ dadexix86's gravatar image

ciao e grazie della risposta. La partizione condivisa è quella di sistema quindi non penso che possa essere stata montata in sola scrittura. Oppure ciò è possibile?

(17 Jan '15, 10:36) marcowip marcowip's gravatar image

Sì, in caso di problemi, per sicurezza dei dati, viene montata read-only :)

Controlla, male non fa.

(17 Jan '15, 10:51) dadexix86 ♦♦ dadexix86's gravatar image

fatto, mi da "/dev/sda1: clean, 165340/60940288 files, 76432484/243731712 blocks" Che significa?

(17 Jan '15, 15:07) marcowip marcowip's gravatar image

ho anche provato a disinstallare vsftpd e a reinstallarlo ma il problema permane. Comunque tornando al discorso del fatto che la partizione potesse essere stata montata in sola lettura, non credi che se fosse stato così avrei avuto problemi anche con gli altri servizi del server? (tipo afp con cui faccio i backup del mac, oppure con transmission-daemon con cui scarico i files torrent)

(17 Jan '15, 15:32) marcowip marcowip's gravatar image

Mah, per me questo

non riesco più a scrivere in nessuna cartella del filesystem.

significa che nessun servizio che lanci riesce più a scriverci sopra :S

Se qualcosa riesce a scriverci ti prego di riformulare la domanda più chiaramente spiegando di preciso con cosa riesci a scriverci e con cosa invece no e quali diverse impostazioni usi con i vari programmi con cui riesci a scrivere :)

(17 Jan '15, 21:32) dadexix86 ♦♦ dadexix86's gravatar image

ok scusami se non sono stato chiaro. Allora, sul server ho configurato: - il demone transmission, che funziona a dovere (scarica, quindi scrive), - un servizio afp (netatalk, avahi e non ricordo cos'altro) che uso per condividere la cartella /home/marco in rete per fare in automatico backup incrementali del mac; anche questo funziona alla perfezione (il mac fa i backup, quindi scrive); - ho installato plex media server che uso per riprodurre i filmati sullo smart tv; anche questo funziona bene ma non credo che ciò sia rilevante;

(17 Jan '15, 23:20) marcowip marcowip's gravatar image
  • infine, per la gestione dei file e delle cartelle, per fare upload e download di file su e dal server, ho installato vsftpd, con il quale condivido l'intero filesystem (la directory / per intenderci); praticamente non ho installato altro sul server. IL PROBLEMA: da ieri, non riesco più a effettuare operazioni di scrittura (per esempio creare una nuova cartella, rinominare file, cancellare una cartella) collegandomi mediante sftp (utilizzando qualsiasi mezzo, dai client ftp al terminale). Il problema si presenta indifferentemente in qualsiasi cartella del filesystem. Spero di aver detto tutto
(17 Jan '15, 23:20) marcowip marcowip's gravatar image

Molto meglio, grazie :)

Se non ti spiace io cancellerei un po' dei commenti qui sopra, dato che erano stati generati dal mio non capire la situazione, così che la discussione venga snellita e qualcun altro più competente di me possa darti una mano più efficacemente :)

(17 Jan '15, 23:43) dadexix86 ♦♦ dadexix86's gravatar image

secondo me dovresti cambiare i permessi della tua cartella con chmod -R

coll. permanente

ha risposto 14 Mar '16, 16:06

lubu80's gravatar image

lubu80
10222

La tua risposta
abilita/disabilita anteprima

Segui questa domanda

Via email:

Una volta eseguito l'accesso potrai iscriverti a tutti gli aggiornamenti qui

Via RSS:

Risposte

Risposte e commenti

Basi di markdown

  • *corsivo* o __corsivo__
  • **grassetto** o __grassetto__
  • collegamento:[testo](http://url.com/ "titolo")
  • immagine?![alt testo](/path/img.jpg "titolo")
  • elenco numerato: 1. Foo 2. Bar
  • per aggiungere un'interruzione di riga, aggiungi due spazi a fine riga e premi «Invio»
  • è supportato anche semplice HTML

Tag:

×330
×168
×67
×8

domanda posta: 16 Jan '15, 22:49

domanda visualizzata: 4,053 volte

ultimo aggiornamento: 14 Mar '16, 16:06

Chiedi è un servizio di supporto gestito da Ubuntu-it. Contattaci!

powered by OSQAPostgreSQL database
Ubuntu e Canonical sono marchi registrati da Canonical Ltd.