LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-02-2006, 02:05 AM   #1
DarkElf109
Member
 
Registered: Dec 2005
Location: Phoenix, AZ
Distribution: Ubuntu, Debian, Gentoo
Posts: 43

Rep: Reputation: 15
Question GNU Screen Error: Could Not Write /var/run/utmp: No such process


Whenever I run screen, or even if I run it with a command, there is a small delay, followed by that error flashing on the bottom of my console, further followed by the standard screen operation. I'm running Ubuntu Breezy (5.10), and screen version 4.00.02. /var/run/utmp exists, and has permissions 664, owned by root:utmp.

Is there any way to get rid of the error showing up every time I load screen, even if I don't get that feature working?
 
Old 02-02-2006, 09:09 PM   #2
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
From screen --help:
Code:
-l            Login mode on (update /var/run/utmp), -ln = off.
which implies that screen -ln will disable the attempt to log the screen session to /var/run/utmp.

Your "can't write" problem might be related to your selinux settings if you're using selinux. (I don't know if Breezy even includes selinux, so that's just a suggestion.)
 
Old 06-10-2006, 12:33 AM   #3
ubuntu jonez
LQ Newbie
 
Registered: Jun 2006
Posts: 2

Rep: Reputation: 0
I'm having the same problem. I'd would prefer to have screen log in and see entries using the 'w' command. From the end of 'man screen':

· Screen must be installed as set-uid with owner root on most systems in order to be able to correctly change the owner of the tty device file for each window. Special permission may also be required to write the file "/var/run/utmp".

So, I suid'd /usr/bin/screen. (was sguid)
-rwxr-sr-x 1 root utmp 291K 2005-02-28 16:23 /usr/bin/screen*

$ sudo chmod u+s /usr/bin/screen

-rwsr-sr-x 1 root utmp 291K 2005-02-28 16:23 /usr/bin/screen*

After that I tried again and got:
$ screen -RD
Directory '/var/run/screen' must have mode 755.

$ ll -d /var/run/screen
drwxrwxr-x 3 root utmp 4.0K 2006-01-22 15:08 /var/run/screen/
(looks like 775)

$ sudo chmod 755 /var/run/screen

Same error
Could Not Write /var/run/utmp: No such process
 
Old 06-10-2006, 02:13 AM   #4
ubuntu jonez
LQ Newbie
 
Registered: Jun 2006
Posts: 2

Rep: Reputation: 0
I'm running Ubuntu (Breezy Badger). I applied the latest updates and rebooted. The problem went away as mysteriously as it arrived.

-uj
 
  


Reply



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
write to var/www isn't possible, i want to write that area AKAKAK Ubuntu 2 01-14-2006 06:34 PM
rm cannot remove /var/run/atd.pid and /var/run/xdm.pid danishmr Linux - Software 1 05-04-2004 08:01 AM
cannot read/write to /var/www eddi Linux - Newbie 1 02-04-2004 03:08 PM
Can't write to /var/run/console cpeppler Linux - General 2 10-03-2003 07:28 AM
cannot write PID to var/run/news cruella Linux - Newbie 1 01-22-2002 06:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:43 AM.

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
Open Source Consulting | Domain Registration