Καλημέρα σας, έχω στήσει σε ubuntu Server 18.04 proftpd έχω δημιουργήσει το folder του domain στο www έχω πει ότι ο χρήστης που θέλω θα έχει τα δικαιώματα chown user:user /var/www/mydomain. Όμως ενώ συνδέομαι κανονικά μου βγάζει error reading list. Παραθέτω το configuration του proftpd για να μου πείτε αν έχω κάνει κάποιο λάθος
Κώδικας:# 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 9000 # 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 # This is useful for masquerading address with dynamic IPs: # refresh any configured MasqueradeAddress directives every 8 hours <IfModule mod_dynmasq.c> # DynMasqRefresh 28800 </IfModule> # 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 proftpd Group nogroup # Umask 022 is a good standard umask to prevent new files and dirs # (second parm) from being group and world writable. Umask 022 022 # Normally, we want files to be overwriteable. AllowOverwrite on # Uncomment this if you are using NIS or LDAP via NSS to retrieve passwords: # PersistentPasswd off # This is required to use both PAM-based authentication and local passwords AuthOrder mod_auth_pam.c* mod_auth_unix.c # 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> <IfModule mod_ctrls_admin.c> AdminControlsEngine off </IfModule> # # Alternative authentication frameworks # #Include /etc/proftpd/ldap.conf #Include /etc/proftpd/sql.conf # # This is used for FTPS connections # Include /etc/proftpd/tls.conf # # Useful to keep VirtualHost/VirtualRoot directives separated # #Include /etc/proftpd/virtuals.conf # A basic anonymous configuration, no upload directories. # <Anonymous ~ftp> # User ftp # Group nogroup # # We want clients to be able to login with "anonymous" as well as "ftp" # UserAlias anonymous ftp # # Cosmetic changes, all files belongs to ftp user # DirFakeUser on ftp # DirFakeGroup on ftp # RequireValidShell off # # # Limit the maximum number of anonymous logins # MaxClients 10 # # # We want 'welcome.msg' displayed at login, and '.message' displayed # # in each newly chdired directory. # DisplayLogin welcome.msg # DisplayChdir .message # # # Limit WRITE everywhere in the anonymous chroot # <Directory *> # <Limit WRITE> # DenyAll # </Limit> # </Directory> # # # Uncomment this if you're brave. # # <Directory incoming> # # # Umask 022 is a good standard umask to prevent new files and dirs # # # (second parm) from being group and world writable. # # Umask 022 022 # # <Limit READ WRITE> # # DenyAll # # </Limit> # # <Limit STOR> # # AllowAll # # </Limit> # # </Directory> # # </Anonymous> # Include other custom configuration files Include /etc/proftpd/conf.d/ chrispet babeTUX babeTUX Δημοσιεύσεις: 14 Εγγραφή: 16 Ιούλ 2019, 20:36 Κορυφή Εκτύπωση
Εμφάνιση 1-15 από 37
-
21-08-19, 10:45 proftpd error reading list #1
-
21-08-19, 19:07 Απάντηση: proftpd error reading list #2
η πρώτη γραμμή του conf λεει default root είναι το default home του κάθε χρήστη, δεν έχω "τρέξει" ποτέ proftpd αλλά λογικά δεν πρέπει να του πεις κάπου σε ποιο dir θα κάνεις login? αν παλι αυτό το έχεις ορίσει σε κάποιο conf αρχείο που γίνονται include τότε έλεγξε τα δικαιώματα που έχεις δώσει στο login dir σου.
ακολούθησες κάποιον οδηγό;
συνδέεσαι που; τι βλέπεις;
το log τι σου λέει;
Υ.Γ
γιατί στο /var/www/ το dir σου; (απλή απορία)
-
21-08-19, 19:23 Απάντηση: proftpd error reading list #3
Έχω αλλάξει το home του κάθε χρήστη. Όλα τα tutorial που υπάρχουν δείχνουν ότι έπρεπε να παίζει με αυτό το config. Τα log είναι καθαρά! Χωρίς κανένα πρόβλημα. Δείχνει και την σύνδεση και την αποσύνδεση. Εφόσον είναι Web Server έχω άλλη επιλογή εκτός από το var/www/ βάση του apache?
-
21-08-19, 20:05 Απάντηση: proftpd error reading list #4
Ftp server είναι όχι http server.
Άσε που και για τον apache όπου θες βάζεις τα αρχεία σου.
Έχεις dir /home/user? Αν δεν έχεις φτιάξε για δοκιμή. Επίσης δες αν έχεις read δικαιώματα στο dir σου. Με τι συνδέεται? browser?
-
21-08-19, 20:36 Απάντηση: proftpd error reading list #5
Όσο αναφορά το var/www/ είναι το web root μου. Δεν έμπλεξα τον ftp με τον apache. Δοκίμασα να δώσω και 775 στο φάκελο μήπως δουλέψει αλλά δεν
-
21-08-19, 21:47 Απάντηση: proftpd error reading list #6
όπως σου είπα πριν, δεν έχω τρέξει ποτέ proftpd, οπότε πιθανόν κάτι δεν καταλαβαίνω. Εγώ αυτό που βλέπω είναι ότι προσπαθείς να εμφανίσεις τα περιεχόμενα του dir /var/www/mydomain στον ftp server σου, επίσης στην port 9000 αντί της 21. Πρόβλημα με ip tables δεν έχεις αφού τα log σου είναι εντάξει οπότε μην σε κουράζω αλλο. Καλή τυχη
Υ.Γ δεν χάνεις κάτι να δοκιμάζεις κάποιον άλλον server?
-
21-08-19, 21:53 Απάντηση: proftpd error reading list #7
Ποιον ftp θα πρότεινες εσύ;
-
21-08-19, 22:05 Απάντηση: proftpd error reading list #8
Vsftpd δεν είχα προβλήματα, αλλά τον χρησιμοποίησα ελάχιστα για τεστ βασικά και συνδεθηκα να προγραμματιστικά με java
-
21-08-19, 22:05 Απάντηση: proftpd error reading list #9
-
21-08-19, 22:14 Απάντηση: proftpd error reading list #10
Σε αυτόν έχω 500 oops: vsftpd: refusing to run with writable root inside chroot()
-
21-08-19, 22:23 Απάντηση: proftpd error reading list #11
Googlαρε το error, θα βρεις λύση για τον vsftp
-
21-08-19, 22:25 Απάντηση: proftpd error reading list #12
Απο το shell θα το τρέξεις.
-
21-08-19, 22:30 Απάντηση: proftpd error reading list #13
Το έχω googlαρει και δεν έχω βρει τίποτα που να λύνει το θέμα. Γενικά τα tutorial είναι ότι να ναι κανένας δεν εξηγεί τίποτα.
-
22-08-19, 08:22 Απάντηση: proftpd error reading list #14
Καλημέρα https://www.digitalocean.com/communi...n-ubuntu-18-04
αυτό ακολουθησα και δεν είχα θέμα. Αν θες σου στέλνω το conf μου αλλά δεν έχει κάτι ιδιαίτερο, απλά εγώ είχα χρειαστεί να "ανοίξω" τα passive ports στο ufw (ip tables)
Δες μήπως το φτιάξεις με την βοήθεια του famous-walker.
Καλημέρα και πάλι
-
22-08-19, 10:43 Απάντηση: proftpd error reading list #15
Καλημέρα πηγαίνω βάση αυτού που είναι πιο κατανοητά τα πάντα και αναλυτικά! όμως έχω πάλι το error. Πέρα από τις 20,21 και 990 που θέλουν άνοιγμα υπάρχει κάποιο προαπαιτούμενο που δεν αναφέρεται; Παίζει ρόλο που δεν έχω φτιάξει ακόμα κλειδιά για ssh;
- - - Updated - - -
έτρεξα το chmod a-w /var/www/mydomain έφυγε το 500 απλά τώρα δεν βλέπω τα αρχεία μου
Bookmarks