Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

resolve the "tcgetattr: Invalid argument" error #29

Open
connaryscott opened this issue Nov 29, 2012 · 0 comments
Open

resolve the "tcgetattr: Invalid argument" error #29

connaryscott opened this issue Nov 29, 2012 · 0 comments

Comments

@connaryscott
Copy link
Member

dispatcher produces these output warnings. This can be reproduced in a rundeck crontab definition using the following entries:

[chuck@sdp-centos-63-64-1 toolchain-example5]$ sudo crontab -u rundeck -l
* * * * * ssh -t -q  chuck@localhost id > /tmp/ssh_t.out 2>&1
* * * * * ssh -tt -q  chuck@localhost id > /tmp/ssh_tt.out 2>&1
* * * * * ssh -t -q  chuck@localhost sudo id > /tmp/ssh_t_sudo.out 2>&1
* * * * * ssh -tt -q  chuck@localhost sudo id > /tmp/ssh_tt_sudo.out 2>&1

each cron invoked session produces:

[chuck@sdp-centos-63-64-1 toolchain-example5]$ cat /tmp/ssh_t.out 
Pseudo-terminal will not be allocated because stdin is not a terminal.
uid=500(chuck) gid=500(chuck) groups=500(chuck),10(wheel) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023

[chuck@sdp-centos-63-64-1 toolchain-example5]$ cat /tmp/ssh_tt.out 
tcgetattr: Invalid argument
uid=500(chuck) gid=500(chuck) groups=500(chuck),10(wheel) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
[chuck@sdp-centos-63-64-1 toolchain-example5]$ 

[chuck@sdp-centos-63-64-1 toolchain-example5]$ cat /tmp/ssh_t_sudo.out 
Pseudo-terminal will not be allocated because stdin is not a terminal.
sudo: sorry, you must have a tty to run sudo

[chuck@sdp-centos-63-64-1 toolchain-example5]$ cat /tmp/ssh_tt_sudo.out 
tcgetattr: Invalid argument
uid=0(root) gid=0(root) groups=0(root) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023

Discussions have lead to the possibility of invoking sudo on the rundeck side where we sudo to a local user and then remotely dispatch from that user to the same user on the target node.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant