LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to use screen as a non-root user? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-use-screen-as-a-non-root-user-603970/)

nhc 12-02-2007 02:31 PM

How to use screen as a non-root user?
 
Hi,

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.

Regards,
nhc
noobsplay.com

shadowsnipes 12-02-2007 04:02 PM

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.

Code:

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
Code:

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.

nhc 12-03-2007 06:29 PM

Thank you snipes, it works now :)


All times are GMT -5. The time now is 06:46 PM.