Problem using screen: Cannot open your terminal '/dev/pts/0' - please check.
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
running 'screen command' executes that command in the screen.. a pretty nifty feature imo..
Now, ive seen that error before, and that was when Ihad 'su'd to another user, then tried to attach a screen of the new user. Have you tried doing the same from a login shell?
Distribution: VMs of as many as possible, Ubuntu/openSUSE most often
Posts: 5
Rep:
Thanks guys, this helped me out today while trying to figure out how to run a program in screen as another user, I found the command elsewhere on LQ and the fix was here too, w00t!
as user1 add this bash alias to your bashrc:
alias log='ssh log@localhost -t "screen -rd -S log || /home/user2/.bin/screen-log'
log into a new bash
DONE
Now you can call as user1 the command log
this will ssh into the account of user2 and attach to a screen called log. If this screen is not existent it will create a screen called log with the options specified in .screenrcs/log
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.