bei xhost in der 12 Zeile würde ich das machen ggf wenn das stimmt und xhost durch den Pfad ersetzen denn wo es hin soll
Oder am Ende bei der 1 und in Zeile 9 wobei ich nicht weiß wo für das steht
bei xhost in der 12 Zeile würde ich das machen ggf wenn das stimmt und xhost durch den Pfad ersetzen denn wo es hin soll
Oder am Ende bei der 1 und in Zeile 9 wobei ich nicht weiß wo für das steht
habe im Ordner noch ein anderen Skript gefunden was das Programm wohl selber benutzt, laut Handbuch soll man halt über die andere Datei gehen aber vielleicht hilft das weiter
#!/bin/bash
cd /opt/ecodms/ecodmsserver/tools/
if [ -f /usr/bin/kdesudo ]; then
LD_LIBRARY_PATH=. kdesudo ./ecoDMSBackup
elif [ -f /usr/bin/gksudo ]; then
LD_LIBRARY_PATH=. gksudo ./ecoDMSBackup
elif [ -f /usr/bin/kdesu ]; then
kdesu -c "LD_LIBRARY_PATH=. ./ecoDMSBackup"
elif [ $1 -eq 1 ]; then
./ecoDMSBackup
else
xhost +local:ecoDMSBackup
pkexec /opt/ecodms/ecodmsserver/tools/ecoDMSBackup.sh 1
fi
Alles anzeigen
Ist dann nur die Frage wie man das anpasst und da eintragen kann wohin er das speichern soll
ich weiß das es mal ein fertigen Skript gab dazu im Internet aber ich finde das nicht wieder mehr
export PWD='/home/benutzer'
export SHELL='/bin/bash'
export SUDO_COMMAND='/bin/sh EcoTest'
export SUDO_GID='1000'
export SUDO_UID='1000'
export SUDO_USER='benutzer'
export TERM='linux'
export USER='root'
export USERNAME='root'
/opt/ecodms/ecodmsserver/tools/ecoDMSBackupConsole: error while loading shared libraries: libaqzip.so.1: cannot open shared object file: No such file or directory
Fehlerexport HOME='/home/benutzer'
export LANG='de_DE.UTF-8'
export LOGNAME='root'
export LS_COLORS='rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:'
export MAIL='/var/mail/root'
export PATH='/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin'
export PWD='/home/benutzer'
export SHELL='/bin/bash'
export SUDO_COMMAND='/bin/sh EcoTest'
export SUDO_GID='1000'
export SUDO_UID='1000'
export SUDO_USER='benutzer'
export TERM='linux'
export USER='root'
export USERNAME='root'
/opt/ecodms/ecodmsserver/tools/ecoDMSBackupConsole: error while loading shared libraries: libaqzip.so.1: cannot open shared object file: No such file or directory
Fehler
Alles anzeigen
also das kommt denn wenn ich das mache
zur Firma habe ich auch hingeschrieben heute morgen schon aber eine Antwort bleibt heute wohl aus
das sagt zu mir:
find /opt -iname 'libaqzip*'
/opt/ecodms/ecodmsserver/libaqzip.so.1
/opt/ecodms/ecodmsserver/tools/libaqzip.so.1
ich habe das mal ein wenig um geschrieben und bisher ging es so aber ob das so richtig ist
cd /opt/ecodms/ecodmsserver/tools/
./ecoDMSBackupConsole /Pfad/ bestspeed
if [ $? -eq 0 ]; then
echo "EcoDMS Backup erfolgreich abgeschlossen"
else
echo "Fehler beim Backup"
fi
Bisher geht es wohl aber ob das als automatischer Skript geht weiß ich nicht
guten Abend.
Also:
sagt:
/sbin/ldconfig.real: »stat()« kann nicht für »/usr/local/lib/x86_64-linux-gnu« aufgerufen werden: Datei oder Verzeichnis nicht gefunden
/sbin/ldconfig.real: Pfad »/lib/x86_64-linux-gnu« mehrfach angegeben
/sbin/ldconfig.real: Pfad »/usr/lib/x86_64-linux-gnu« mehrfach angegeben
/sbin/ldconfig.real: /lib/x86_64-linux-gnu/ld-2.27.so is the dynamic linker, ignoring
/sbin/ldconfig.real: Es ist nicht möglich, die temporäre Cache-Datei /etc/ld.so.cache~ zu erzeugen: Keine Berechtigung
Mit sudo das selbe.
Mit:
Sagt:
den habe ich noch nicht kontaktiert, gegoogelt hatte ich auch schon danach aber nichts gefunden gehabt und ich bin der Meinung das es früher sowas schon mal gab oder auch besser beschrieben wurde.
Guten Morgen an alle,
Ich Hoffe das ihr mir hier weiter Helfen könnt über EcoDms.
Und zwar versuche ich seit gestern ein Skript zu basteln was ein Backup automatisch per Skript macht. Der auf bau dafür sieht wie folgt aus:
#!bin/bash
/opt/ecodms/ecodmsserver/tools/ecoDMSBackupConsole /Pfad/Backup bestspeed
if [ $? -eq 0 ]; then
echo "EcoDMS Backup erfolgreich abgeschlossen"
else
echo "Fehler"
fi
Jedoch bekomme ich die Fehler Meldung:
Fehler beim Backup/opt/ecodms/ecodmsserver/tools/ecoDMSBackupConsole: error while loading shared libraries: libaqzip.so.1: cannot open shared object file: No such file or directory
Fehler beim Backup
Wenn ich das jedoch manuell mache also mit:
cd /opt/ecodms/ecodmsserver/tools
und dann
./ecoDMSBackupConsole /Pfad/von/Backup
Dann geht es.
Jedoch ist jetzt die frage wie ich das als Skript mache, habt ihr da vielleicht eine Idee?
sorry das ich jetzt erst schreibe. bin froh das ich mal 2h am leppy kann gerade.
also Zwischenstand ist das es geht jetzt, wieso weshalb weiß ich jedoch nicht aber ich hatte den Rechner an dem Tag komplett rebootet ob es daran lag weiß ich jedoch nicht aber solange es geht jetzt,
eine frage hätte ich jedoch noch, mir ist aufgefallen das FTPES nicht wirklich überall unterstützt wird kann ich das auch nur auf FTPS mit port 990 umstellen?
Kein Problem, aber ich jetzt mal weg, ich muss noch so Weihnachtskram erledigen.
alles gut hoffe du meldest dich wenn du wider zeit hast, muss aber auch noch einiges erledigen ween weinachten aber danke dir für deine zeit und ich hoffe das wir das noch gelöst bekommen später
192
sorry
ist geändert aber gleiches problem aber jetzt stimmt weder was nicht
Dann ändere noch:
pasv_address=129.168.1.5
in
pasv_address=192.168.1.5
und prüfe noch mal
was soll ich da genau ändern das sieht identisch aus
sudo cat /etc/vsftpd.conf
# 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
#
# This directive enables listening on IPv6 sockets. By default, listening
# on the IPv6 "any" address (::) will accept connections from both IPv6
# and IPv4 clients. It is not necessary to listen on *both* IPv4 and IPv6
# sockets. If you want that (perhaps because you want to listen on specific
# addresses) then you must run two copies of vsftpd with two configuration
# files.
listen_ipv6=NO
#
# Allow anonymous FTP? (Disabled by default).
anonymous_enable=NO
anon_world_readable_only=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
#listen_port=21
#
# 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=Welcome to illgcloud FTP service.
#
# 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=NO
# (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/private/vsftpd.pem
rsa_private_key_file=/etc/ssl/private/vsftpd.pem
ssl_enable=YES
allow_anon_ssl=NO
force_local_data_ssl=YES
force_local_logins_ssl=YES
ssl_tlsv1=YES
ssl_sslv2=YES
ssl_sslv3=YES
require_ssl_reuse=NO
ssl_ciphers=HIGH
pasv_address=129.168.1.5
pasv_enable=YES
pasv_min_port=10000
pasv_max_port=65535
# Uncomment this to indicate that vsftpd use a utf8 filesystem.
#utf8_filesystem=YES
allow_writeable_chroot=YES
Alles anzeigen
so ist in mom die config
router wie eben beschrieben und firewall auch
nur zum abgleichen nicht das es jetzt an der config liegt
es scheint ja zu gehen nur das er den ordner nicht lisen kann
habe den port am router
FTP 192.168.1.5 TCP 10000-10100 in FTP 192.168.1.5 TCP 10000-65535 geändert
nach meins wissen geht nichts überdies ports und
sudo ufw allow 10000:65535/tcp
[sudo] Passwort für illg:
Regeln aktualisiert
Regeln aktualisiert (v6)
gemacht selbes ergebnis
HTTP 192.168.1.5 TCP/TCP 443-443/80-80
FTP 192.168.1.5 TCP/TCP 20-20/21-21
Benutzerdif. 192.168.1.5 TCP 990-990
FTP 192.168.1.5 TCP 10000-10100
192.168.1.5 ist die lokale ip zum pi die ip ist auch so eingestellt das sie dauerhaft so bestehen bleibt
ich teste es über das Internet da ich bei meiner Freundin bin und der pi bei mir zuhause liegt.
zuhause habe ich bei mir eine o2.box stehen leider
habe mal cat /var/log/vsftpd.log
Sun Dec 23 09:27:47 2018 [pid 2807] CONNECT: Client "84.46.42.200"
Sun Dec 23 09:27:47 2018 [pid 2806] [jason] OK LOGIN: Client "84.46.42.200"
Sun Dec 23 09:28:07 2018 [pid 2810] CONNECT: Client "84.46.42.200"
Sun Dec 23 09:28:07 2018 [pid 2809] [jason] OK LOGIN: Client "84.46.42.200"
Sun Dec 23 09:28:47 2018 [pid 2807] [jason] DEBUG: Client "84.46.42.200", "Control connection terminated without SSL shutdown."
Sun Dec 23 09:29:08 2018 [pid 2810] [jason] DEBUG: Client "84.46.42.200", "Control connection terminated without SSL shutdown."
Sun Dec 23 09:31:33 2018 [pid 2879] CONNECT: Client "84.46.42.200"
Sun Dec 23 09:31:33 2018 [pid 2878] [jason] OK LOGIN: Client "84.46.42.200"
Sun Dec 23 09:31:54 2018 [pid 2883] CONNECT: Client "84.46.42.200"
Sun Dec 23 09:31:54 2018 [pid 2882] [jason] OK LOGIN: Client "84.46.42.200"
Sun Dec 23 09:32:34 2018 [pid 2879] [jason] DEBUG: Client "84.46.42.200", "Control connection terminated without SSL shutdown."
Sun Dec 23 09:32:54 2018 [pid 2883] [jason] DEBUG: Client "84.46.42.200", "Control connection terminated without SSL shutdown."
Sun Dec 23 09:37:58 2018 [pid 2924] CONNECT: Client "84.46.42.200"
Sun Dec 23 09:37:58 2018 [pid 2923] [jason] OK LOGIN: Client "84.46.42.200"
Sun Dec 23 09:38:18 2018 [pid 2927] CONNECT: Client "84.46.42.200"
Sun Dec 23 09:38:18 2018 [pid 2926] [jason] OK LOGIN: Client "84.46.42.200"
Sun Dec 23 09:38:58 2018 [pid 2924] [jason] DEBUG: Client "84.46.42.200", "Control connection terminated without SSL shutdown."
Sun Dec 23 09:39:18 2018 [pid 2927] [jason] DEBUG: Client "84.46.42.200", "Control connection terminated without SSL shutdown."
Alles anzeigen
Status: Verbindung hergestellt, warte auf Willkommensnachricht...
Status: Initialisiere TLS...
Status: Überprüfe Zertifikat...
Status: TLS-Verbindung hergestellt.
Status: Der Server unterstützt keine Nicht-ASCII-Zeichen.
Status: Angemeldet
Status: Empfange Verzeichnisinhalt...
Befehl: PWD
Antwort: 257 "/" is the current directory
Befehl: TYPE I
Antwort: 200 Switching to Binary mode.
Befehl: PASV
Antwort: 227 Entering Passive Mode (129,168,1,5,39,61).
Befehl: LIST
Fehler: Zeitüberschreitung der Verbindung nach 20 Sekunden Inaktivität
Fehler: Verzeichnisinhalt konnte nicht empfangen werden
Alles anzeigen
so weit habe ich es jetzt geschaft schon mal aber es geht immer noch nicht, zumindist stimmt jetzt der erste teil der ip
habe auch:
aktiviert aber ohne erfolg. die config habe ich abgeglichen aber irgendwie klappt es alles nicht
hier die Anleitung die ich benutzt habe
werde es gleich mal testen
Gibt es einen Grund, warum du 10000-10100 und nicht die Standardports nimmst ?
wieso ich dieses genommen habe gibt es kein grund wollte nur was anderes nehmen und da dieses egal wahren habe ich einfach die genommen
Nicht nur zur eigenen Sicherheit, sondern auch zur Sicherheit anderer, die von Botnetzen geärgert werden.
deswegen das sollte schon so sein
was ich komisch finden ist ich habe jetzt bei:
eingetragen bei Fillezilla kommt:
Status: Verbindung hergestellt, warte auf Willkommensnachricht...
Status: Initialisiere TLS...
Status: Überprüfe Zertifikat...
Status: TLS-Verbindung hergestellt.
Status: Der Server unterstützt keine Nicht-ASCII-Zeichen.
Status: Angemeldet
Status: Empfange Verzeichnisinhalt...
Status: Vom Server gesendete Adresse für den Passiv-Modus ist nicht routingfähig. Passiv-Modus fehlgeschlagen.
Befehl: PORT 192,168,178,74,210,251
Antwort: 500 Illegal PORT command.
Fehler: Verzeichnisinhalt konnte nicht empfangen werden
Alles anzeigen
wenn ich bei port gucke ist die ip falsch weil meine ist 192.168..1.5 local wenn ich das richti gelesen habe ergibt 192.168.1.5 dann 210 + 251 den port aber das stimmt ja so auch nicht denn weil die ip falsch ist
ok gut, ist das eine beispiel config oder soll ich das mall so testen mit der?
wieso ich dieses genommen habe gibt es kein grund wollte nur was anderes nehmen und da dieses egal wahren habe ich einfach die genommen
klar nur per vpn und Schlüsseldatei alles andere ist mir zu unsicher und in der heutigen zeit wo Datenschutz großgeschrieben ist sollte man auch das Maximum an Sicherheit machen