Will man auf einen TCP / Socket schreiben, dass heißt z.B. eine Nachricht an Tivolli Netcool schicken kann man innerhalb eines Scriptes sehr einfach tun. Man leitet einfach den Standard Output auf /dev/tcp/Server IP Adresse/Port um.
z.B. echo "bla blas bla" > /dev/tcp/blaserver/1010
Hinweis: Man kann auf diese Weise auch Daten empfangen, dann man nur auch das Einleitungszeichen benutzen, etwas so
echo "bla blas bla" <> /dev/tcp/blaserver/1010
Mittwoch, 11. Juni 2014
You (USERNAME) are not allowed to access to (crontab) because of You (root) are not allowed to access to (crontab) because of
Mögliche Lösung:
Als User "root" mit vi die Datei /etc/pam.d/crond folgende Zeile auskommentieren:
#
# The PAM configuration file for the cron daemon
#
#
# No PAM authentication called, auth modules not needed
account required pam_access.so -> # account required pam_access.so
account include password-auth
session required pam_loginuid.so
Als User "root" mit vi die Datei /etc/pam.d/crond folgende Zeile auskommentieren:
#
# The PAM configuration file for the cron daemon
#
#
# No PAM authentication called, auth modules not needed
account required pam_access.so -> # account required pam_access.so
account include password-auth
session required pam_loginuid.so
Abonnieren
Posts (Atom)