[SOLVED] Getting a command to run on ssh/cli login ONLY
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
This is just what I was looking for. I never have to explicitly deal with my environment variables so I'd never have thought of that.
After running 'env' I realized GDMSESSION will only exist if I have logged in at the console. If I ssh in as myself or am logged in as another account (even in the GUI), then 'su - van' to myself, GDMSESSION will be undefined. That's what I need to know!