Skip to content

Where placing a script that starts when someone successfully connect to a server via cockpit web? #20347

Answered by posta246
posta246 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, thanks for the tip... it works!!!
just added:
session optional pam_exec.so seteuid /usr/bin/telegram-send.sh "test-cockpit"
to the end of the file
/etc/pam.d/cockpit
and script telegram-send.sh sends me the "test-cockpit" message!

Replies: 1 comment 9 replies

Comment options

You must be logged in to vote
9 replies
@posta246
Comment options

@jelly
Comment options

@posta246
Comment options

Answer selected by posta246
@posta246
Comment options

@jelly
Comment options

@martinpitt
Comment options

@posta246
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants