LinuxQuestions.org
Visit Jeremy's Blog.
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 03-04-2005, 10:03 AM   #1
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
slackware /dev/null permission denied


Ok, I have a weird problem. After making a clean install of Slack 10.1 and using xfce for a few hours, I rebooted my system and now I can't login to X as a normal user. I get an error message saying that /dev/null permission denied. I tried deleting /dev/null so that it would be recreated but I still get the same error. I have tried changing the permissions to 666 but that only allows me to log into X but I can't run any programs. Does anyone have a clue whats going on here.
 
Old 03-04-2005, 10:37 AM   #2
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Original Poster
Rep: Reputation: 73
I'm gonna reply to my own post. I managed to fix the problem. There was something wrong with udev, so I removed the package from current and replaced it with the one from 10.1 and everything works fine.
 
Old 03-04-2005, 03:38 PM   #3
kule
Member
 
Registered: Jun 2004
Distribution: Slackware
Posts: 87

Rep: Reputation: 16
I had the same problem and fixed as you jsut said, but I don't know why does this happen, because the only diffrence between the package from slack 10.1 (udev-050-i486-1.tgz) and the current one (udev-054-i486-1.tgz), I mean in the conf file is in:

/etc/dev.d/net/hotplug.dev

and the diffrences are:

udev-050-i486-1.tgz:
Code:
#!/bin/sh
#
# Script to ensure that any network device that udev renames
# still gets the hotplug script run with the proper name.
#
# Released under the GPL v2
#
# Copyright (C) 2004 Greg Kroah-Hartman <greg@kroah.com>
#

# Do nothing if udev handles hotplug.d.
if [ "$MANAGED_EVENT" == "1" ]; then
	exit 0
fi

# ok, we have renamed this device, so let the network hotplug script
# know about it to setup the device properly...
if [ -f /etc/hotplug.d/default/default.hotplug ]; then
	exec /etc/hotplug.d/default/default.hotplug net
fi
udev-054-i486-1.tgz:
Code:
#!/bin/sh
#
# Script to ensure that any network device that udev renames
# still gets the hotplug script run with the proper name.
#
# Released under the GPL v2
#
# Copyright (C) 2004 Greg Kroah-Hartman <greg@kroah.com>
#

# See if we really did rename this device.
if [ "$INTERFACE" = "$DEVNAME" ]; then
	exit 0
fi

# ok, we have renamed this device, so let's set $INTERFACE to the new name
# and call the network hotplug script to handle it properly...
INTERFACE=$DEVNAME
export INTERFACE
if [ -f /etc/hotplug.d/default/default.hotplug ]; then
	exec /etc/hotplug.d/default/default.hotplug net
fi

The new udev package doesn't give permission to /dev/null for ordinary user, and when in X, 'konsole' starts blank.

What could do this???
 
Old 03-04-2005, 05:55 PM   #4
coffeedrinker
Member
 
Registered: Sep 2003
Posts: 173

Rep: Reputation: 30
You might want to:

installpkg devs-xxx.tgz

and rerun:

/dev/MAKEDEV
 
Old 03-05-2005, 12:03 AM   #5
tormented_one
Member
 
Registered: Oct 2004
Location: Small Town USA
Distribution: slamd64 2.6.12 Slackware 2.4.32 Windows XP x64 pro
Posts: 383

Rep: Reputation: 30
I had same problem and fixed the same way. Took me a minute to figure this one out. Since I installed a few packages at once.
 
Old 03-05-2005, 01:45 AM   #6
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Original Poster
Rep: Reputation: 73
Well, at least its not just me, it was really driving me mad, until I stumbled on the solution I think there is definitely a bug somewhere in the current version of udev, so hopefully it will be fixed soon. Does anyone know how bugs are reported to the Slackware (well Pat) dev team.
 
Old 03-05-2005, 04:02 AM   #7
dhave
Member
 
Registered: Oct 2004
Location: still outside the Matrix
Distribution: Arch, formerly Gentoo and Slackware
Posts: 438

Rep: Reputation: 31
I don't think it's a bug per se. It's just that permissions are set differently by udev-054 than they were with udev-050. Or at least this is the explanation I've read on alt.os.linux.slackware.

From the various posts I've seen saying as much, Patrick has already been notified about this numerous times. I imagine a fix will be forthcoming shortly. Meanwhile, I don't think any of us will suffer much by using udev-050.

If you want to explore what's going on, you can study the structure of the file udev.permissions and the relevant parts of udev.rules. Prior to udev-051, device permissions were set by udev.permissions. Starting with udev-051, permissions have been set by udev.rules. (See discussion on a.o.l.s. and also in this forum.)

It clear that Slack current is doing its job, since the idea is to provide a thorough testing before anything makes it into Slack stable.
 
Old 03-05-2005, 05:41 AM   #8
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Original Poster
Rep: Reputation: 73
Ahhh, thanks for the explanation, things make a bit more sense now
 
Old 03-09-2005, 07:56 PM   #9
rafagavioes
LQ Newbie
 
Registered: Dec 2004
Location: Brazil
Distribution: slackware and debian
Posts: 1

Rep: Reputation: 0
There is a new slack current packages already
the udev-054-i486-2.tgz
It fixes all the mess
 
  


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
ssh login with normal user, receive: /dev/null: Permission denied mark78301 Red Hat 3 11-12-2005 09:20 AM
/dev/null: Permission denied phoenix7 Linux - Distributions 1 10-01-2005 06:31 PM
Konsole = /dev/null: permission denied????? ithawtewrong Linux - Newbie 3 09-23-2004 05:39 PM
/dev/null: Permission denied LavaDevil94 Linux - Software 2 09-14-2004 11:44 PM
Access denied in /dev/null kpachopoulos Linux - Newbie 1 08-05-2004 09:50 AM


All times are GMT -5. The time now is 01:50 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