LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-07-2013, 02:30 PM   #1
mattwilson247
LQ Newbie
 
Registered: Jan 2005
Posts: 5

Rep: Reputation: 0
screen terminates immediately


I can run screen no problem as root but when I run it as a regular user, it goes to a black screen then says screen is terminating. I am thinking this is due to permissions. Could someone explain how to get screen working for a regular user? I am using CentOS. Thanks.
 
Old 01-08-2013, 12:43 AM   #2
trijit
Member
 
Registered: Sep 2010
Location: Kolkata
Distribution: Ubuntu
Posts: 35

Rep: Reputation: 3
Quote:
Originally Posted by mattwilson247 View Post
I can run screen no problem as root but when I run it as a regular user, it goes to a black screen then says screen is terminating. I am thinking this is due to permissions. Could someone explain how to get screen working for a regular user? I am using CentOS. Thanks.
Do you have SCREENDIR variable declared? You can check that via echo " $SCREENDIR ".

If that is not set try:

mkdir -p your_home_path/.screen
SCREENDIR=your_home_path/.screen screen
export SCREENDIR

once done, try to run the screen again. Please let me know if this works.
 
Old 01-08-2013, 09:54 AM   #3
mattwilson247
LQ Newbie
 
Registered: Jan 2005
Posts: 5

Original Poster
Rep: Reputation: 0
mkdir -p your_home_path/.screen (executed with no error)

SCREENDIR=your_home_path/.screen screen (Displayed a message saying the directory must have mode 700 so I did "chmod 700 .screen" and then it executed and tried to start a new session but exited out with a message saying screen is terminating like it has done before)

export SCREENDIR (executed with no error)
 
Old 01-08-2013, 10:11 AM   #4
mattwilson247
LQ Newbie
 
Registered: Jan 2005
Posts: 5

Original Poster
Rep: Reputation: 0
So I did this as root: chmod u+s /usr/bin/screen

Then I tried to run screen from my regular user account and it said to make /var/run/screen mode 755 which I did. And it finally worked!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Get ktorrent downloads to start immediately without confirmation screen veeruk101 Linux - Software 5 10-24-2011 04:16 PM
Ubuntu 10.10 live cd immediately giving a blank screen mjmr89 Linux - Newbie 1 03-03-2011 07:13 PM
Black screen with blinking cursor immediately after installing Ubuntu 8.10 lazy_bones1987 Linux - Newbie 9 11-30-2008 11:19 AM
How do I keep an executable from terminates after the initiating shell terminates mr.v. Linux - Newbie 8 01-20-2007 03:47 AM
KDE logs in then immediately back to login screen lelava Linux - Software 1 06-27-2006 10:45 AM


All times are GMT -5. The time now is 08:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration