Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have an ssh server with multiple users, How to run a logon script one time when a user logs on, or until the user provides meaningful feedback?

I have a user who needs to sign off on a document before it goes to press. His contact info has changed, but he will login to the ssh server at some point, usually once a week. so, how can I run a script at login to inform him we need his confirmation, denial, or a waiving of intellectual property rights? when he logs in?

I do not want him to be able to do anything else on my server, until he responds in one way or another. But after we get a response, I do not want to ask him ever again.

How Can i do this?

share|improve this question
Take a look at that answer: askubuntu.com/questions/10294/… –  ortang Jul 8 '13 at 15:42
add comment

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.