Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 12-02-2007, 02:31 PM   #1
LQ Newbie
Registered: Dec 2007
Posts: 9

Rep: Reputation: 0
How to use screen as a non-root user?


I am setting up Enemy-Territory on a remote centos 4.5 linux server.

I am new to linux. So far, I have manage to get it running though by running as root. My Enemy-Territory setup guide wanted me to use screen as a non-root user.

However, I have the below message while I logged in as a non-root user.

"Cannot make directory '/tmp/uscreens': Permission denied"

I can start "screen" while I logged in as root though.

I seek your kind advise.

Old 12-02-2007, 04:02 PM   #2
Senior Member
Registered: Sep 2005
Distribution: Slackware
Posts: 1,443

Rep: Reputation: 73
It sounds like your tmp directory is not set up correctly to allow write access for everyone. Either that or the /tmp/uscreen directory is already created and your user doesn't have access to it. To check the perms for your tmp directory execute the following and look for the line for /tmp.

ls -l /
The owner and group should be root. The permissions on the left are owner, group, and others and can include read (r), write (w), and execute (x). For /tmp they should be all filled up.

If you don't have permissions to the tmp directory you can fix it as root
chmod 777 /tmp
4 = read
2 = write
1 = execute
4+2+1 = 7

I don't really understand why screen isn't using a hidden directory in your home directory. Mine uses .screen.
Old 12-03-2007, 06:29 PM   #3
LQ Newbie
Registered: Dec 2007
Posts: 9

Original Poster
Rep: Reputation: 0
Thank you snipes, it works now


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
Can unlock screen with root password in my user account - want to change this sm1 Linux - Newbie 2 07-24-2005 05:54 AM
lock the screen as a root user? zstingx Linux - General 3 10-28-2003 03:10 AM
New install 9.1 no root user at login screen glennl Mandriva 5 09-03-2003 02:39 PM
screen to small as root user jkp Linux - Newbie 12 01-16-2003 08:21 AM
Starting 'Screen' from rc.local as a user other than root Mulefire Linux - General 0 02-21-2002 10:05 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:47 AM.

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