LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on... Note: An (*) indicates there is no official participation from that distribution here at LQ.

Notices

Reply
 
Search this Thread
Old 05-18-2005, 07:04 PM   #1
teek
Member
 
Registered: Jun 2004
Location: The Netherlands; Dordrecht
Distribution: Arch (at the moment)
Posts: 110

Rep: Reputation: 16
Gentoo update udev = no more X for users


Since I did an "emerge -u world" users can no longer use X.

When I "startx" I get the nvidia logo, but then it gets stuck with that grey screen and a cross shaped cursor (which I can move).

When I "chmod 0666 /dev/null" gnome will stall with the startup logo and xfce will startup but without a background and the menu (which is coupled to the background) (so only the taskbar and the other bar startup)

It doesn't make a difference if I "chmod 0666 /dev/nvidia*" and I already changed the permissions in /etc/udev/permissions.d/50-udev.permissions as you can see here:

----
# /etc/udev/udev.permissions: permission/ownership map for udev
# $Header: /home/cvsroot/gentoo-x86/sys-fs/udev/files/udev.permissions,v 1.3 2004/01/01 03:41:24 azarah Exp $

# console devices
console:root:tty:0600
tty:root:tty:0666
tty[0-9]*:root:tty:0660
vc/[0-9]*:root:tty:0660

# pty devices
# Set this to 0660 if you only want users belonging to tty group
# to be able to allocate PTYs
ptmx:root:tty:0666
pty[p-za-e][0-9a-f]*:root:tty:0660
tty[p-za-e][0-9a-f]*:root:tty:0660
pty/m*:root:tty:0660
vc/s*:root:tty:0660

# serial+dialup devices
ttyS*:root:tty:0660
ippp*:root:tty:0660
isdn*:root:tty:0660
isdnctrl*:root:tty:0660
capi*:root:tty:0660
dcbri*:root:tty:0660
ircomm*:root:tty:0660
ttyUSB*:root:usb:0660
tts/[0-9]*:root:tty:0660
tts/USB[0-9]*:root:usb:0660

