FTP Willkommens Nachricht
FTP Willkommens Nachricht
Hallo, ich betreibe einen NAS, mit einer (für Beannten User) FTP Verbindung. Ist es eigentlich Möglich das wenn User XY sich auf dem NAS einloggt das er eine Info bekommt?
Bsp.
Es sind derzeitig User auf dem Server
Es sind noch GB Frei
Du befindest dich im Verzeichniss
usw...
PS.
Hatte ich vergessen zu erwähnen, auf dem NAS ist Debian 7.9
Bsp.
Es sind derzeitig User auf dem Server
Es sind noch GB Frei
Du befindest dich im Verzeichniss
usw...
PS.
Hatte ich vergessen zu erwähnen, auf dem NAS ist Debian 7.9
Re: FTP Willkommens Nachricht
Du hast auch vergessen zu erwähnen, welchen ftpd du einsetzt.
Re: FTP Willkommens Nachricht
Ich habe es so, das ich einfach das Debian8 installiert habe. Ich kann dir nicht sagen welches Standard gemäß mitinstalliert wird.
laut bekomme ich das.
laut
Code: Alles auswählen
dpkg -l | grep ftp
Code: Alles auswählen
ii ftp 0.17-27 i386 classical file transfer client
Re: FTP Willkommens Nachricht
Schau’ doch fix mit netstat, was da als ftpd läuft.
Re: FTP Willkommens Nachricht
netstat sagt mir:
netstat
netstat
Code: Alles auswählen
Aktive Internetverbindungen (ohne Server)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 pD9E4B604.dip0.t-:44125 VERBUNDEN
tcp 0 0 pD9E4B604.dip0.t-:52544 VERBUNDEN
Aktive Sockets in der UNIX-Domäne (ohne Server)
Proto RefCnt Flags Type State I-Node Pfad
unix 2 [ ] DGRAM 168040947 /var/spool/postfix/dev/log
unix 11 [ ] DGRAM 168040945 /dev/log
unix 2 [ ] DGRAM 170146886
unix 3 [ ] STREAM VERBUNDEN 170096154
unix 3 [ ] STREAM VERBUNDEN 170096153
unix 2 [ ] DGRAM 170089475
unix 2 [ ] DGRAM 170089465
unix 3 [ ] STREAM VERBUNDEN 170089461
unix 3 [ ] STREAM VERBUNDEN 170089460
unix 3 [ ] STREAM VERBUNDEN 170089457
unix 3 [ ] STREAM VERBUNDEN 170089456
unix 3 [ ] STREAM VERBUNDEN 170089449
unix 3 [ ] STREAM VERBUNDEN 170089448
unix 3 [ ] STREAM VERBUNDEN 170089445
unix 3 [ ] STREAM VERBUNDEN 170089444
unix 3 [ ] STREAM VERBUNDEN 170089441
unix 3 [ ] STREAM VERBUNDEN 170089440
unix 3 [ ] STREAM VERBUNDEN 170089437
unix 3 [ ] STREAM VERBUNDEN 170089436
unix 3 [ ] STREAM VERBUNDEN 170089433
unix 3 [ ] STREAM VERBUNDEN 170089432
unix 3 [ ] STREAM VERBUNDEN 170089429
unix 3 [ ] STREAM VERBUNDEN 170089428
unix 3 [ ] STREAM VERBUNDEN 170089425
unix 3 [ ] STREAM VERBUNDEN 170089424
unix 3 [ ] STREAM VERBUNDEN 170089421
unix 3 [ ] STREAM VERBUNDEN 170089420
unix 3 [ ] STREAM VERBUNDEN 170089417
unix 3 [ ] STREAM VERBUNDEN 170089416
unix 3 [ ] STREAM VERBUNDEN 170089413
unix 3 [ ] STREAM VERBUNDEN 170089412
unix 3 [ ] STREAM VERBUNDEN 170089409
unix 3 [ ] STREAM VERBUNDEN 170089408
unix 3 [ ] STREAM VERBUNDEN 170089405
unix 3 [ ] STREAM VERBUNDEN 170089404
unix 3 [ ] STREAM VERBUNDEN 170089401
unix 3 [ ] STREAM VERBUNDEN 170089400
unix 3 [ ] STREAM VERBUNDEN 170089397
unix 3 [ ] STREAM VERBUNDEN 170089396
unix 3 [ ] STREAM VERBUNDEN 170089393
unix 3 [ ] STREAM VERBUNDEN 170089392
unix 3 [ ] STREAM VERBUNDEN 170089389
unix 3 [ ] STREAM VERBUNDEN 170089388
unix 3 [ ] STREAM VERBUNDEN 170089385
unix 3 [ ] STREAM VERBUNDEN 170089384
unix 3 [ ] STREAM VERBUNDEN 170089381
unix 3 [ ] STREAM VERBUNDEN 170089380
unix 3 [ ] STREAM VERBUNDEN 170089377
unix 3 [ ] STREAM VERBUNDEN 170089376
unix 3 [ ] STREAM VERBUNDEN 170089373
unix 3 [ ] STREAM VERBUNDEN 170089372
unix 3 [ ] STREAM VERBUNDEN 170089369
unix 3 [ ] STREAM VERBUNDEN 170089368
unix 3 [ ] STREAM VERBUNDEN 170089365
unix 3 [ ] STREAM VERBUNDEN 170089364
unix 3 [ ] STREAM VERBUNDEN 170089361
unix 3 [ ] STREAM VERBUNDEN 170089360
unix 3 [ ] STREAM VERBUNDEN 170089357
unix 3 [ ] STREAM VERBUNDEN 170089356
unix 3 [ ] STREAM VERBUNDEN 170089353
unix 3 [ ] STREAM VERBUNDEN 170089352
unix 3 [ ] STREAM VERBUNDEN 170089349
unix 3 [ ] STREAM VERBUNDEN 170089348
unix 3 [ ] STREAM VERBUNDEN 170089345
unix 3 [ ] STREAM VERBUNDEN 170089344
unix 3 [ ] STREAM VERBUNDEN 170089341
unix 3 [ ] STREAM VERBUNDEN 170089340
unix 3 [ ] STREAM VERBUNDEN 170089337
unix 3 [ ] STREAM VERBUNDEN 170089336
unix 3 [ ] STREAM VERBUNDEN 170089334
unix 3 [ ] STREAM VERBUNDEN 170089333
unix 3 [ ] STREAM VERBUNDEN 170089330
unix 3 [ ] STREAM VERBUNDEN 170089329
unix 3 [ ] STREAM VERBUNDEN 170089327
unix 3 [ ] STREAM VERBUNDEN 170089326
unix 2 [ ] DGRAM 170089302
unix 3 [ ] STREAM VERBUNDEN 168341301
unix 3 [ ] STREAM VERBUNDEN 168341300
unix 2 [ ] DGRAM 168292378
unix 3 [ ] STREAM VERBUNDEN 168292189
unix 3 [ ] STREAM VERBUNDEN 168292188
unix 2 [ ] DGRAM 168292183
unix 3 [ ] STREAM VERBUNDEN 168252163
unix 3 [ ] STREAM VERBUNDEN 168252162
unix 2 [ ] DGRAM 168078404
unix 2 [ ] DGRAM 168075623
unix 2 [ ] DGRAM 168058650
unix 3 [ ] STREAM VERBUNDEN 154400631 @/com/ubuntu/upstart
unix 3 [ ] STREAM VERBUNDEN 154400616
unix 3 [ ] DGRAM 154400064
unix 3 [ ] DGRAM 154400063
unix 3 [ ] STREAM VERBUNDEN 154399974 @/com/ubuntu/upstart
unix 3 [ ] STREAM VERBUNDEN 154399963
Re: FTP Willkommens Nachricht
dann das.
Code: Alles auswählen
netstat -tulpenw
Aktive Internetverbindungen (Nur Server)
Proto Recv-Q Send-Q Local Address Foreign Address State User Inode PID/Program name
tcp 0 0 xx.xx.150.63:443 0.0.0.0:* LISTEN 0 169943145 12583/nginx
tcp 0 0 xx.xx.249.1:443 0.0.0.0:* LISTEN 0 169943144 12583/nginx
tcp 0 0 0.0.0.0:8443 0.0.0.0:* LISTEN 0 168252151 31909/sw-cp-serverd
tcp 0 0 0.0.0.0:4190 0.0.0.0:* LISTEN 0 168292192 2543/dovecot
tcp 0 0 127.0.0.1:12768 0.0.0.0:* LISTEN 106 168294277 2563/psa-pc-remote
tcp 0 0 0.0.0.0:993 0.0.0.0:* LISTEN 0 168292254 2543/dovecot
tcp 0 0 0.0.0.0:995 0.0.0.0:* LISTEN 0 168292220 2543/dovecot
tcp 0 0 0.0.0.0:110 0.0.0.0:* LISTEN 0 168292218 2543/dovecot
tcp 0 0 0.0.0.0:143 0.0.0.0:* LISTEN 0 168292252 2543/dovecot
tcp 0 0 xx.xx.150.63:80 0.0.0.0:* LISTEN 0 169943142 12583/nginx
tcp 0 0 xx.xx.249.1:80 0.0.0.0:* LISTEN 0 169943141 12583/nginx
tcp 0 0 0.0.0.0:8880 0.0.0.0:* LISTEN 0 168252152 31909/sw-cp-serverd
tcp 0 0 0.0.0.0:465 0.0.0.0:* LISTEN 0 170089453 14087/master
tcp 0 0 xx.xx.150.63:53 0.0.0.0:* LISTEN 108 168078427 21155/named
tcp 0 0 xx.xx.249.1:53 0.0.0.0:* LISTEN 108 168078425 21155/named
tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 108 168078423 21155/named
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 0 154439164 2122/sshd
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 0 170089323 14087/master
tcp 0 0 127.0.0.1:953 0.0.0.0:* LISTEN 108 168078430 21155/named
tcp6 0 0 2axx:238:430f:8f00::443 :::* LISTEN 0 169943146 12583/nginx
tcp6 0 0 :::8443 :::* LISTEN 0 168252153 31909/sw-cp-serverd
tcp6 0 0 :::4190 :::* LISTEN 0 168292193 2543/dovecot
tcp6 0 0 :::993 :::* LISTEN 0 168292255 2543/dovecot
tcp6 0 0 :::995 :::* LISTEN 0 168292221 2543/dovecot
tcp6 0 0 :::7080 :::* LISTEN 0 170095067 14427/apache2
tcp6 0 0 :::7081 :::* LISTEN 0 170095071 14427/apache2
tcp6 0 0 :::106 :::* LISTEN 0 168058654 9611/xinetd
tcp6 0 0 :::3306 :::* LISTEN 105 167816609 7627/mysqld
tcp6 0 0 :::110 :::* LISTEN 0 168292219 2543/dovecot
tcp6 0 0 :::143 :::* LISTEN 0 168292253 2543/dovecot
tcp6 0 0 2axx:238:430f:8f00:7:80 :::* LISTEN 0 169943143 12583/nginx
tcp6 0 0 :::8880 :::* LISTEN 0 168252154 31909/sw-cp-serverd
tcp6 0 0 :::465 :::* LISTEN 0 170089455 14087/master
tcp6 0 0 :::21 :::* LISTEN 0 168254954 9611/xinetd
tcp6 0 0 :::53 :::* LISTEN 108 168078419 21155/named
tcp6 0 0 :::22 :::* LISTEN 0 154439166 2122/sshd
tcp6 0 0 :::25 :::* LISTEN 0 170089325 14087/master
udp 0 0 xx.xx.150.63:53 0.0.0.0:* 108 168078426 21155/named
udp 0 0 xx.xx.249.1:53 0.0.0.0:* 108 168078424 21155/named
udp 0 0 127.0.0.1:53 0.0.0.0:* 108 168078422 21155/named
udp6 0 0 :::53 :::* 108 168078418 21155/named
Re: FTP Willkommens Nachricht
Mmmh, also der xinetd.Sv3n hat geschrieben:
tcp6 0 0 :::21 :::* LISTEN 0 168254954 9611/xinetd
Müsste dann in /etc/xinetd.conf bzw. unter /etc/xinetd.d/ hinterlegt sein, welcher ftpd aufgerufen wird.
Re: FTP Willkommens Nachricht
Ok. Und wie mache ich das dann mit der Nachricht?
Re: FTP Willkommens Nachricht
Das hängt weiterhin davon ab, welchen ftpd du benutzt. Du könntest nun an den von dufty2 genannten Stellen nachschauen.
Re: FTP Willkommens Nachricht
OK.
An der genannten Stelle von dufty2 habe ich fünf Datei.
- chargen
- daytime
- discard
- echo
- time
Wie gehe ich nun weiter vor?
An der genannten Stelle von dufty2 habe ich fünf Datei.
- chargen
- daytime
- discard
- echo
- time
Wie gehe ich nun weiter vor?
Re: FTP Willkommens Nachricht
Das sind nur die 5 "Standard-Dienste", die per default eh ausgeschalten sind.
Schau mal bitte in die /etc/xinetd.conf
Schau mal bitte in die /etc/xinetd.conf
Re: FTP Willkommens Nachricht
Da habe ich drin stehen:
Aber bitte, was soll ich wo oder wie ändern?
Code: Alles auswählen
# Simple configuration file for xinetd
#
# Some defaults, and include /etc/xinetd.d/
defaults
{
# Please note that you need a log_type line to be able to use log_on_success
# and log_on_failure. The default is the following :
# log_type = SYSLOG daemon info
}
includedir /etc/xinetd.d
Re: FTP Willkommens Nachricht
Ok, das ist die Standard-Konfig und danach würde xinetd gar keinen Dienst starten.
Zuminderst unter IPv4 ist das so.
Aus der Angabe "sw-cp-serverd" entnehme ich, dass Du plesk am Laufen hast und plesk verwendet proftpd,
vgl. auch http://docs.plesk.com/en-US/12.5/advanc ... ftp.68761/
Mmmh, so richtig durchgestiegen bin ich bei Deinem Aufbau noch nicht, einmal ist es "Debian 7.9", dann "Debian8", dann "ubuntu".
Zuminderst unter IPv4 ist das so.
Aus der Angabe "sw-cp-serverd" entnehme ich, dass Du plesk am Laufen hast und plesk verwendet proftpd,
vgl. auch http://docs.plesk.com/en-US/12.5/advanc ... ftp.68761/
Mmmh, so richtig durchgestiegen bin ich bei Deinem Aufbau noch nicht, einmal ist es "Debian 7.9", dann "Debian8", dann "ubuntu".
Re: FTP Willkommens Nachricht
Richtig, ich habe mir vor ein paar Tagen Plesk installiert, was nun auch läuft.
Des weiteren habe ich auf dem Server installiert:
verstehe nicht wie Du auf Ubuntu kommst, aber OK.
Wenn ich nun deinen Link folge, werde ich daraus aber auch nicht schlauer denn die Sachen die dort Beschrieben sind (Datein) habe ich nicht.![Confused :?](./images/smilies/icon_confused.gif)
Nur eine etc/proftpd.conf
Des weiteren habe ich auf dem Server installiert:
Code: Alles auswählen
lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 7.9 (wheezy)
Release: 7.9
Codename: wheezy
![Very Happy :D](./images/smilies/icon_biggrin.gif)
Wenn ich nun deinen Link folge, werde ich daraus aber auch nicht schlauer denn die Sachen die dort Beschrieben sind (Datein) habe ich nicht.
![Confused :?](./images/smilies/icon_confused.gif)
Nur eine etc/proftpd.conf
-
- Beiträge: 5649
- Registriert: 30.12.2004 15:31:07
- Wohnort: Wegberg
Re: FTP Willkommens Nachricht
Hallo
Ev. meinst du da bei proftpd
http://www.proftpd.org/docs/howto/DisplayFiles.html
mfg
schwedenmann
Ev. meinst du da bei proftpd
http://www.proftpd.org/docs/howto/DisplayFiles.html
mfg
schwedenmann
Re: FTP Willkommens Nachricht
Genau das meine ich, und wie bekomme ich das nun eingesetzt? Wo?schwedenmann hat geschrieben:Hallo
Ev. meinst du da bei proftpd
http://www.proftpd.org/docs/howto/DisplayFiles.html
mfg
schwedenmann
-
- Beiträge: 5649
- Registriert: 30.12.2004 15:31:07
- Wohnort: Wegberg
Re: FTP Willkommens Nachricht
Hallo
Indem du wohl manuell die Konfig von Proftpf bearbeitest, siehe hier:
http://strcat.de/tmp/proftpd-verbose.conf
mfg
schwedenmann
Indem du wohl manuell die Konfig von Proftpf bearbeitest, siehe hier:
http://strcat.de/tmp/proftpd-verbose.conf
mfg
schwedenmann