Home > Cannot Open > Screen Cannot Open Your Terminal After Su

Screen Cannot Open Your Terminal After Su

Contents

obiwahn View Public Profile View LQ Blog View Review Entries View HCL Entries Find More Posts by obiwahn 08-20-2010, 02:39 AM #15 kbp Senior Member Registered: Aug 2009 Posts: Help understanding these cake puns from a CNN Student News video Ballpark salary equivalent today of "healthcare benefits" in the US? Lab colleague uses cracked software. The problem is user1 can't read/write the device 1 members found this post helpful. navigate to this website

Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the Performance difference in between Windows and Linux using intel compiler: looking at the assembly How can the US electoral college vote be so different to the popular vote? I think I can add the user to the tty group but that wouldn't be ideal. :-P –luckytaxi Feb 25 '10 at 19:07 3 Re: security implications, none I'm aware Thanks.

Cannot Open Your Terminal '/dev/pts/0' - Please Check. Screen

Excepted from this license are code snippets that are explicitely marked as citations from another source. How to reply? User bob starts script, which is told to invoke a bash (could be dash or ksh...) and a copy of the session is thrown away. Not the answer you're looking for?

If for instance on the server, there are 3 users logged in via and mine is the the 3rd user by order of ssh login, then my user login tty file Mimsy were the Borogoves - why is "mimsy" an adjective? Solving Cannot open your terminal '/dev/pts/0' - please check to run scripts in SCREEN on server boot A very classical situation, you might encounter: Cannot open your terminal '/dev/pts/0' - please Sudo Screen Command Making your tty/pty/pts world-read-writable opens up a gaping security hole, giving everyone raw access to your console.

This includes both code snippets embedded in the card text and code that is included as a file attachment. Script /dev/null Why is the 'You talking to me' speech from the movie 'Taxi Driver' so famous? QGIS Print composer scale problems As a monk, can I use Deflect Missiles to intentionally catch a projectile? go to this web-site Maybe it would be secure enough if you use ACLs, and only allow specific users, but I would rather prefer doing "script /dev/null" before calling screen.

This works fine, if the script is intended to run as root, but most of the scripts are intended to run through a su-ed user, like for example, lets say you Screen Multiuser More helpful ArticlesCheck and log routinely multiple servers load avarage for Linux / UNIX server overloadsWordPress Security: Fix WordPress wp-config.php improper permissions to protect your sites from Database password steal / Ask Ubuntu works best with JavaScript enabled Home | Contact | Search: Screen: cannot open your terminal '/dev/pts/0' Posted Apr. 17, 2015 in Linux/Unix/BSD If you are logged in as a Related posts: Debian releases and namesWhich version of Debian is running?

Script /dev/null

Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved. http://www.shadowsplace.net/1844/linux/using-screen-after-su-cannot-open-your-terminal/ Being added to the tty group, the user has access to read all the logging in virtual and physical users on the system. Cannot Open Your Terminal '/dev/pts/0' - Please Check. Screen Have you tried doing the same from a login shell? Sudo Screen /dev/ttyusb0 User Name Remember Me?

Why doesn't it open screen, and what should I do with the very helpful tip "please check"? useful reference nice workarround, thanks for sharing August 12, 2016 at 12:25 PM Post a Comment Newer Post Older Post Home Subscribe to: Post Comments (Atom) Blog Archive ► 2015 (2) ► May Introduction to Linux - A Hands on Guide This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started Our laser focus on a single technology has made us a leader in this space. Attach To Another User's Screen Session

[email protected]:~$ exit
server:~# chmod a+rw /dev/pts/0
server:~# su hipo -
[email protected]:~$ screen mc
This would give read/write permissions for my specific /dev/pts/0, however, if you don't know The time now is 10:28 AM. Find More Posts by stefaandk 06-30-2005, 04:14 AM #5 Artanicus Member Registered: Jan 2005 Location: Finland Distribution: Ubuntu, Debian, Gentoo, Slackware Posts: 827 Rep: I guess its some method my review here If the user added to tty group is not trusted and (preferrably used only by the system administrator), he might flood other logged in users shell with junk messages, or any

share|improve this answer answered Nov 2 at 20:15 laylaylom 1 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up Must Run Suid Root For Multiuser Support. Not the answer you're looking for? If this screen is not existent it will create a screen called log with the options specified in .screenrcs/log hurray Last edited by obiwahn; 03-11-2010 at 11:49 AM.

Should I report it?

Here's a one-liner (could be used as "alias gobob", for example): sudo su - bob -c "script -c bash /dev/null"' Explanation: This will start a shell (like login shell) as user License for source code License for source code All source code included in the card Solve screen error "Cannot open your terminal '/dev/pts/0' - please check" is licensed under the license Wrong way on a bike lane? There Is No Screen To Be Resumed View Comment Reply matthias says: June 17, 2012 at 1:20 pm Google Chrome 18.0.1025.151 GNU/Linux x64Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.151 Safari/535.19you can work around it using ssh.

Your solution worked like a charm and makes a lot of sense. asked 2 years ago viewed 7231 times active 7 days ago Related 0Automate switch user password in script3Create a Screen session with a bash script using contab1Listed folder cannot be deleted2start Basic Geometric intuition, context is undergraduate mathematics Why do languages require parenthesis around expressions when used with "if" and "while"? get redirected here Onether beatifying screen behaviour .screenrc file which makes screen be in blue and red is here By the way, just few months ago, I've found for another great program that is

mr_grumpy View Public Profile View LQ Blog View Review Entries View HCL Entries Find More Posts by mr_grumpy 10-02-2009, 06:42 AM #11 okki LQ Newbie Registered: Oct 2009 Posts: Boss sends a birthday message. For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. To work around this you have two options: a.

X hours with a batch script - Shutdown / Reboot / Logoff Windows with a quick command Enable TLS 1.2 Internet Explorer / Make TLS 1.1 and TLS 1.2 web sites but hey, I'm asking a n00b question today. Thanks alot.. (: Now I can better spy on unsuspecting rulebreakers.. (; Artanicus View Public Profile View LQ Blog View Review Entries View HCL Entries View LQ Wiki Contributions Visit Main Menu LQ Calendar LQ Rules LQ Sitemap Site FAQ View New Posts View Latest Posts Zero Reply Threads LQ Wiki Most Wanted Jeremy's Blog Report LQ Bug Syndicate Latest

All tips are welcome! a pretty nifty feature imo.. 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. Why is looping over find's output bad practice?

Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the okki View Public Profile View LQ Blog View Review Entries View HCL Entries Find More Posts by okki 10-23-2009, 03:35 AM #12 sebastjanp LQ Newbie Registered: Oct 2009 Posts: There is actually a better option with screen -d -m parameters. Be sure, that the user that is added in tty group is really trusted and secured well!

share|improve this answer edited Oct 8 '13 at 11:21 nalply 3371614 answered Jun 22 '10 at 2:09 Amos Shapira 394417 1 Sounds like a great solution. –Evan Carroll Jan 20 Cannot open your terminal '/dev/pts/0' - please check. ssh [email protected] # ssh into server as bob sudo su "monitor" - screen (fails) I have a script that runs as the "monitor" user. Does Intel sell CPUs in ribbons?