# vc devices
vcs:root:root:0600
vcs[0-9]*:root:root:0600
vcsa:root:root:0600
vcsa[0-9]*:root:root:0600
vcc/*:root:root:0600

# memory devices
random:root:root:0666
urandom:root:root:0444
mem:root:kmem:0640
kmem:root:kmem:0640
port:root:kmem:0640
full:root:root:0666
null:root:root:0666
zero:root:root:0666

# misc devices
misc/nvram:root:root:0660
misc/rtc:root:root:0664
misc/inotify:root:root:0666

# floppy devices
fd[01]*:root:floppy:0660

# audio devices
dsp*:root:audio:0660
audio*:root:audio:0660
midi*:root:audio:0660
mixer*:root:audio:0660
sequencer*:root:audio:0660
sound/*:root:audio:0660
snd/*:root:audio:0660
beep:root:audio:0660
admm*:root:audio:0660
adsp*:root:audio:0660
aload*:root:audio:0660
amidi*:root:audio:0660
dmfm*:root:audio:0660
dmmidi*:root:audio:0660
sndstat:root:audio:0660

# optical devices
sr*:root:cdrom:660
scd*:root:cdrom:660
pcd*:root:cdrom:0660
cdrom*:root:cdrom:0666
dvd:root:cdrom:0660
rdvd:root:cdrom:0660
cdroms/*:root:cdrom:0660

# pilot/palm devices
pilot:root:uucp:0660

# jaz devices
jaz*:root:disk:0660

# zip devices
pocketzip*:root:disk:0660
zip*:root:disk:0660

# ls120 devices
ls120:root:disk:0660
ls120*:root:disk:0660

# lp devices
lp*:root:lp:0660
parport*:root:lp:0660
irlpt*:root:lp:0660
usblp*:root:lp:0660
usb/lp*:root:lp:0660

# scanner devices
scanner:root:root:0600
scanner:root:root:0600
usb/scanner*:root:root:0600

# camera devices
camera*:root:root:0600
usb/dc2xx*:root:root:0600
usb/mdc800*:root:root:0600

# raw devices
ram*:root:disk:660
raw/*:root:disk:660

# disk devices
hd*:root:disk:660
sd*:root:disk:660
dasd*:root:disk:660
ataraid*:root:disk:660
loop*:root:disk:660
md*:root:disk:660
ide/*/*/*/*/*:root:disk:660
discs/*/*:root:disk:660
loop/*:root:disk:660
md/*:root:disk:660

# tape devices
ht*:root:tape:0660
nht*:root:tape:0660
pt[0-9]*:root:tape:0660
npt*:root:tape:0660
st*:root:tape:0660
nst*:root:tape:0660

# dm devices
dm-*:root:root:0640

# memstick devices
memstick*:root:root:0600

# flash devices
flash*:root:root:0600

# diskonkey devices
diskonkey*:root:disk:0660

# rem_ide devices
microdrive*:root:disk:0660

# fb devices
fb:root:root:0600
fb[0-9]*:root:root:0600
fb/*:root:root:0600

# kbd devices
kbd:root:root:0644

# joystick devices
js[0-9]*:root:root:0644
djs[0-9]*:root:root:0644

# v4l devices
video*:root:video:0660
radio*:root:video:0660
winradio*:root:video:0660
vtx*:root:video:0660
vbi*:root:video:0660
video/*:root:video:0660
vttuner:root:video:0660
v4l/*:root:video:0660

# input devices
input/event*:root:root:600
input/ts*:root:root:600
input/*:root:root:644

# Sony Vaio Jogdial sonypi device
sonypi:root:root:0666

# gpm devices
gpmctl:root:root:0700

# dri devices
nvidia*:root:video:0666
3dfx*:root:video:0666
dri/*:root:video:0666

# mainboard devices
apm_bios:root:root:0600

# scsi devices
sg*:root:disk:0660
pg*:root:disk:0660
cdwriter:root:disk:0660

# usb devices
usb/dabusb*:root:usb:0660
usb/mdc800*:root:usb:0660
usb/rio500:root:usb:0660
usb/legousbtower*:root:usb:0660

sgi_fetchop:root:root:666
iseries/vcd*:root:disk:660
iseries/vd*:root:disk:660
----

There is nothing in my /etc/udev/rules.d/50-udev.rules.

The reason that I suspect that this is an udev thing is first; it makes a difference if I "chmod 0666 /dev/null" and second; it went bad after the config file was updated, I can remember that I at some point already had to deal with this and succeeded but I can't remember what it was and what I did back then. I thought that changing nvidia permissions solved it back then...

If anyone could help me I would be most grateful as I now have to work on my final thesis in windows and I miss the multiple desktops a lot.

If you need more specs, please ask.

Thanx a lot.

[edit]

I know it a permissions issue because everything works a root, the user is a member of the following groups:

"grep teek /etc/group" =>

wheel:x:10:root,teek
floppy:x:11:root,teek
audio:x:18:teek
cdrom:x:19:root,teek
video:x:27:root,teek
cdrw:x:80:root,teek
users:x:100:games,teek
nobody:x:65534:teek

[/edit]

Last edited by teek; 05-18-2005 at 07:20 PM.
 
Old 05-21-2005, 05:50 AM   #2
crm
Member
 
Registered: Apr 2004
Location: leeds - UK
Distribution: Gentoo Stage 1 on Riser FS 4
Posts: 204

Rep: Reputation: 30
the problem isnt just with dev/null
thwere are issues with dev pty aswell

running xterm as suid user form a root filsafe terminal (its the only way to get X for me) gives me:
sh-2.05b$ xterm
xterm: Error 32, errno 2: No such file or directory
Reason: get_pty: not enough ptys

i shall moosey over to the getntoo forums and try and pick my way through the newbie flaming to find an actual solution.

apparentally this is definatally a udev problem, with a wrong profile file... but as is power for the cource, no one tells anyone how to fix it... just links to threds where unlreated problems are solved.... i hope google still loves me.

Last edited by crm; 05-21-2005 at 06:05 AM.
 
Old 05-21-2005, 06:18 AM   #3
crm
Member
 
Registered: Apr 2004
Location: leeds - UK
Distribution: Gentoo Stage 1 on Riser FS 4
Posts: 204

Rep: Reputation: 30
Fixed!

VERY CAREFULLY!!!

insure that NOTHING will reboot your pc during this process or you will bring about the end of days (or brake your computer)

#emerge -C udev
#emerge udev
 
Old 05-24-2005, 10:43 AM   #4
teek
Member
 
Registered: Jun 2004
Location: The Netherlands; Dordrecht
Distribution: Arch (at the moment)
Posts: 110

Original Poster
Rep: Reputation: 16
Unhappy :(

I thried your sollution, doen't work for me

I tried to "strace 2>&1" to find out the system calls that X does (as a friend told me) but I didn't find anything in there but that is probably due to lack of knowledg on my side.

I will keep on trying and post it when I figure it out.

I just have to find out what permissions the users need, any tips for that anyone?

Was there a group added recently or something?
 
Old 05-25-2005, 07:15 AM   #5
teek
Member
 
Registered: Jun 2004
Location: The Netherlands; Dordrecht
Distribution: Arch (at the moment)
Posts: 110

Original Poster
Rep: Reputation: 16
"fixed it"

Ok, it is working now, I tried al sorts of stuff but what eventually worked was recompiling the kernel with devfs support and also enabling "mount automatically at boot".

To be honest I hate these kind of sollutions, its just not elegant but ok, everything works now although I get some "failed to copy" and:

"NVRM: loading NVIDIA Linux x86 NVIDIA Kernel Module 1.0-7174 Tue Mar 22 06:44:39 PST 2005
devfs_mk_dev: could not append to parent for nvidiactl
devfs_mk_dev: could not append to parent for nvidia0
NVRM: devfs register failed
devfs_mk_dev: could not append to parent for vcc/7
devfs_mk_dev: could not append to parent for vcc/a7"

error messages while booting but still, it works now. If anybody has a better sollution, please let me know, it was working before (with gentoo=nodevfs as a kernel boot option in grub).

Ok, good luck everbody with udev problems (ok also everybody with other problems )

Teek.
 
Old 08-25-2005, 05:45 PM   #6
sicsix6
LQ Newbie
 
Registered: Aug 2005
Location: Houston, Tx, USA
Distribution: Gentoo
Posts: 1

Rep: Reputation: 0
I was having the same problem, and I fixed it by updating everything in /etc/udev with its new ._cfg0000_* counterpart.

find /etc/udev -iname '._cfg????_*'
 
Old 09-01-2005, 07:18 AM   #7
teek
Member
 
Registered: Jun 2004
Location: The Netherlands; Dordrecht
Distribution: Arch (at the moment)
Posts: 110

Original Poster
Rep: Reputation: 16
reinstall fixed everything :)

Its an old problem, in the meanwhile I reinstalled everything from the / up (I emerged so many unstable things, it was becomming a mess). Everything just worked from then with just udev, no devfs anymore, I quess the transition devfs-udev somehow messed some things up...

Oh, and a tip (I also just recently figured out), if after emerging you get the message that you need to update config files just type "etc-update" (actually I now wonder whether this is installed by default or whether it is in the gentoolkit (which is emerged in a sec )), this program will present you with al the updated config files and lets you choose whether you want to update (which you usually want but maybe you want to study the old config file first).

Good luck!
 
Old 09-01-2005, 08:02 AM   #8
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,429

Rep: Reputation: 1055Reputation: 1055Reputation: 1055Reputation: 1055Reputation: 1055Reputation: 1055Reputation: 1055Reputation: 1055
Re: reinstall fixed everything :)

Quote:
Originally posted by teek
Oh, and a tip (I also just recently figured out), if after emerging you get the message that you need to update config files just type "etc-update" (actually I now wonder whether this is installed by default or whether it is in the gentoolkit
etc-update is *NOT* an "optional extra" - it comes with the base system, and it (or an equivalent) MUST be run if notified after each sync to ensure the integrity of your system.
And be *VERY* careful with it - it has marvellous potential to (also) trash your system if mis-used.

Also, udev is the future - I think devfs goes away completely in 2.6.13
 
Old 03-14-2006, 10:22 PM   #9
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 46
I recently turned on my /etc/rc.d/rc.udev script in Slackware-10.2 and got that error:

xterm: Error 32, errno 2: No such file or directory
Reason: get_pty: not enough ptys


It turns out the old /dev/pty's had 666 attributes and the new udev were 660 and had root:tty ownership.

So I just added myself to tty group in /etc/group file.
 
  


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
Udev upgrade breaks automounting memory cards on Gentoo FreeThinkerJim Linux - Hardware 2 05-27-2006 11:41 AM
udev update question (from Current Changelog) dhave Slackware 31 07-22-2005 08:49 PM
ipod with udev on gentoo Greg Haynes Linux - Hardware 5 04-01-2005 06:48 AM
FC3 ndiswrapper - not working after udev update? trey85stang Fedora 0 11-23-2004 10:21 PM
GENTOO.. "etc-update" versus Manual update opinions.. l0f33t Linux - Distributions 2 09-17-2003 05:16 AM


All times are GMT -5. The time now is 02:13 PM.

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