Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am writing a quick script to read user input and put into commands of a couple different programs. I'm using xterm -e to open a terminal for each separate program.

The script is working fine, but each time xterm -e is executed, an error message is displayed:

Warning: Tried to connect to session manager, None of the authentication protocols specified are supported

Any ideas on how to stop this from displaying?

share|improve this question
up vote 4 down vote accepted

xterm uses the $SESSION_MANAGER environment variable to find out how to contact the X session manager.

In your case it seems to be unable to authenticate to it. Possibly, that script is started in the current session but as a different user.

Anyway, you don't have to report to a session manager so you can as well unset that variable to make the error message go away:


Or if your env supports the non-standard -u options, start xterm as env -u SESSION_MANAGER xterm ....

share|improve this answer
That works! Thank you. – Synner Mar 6 '13 at 22:16

You can ignore it with:

xterm -e 2> /dev/null
share|improve this answer

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.