LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 10-09-2008, 04:53 AM   #1
pwc101
Senior Member
 
Registered: Oct 2005
Location: UK
Distribution: Slackware
Posts: 1,847

Rep: Reputation: 128Reputation: 128
/var/run/utmp permissions differ from those suggested in man 5 utmp


Slackware 12.1 fully up-to-date.
Code:
root@slack:~# ls -l /var/run/utmp
-rw-rw-r-- 1 root utmp 3456 2008-10-09 10:28  /var/run/utmp
root@slack:~#
Quote:
Quote:
Originally Posted by man 5 utmp
Warning: utmp must not be writable, because many system programs (fool-
ishly) depend on its integrity. You risk faked system logfiles and
modifications of system files if you leave utmp writable to any user.
I checked on a clean install in a virtual machine, and the permissions are the same. Is this a problem?
 
Old 10-09-2008, 05:26 AM   #2
keefaz
Senior Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 4,614

Rep: Reputation: 136Reputation: 136
Quote:
if you leave utmp writable to any user.
Code:
root@slack:~# ls -l /var/run/utmp
-rw-rw-r-- 1 root utmp 3456 2008-10-09 10:28  /var/run/utmp
root@slack:~#
So where is the problem? utmp is not writable as shown from ls output
 
Old 10-09-2008, 05:54 AM   #3
pwc101
Senior Member
 
Registered: Oct 2005
Location: UK
Distribution: Slackware
Posts: 1,847

Original Poster
Rep: Reputation: 128Reputation: 128
I misunderstood the two statements: "utmp must not be writable" and subsequently "writable by any user" as meaning utmp must not be writable to anyone, no matter whether they owned the file or were part of its group (hence any user). I was expecting to see permissions of -r--r--r-- if anything. Thanks for pointing out the real meaning (though I think the man page could be worded less ambiguously).

Panic over.
 
Old 10-09-2008, 06:49 AM   #4
keefaz
Senior Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 4,614

Rep: Reputation: 136Reputation: 136
Maybe replace "any user" with "other user" ?
English is not my first language though, so I can't tell
But if a Linux admin set any user in utmp group, he should be fired asap imo
 
Old 10-09-2008, 10:46 AM   #5
pwc101
Senior Member
 
Registered: Oct 2005
Location: UK
Distribution: Slackware
Posts: 1,847

Original Poster
Rep: Reputation: 128Reputation: 128
Quote:
Originally Posted by keefaz View Post
Maybe replace "any user" with "other user" ?
English is not my first language though, so I can't tell
I've sent an email to the linux man page bug reporting system with a slight clarification, although it's quite difficult to explain without ambiguity!
Quote:
Originally Posted by keefaz View Post
But if a Linux admin set any user in utmp group, he should be fired asap imo
True!
 
Old 02-14-2011, 10:46 PM   #6
saurabh nigam
Member
 
Registered: Feb 2009
Location: @ /home & @ my blog at http://saurabh-nigam.blogspot.com/
Distribution: Slackware , Fedora , Ubuntu
Posts: 35

Rep: Reputation: 15
Unhappy

Hi all , did any of you figured the solution?
In my case too it says
Code:
touch /var/run/utmp :No such file or directory
chown /var/run/utmp :No such file or directory
chmod /var/run/utmp :No such file or directory
touch /var/lock/subsys/serial :No such file or directory
then it hangs on to
Code:
sysklogd
and doesn't boots further but it does boot in single user mode (& I can login as root).
Help.
 
  


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
Corrupt utmp - how to isolate cause mhansen Slackware 11 03-08-2007 01:38 PM
GNU Screen Error: Could Not Write /var/run/utmp: No such process DarkElf109 Linux - Software 3 06-10-2006 02:13 AM
who reports no user logged in /var/run/utmp when using kdm (Etch) forgox Debian 3 05-31-2006 04:21 AM
ip addresss from utmp masand Linux - General 0 04-27-2004 07:07 AM
utmp, wtmp Xavius Linux - Newbie 3 04-11-2004 08:29 AM


All times are GMT -5. The time now is 12:40 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration