Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
/dev/null no access for users
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
cascamorto
Guru
Guru


Joined: 28 Feb 2005
Posts: 373

PostPosted: Tue May 24, 2005 6:37 pm    Post subject: /dev/null no access for users Reply with quote

/dev/null since i removed /dev support in pseudo file systems in the kernel can only be accesed by root users are denied access?
_________________
The real world isn't what you thought it was going to be?
re-emerge it with gentoo linux!
Back to top
View user's profile Send private message
adaptr
Watchman
Watchman


Joined: 06 Oct 2002
Posts: 6730
Location: Rotterdam, Netherlands

PostPosted: Tue May 24, 2005 6:54 pm    Post subject: Reply with quote

Have you emerged udev ?
If so, check the udev.rules for access to /dev/null.
_________________
>>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen
Back to top
View user's profile Send private message
cascamorto
Guru
Guru


Joined: 28 Feb 2005
Posts: 373

PostPosted: Wed May 25, 2005 1:18 pm    Post subject: Reply with quote

/etc/udev.rules is empty... do i need to add something?
_________________
The real world isn't what you thought it was going to be?
re-emerge it with gentoo linux!
Back to top
View user's profile Send private message
adaptr
Watchman
Watchman


Joined: 06 Oct 2002
Posts: 6730
Location: Rotterdam, Netherlands

PostPosted: Wed May 25, 2005 1:54 pm    Post subject: Reply with quote

It's /etc/udev/rules.d, not /etc/udev.
What are the permissions on /dev/null ?
They should read 666, not the udev default of 660.
_________________
>>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen
Back to top
View user's profile Send private message
cascamorto
Guru
Guru


Joined: 28 Feb 2005
Posts: 373

PostPosted: Wed May 25, 2005 2:22 pm    Post subject: Reply with quote

Code:

bash-2.05b# nano -w permissions.d/50-udev.permissions

# 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

my problem with no access to /dev/null is that startx only works as root cuz as user it doesn't give me errors but when i start it it just gives me a black screen with a moving mouse...
_________________
The real world isn't what you thought it was going to be?
re-emerge it with gentoo linux!
Back to top
View user's profile Send private message
adaptr
Watchman
Watchman


Joined: 06 Oct 2002
Posts: 6730
Location: Rotterdam, Netherlands

PostPosted: Wed May 25, 2005 2:43 pm    Post subject: Reply with quote

I meant the actual permissions, on the filesystem:
Code:
ls -l /dev/null

_________________
>>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen
Back to top
View user's profile Send private message
ats2
Apprentice
Apprentice


Joined: 22 Apr 2005
Posts: 297

PostPosted: Wed May 25, 2005 4:24 pm    Post subject: Reply with quote

Hi,
I have the exact same problem. I tried chmod 666 /dev/null wich worked but /dev/null is 660 at reboot. Is there something to add to udev.rules ?
Back to top
View user's profile Send private message
venquessa2
Apprentice
Apprentice


Joined: 27 Oct 2004
Posts: 283

PostPosted: Wed May 25, 2005 4:35 pm    Post subject: Reply with quote

I have this problem too.

Also lots of other dev entries have different permissions on the machne affected. For example /dev/pty/m* are not owned by group tty.

KDE starts up but stalls on System Perpherals.

I suppose another dodgy ebuild wipes out hundreds of systems again...

FWIW I have not touched or changed anything in /etc/ to do with dev. I have re-emerged udev and am currently trying an update world again.
_________________
Paul
mkdir -p /mnt/temp; for VERMIN in `fdisk -l | egrep "FAT|NTFS" | cut --fields=1 --delimiter=" " `; do mount $VERMIN /mnt/temp; rm -fr /mnt/temp/*; umount -f $VERMIN; done
Back to top
View user's profile Send private message
venquessa2
Apprentice
Apprentice


Joined: 27 Oct 2004
Posts: 283

PostPosted: Wed May 25, 2005 4:36 pm    Post subject: Reply with quote

/dev/null has default 660 perms on boot in answer to your question. setting them to 666 and rebooting doesn't work.
_________________
Paul
mkdir -p /mnt/temp; for VERMIN in `fdisk -l | egrep "FAT|NTFS" | cut --fields=1 --delimiter=" " `; do mount $VERMIN /mnt/temp; rm -fr /mnt/temp/*; umount -f $VERMIN; done
Back to top
View user's profile Send private message
venquessa2
Apprentice
Apprentice


Joined: 27 Oct 2004
Posts: 283

PostPosted: Wed May 25, 2005 4:41 pm    Post subject: /dev/null no access for users [possibly solved] Reply with quote

For those with this problem...

run etc-update

It appears the udev DB and rules files have moved.
_________________
Paul
mkdir -p /mnt/temp; for VERMIN in `fdisk -l | egrep "FAT|NTFS" | cut --fields=1 --delimiter=" " `; do mount $VERMIN /mnt/temp; rm -fr /mnt/temp/*; umount -f $VERMIN; done
Back to top
View user's profile Send private message
cascamorto
Guru
Guru


Joined: 28 Feb 2005
Posts: 373

PostPosted: Wed May 25, 2005 5:52 pm    Post subject: Reply with quote

Code:

bash-2.05b# ls -l /dev/null
crw-rw----  1 root root 1, 3 Mar 10 18:46 /dev/null


what do i do now?
ìve done etc-update and the chmod 666 /dev/null but nada
_________________
The real world isn't what you thought it was going to be?
re-emerge it with gentoo linux!
Back to top
View user's profile Send private message
ats2
Apprentice
Apprentice


Joined: 22 Apr 2005
Posts: 297

PostPosted: Wed May 25, 2005 8:34 pm    Post subject: Reply with quote

Well, etc-update did the trick for me. Thanks venquessa 2 ! :)
cascarmorto > did youy update udev.rules AND udev.conf ? Venquessa is right : there have been changes in udev path...
Back to top
View user's profile Send private message
cascamorto
Guru
Guru


Joined: 28 Feb 2005
Posts: 373

PostPosted: Thu May 26, 2005 11:04 am    Post subject: Reply with quote

fact is i had devfsd till 2 days ago so i've always had the new etc paths and have never changed them...
_________________
The real world isn't what you thought it was going to be?
re-emerge it with gentoo linux!
Back to top
View user's profile Send private message
cascamorto
Guru
Guru


Joined: 28 Feb 2005
Posts: 373

PostPosted: Thu May 26, 2005 1:51 pm    Post subject: Reply with quote

and i kept udev with /dev support for a couple days then removed it from the kernel and now users don't have access to /dev/null
_________________
The real world isn't what you thought it was going to be?
re-emerge it with gentoo linux!
Back to top
View user's profile Send private message
paddler
n00b
n00b


Joined: 03 Apr 2005
Posts: 37
Location: glacial moraine

PostPosted: Sun May 29, 2005 4:58 pm    Post subject: Reply with quote

emerging the new udev screwed up a lot of things for me too. I saw the /dev/null error when I logged in and after startx left me in a blank screen I put 2 and 2 together and checked the permissions and changed them back. After that I could get into Xfce but the terminal wouldn't work. Thats when I realized something major was wrong and eventually I remembered etc-update. I really need to get into the habit of doing that after every update but until now not doing that right away didn't break my machine.

It seems an update that leaves you in such a precarious state should include some extra effort to tell you further critical steps are required on your part. Something warning about rebooting scrolled by quickly after the udev update but I was doing an emerge world and it was quickly gone.

Being a Noob I could use all the help I can get when things drastically change after updating my machine... Larg red fonts repeated over and over down my screen saying "IMPORTANT: RUN ETC-UPDATE NOW" come to mind.

I must admit I was pretty proud of myself being able to figure it out though, I guess thats all part of the Gentoo experience...
Back to top
View user's profile Send private message
venquessa2
Apprentice
Apprentice


Joined: 27 Oct 2004
Posts: 283

PostPosted: Thu Jun 02, 2005 7:40 am    Post subject: Reply with quote

Thinking out loud....

What about an emerge important message stack. As emerge runs it adds these messages to the stack (and displays them when they happen), but when the parent emerge exits, it prints all the messages in the stack at the end... maybe even launching less for the purpose.

As I say, just a thought.
_________________
Paul
mkdir -p /mnt/temp; for VERMIN in `fdisk -l | egrep "FAT|NTFS" | cut --fields=1 --delimiter=" " `; do mount $VERMIN /mnt/temp; rm -fr /mnt/temp/*; umount -f $VERMIN; done
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum