Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
feshinstall permissions /dev/urandom /console /null wrong
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Schnulli
Guru
Guru


Joined: 25 Jun 2010
Posts: 320
Location: Bremen DE

PostPosted: Sun Mar 19, 2017 2:55 am    Post subject: feshinstall permissions /dev/urandom /console /null wrong Reply with quote

HI all,
i installed a fresh gentoo box systemd, rebooted and the permissions on
/dev/urandom
/dev/console
/dev/null
areset wrong
What is going on there?
temporarily i have set them to ( and i am sure them are not set right)
#chmod 777 /dev/urandom /console and /null
and the phyton errors when installing more ebuilds are gone.....
Let me ask, what are the right permissions for this devices, i couldnt find them in the net are them "666" ?
i found at Arch Linux something pointing to this problem
https://archlinuxarm.org/forum/viewtopic.php?f=55&t=3076

Regards
Back to top
View user's profile Send private message
cboldt
l33t
l33t


Joined: 24 Aug 2005
Posts: 833

PostPosted: Sun Mar 19, 2017 11:40 am    Post subject: Reply with quote

I use the following for a new install:

Code:
mknod -m 600 /dev/console c 5 1
mknod -m 666 /dev/null c 1 3


/dev is otherwise totally empty, with all other devices being installed by the kernel and eudev
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43178
Location: 56N 3W

PostPosted: Sun Mar 19, 2017 12:21 pm    Post subject: Reply with quote

Schnulli,

The DEVTMPFS option in the kernel should create those /dev nodes correctly.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Schnulli
Guru
Guru


Joined: 25 Jun 2010
Posts: 320
Location: Bremen DE

PostPosted: Sun Mar 19, 2017 12:34 pm    Post subject: Reply with quote

Hi cboldt and Neddy,
usually the Kernel should but it dosnt in my case, i useed Kernel Source 4.9.6 and tryed genkernel latest what is masked... is genkernel the Problem?
Compiling the Kernel old way?
Still same problems on /urandom /null and i guess others as well with permissions denied
even setting the permissions with chmod dosnt work nor with mknod
again a sucking bug somewhere in Kernel or is it in deed genkernel?

yes, the DEVTMPFS in Kernel should and is set, but .......
for me there is just one answer, there must be a bug somewhere when creating DEVTMPFS

it sucks ^^
Back to top
View user's profile Send private message
cboldt
l33t
l33t


Joined: 24 Aug 2005
Posts: 833

PostPosted: Sun Mar 19, 2017 12:47 pm    Post subject: Reply with quote

I've built about half a dozen systems "from scratch" (starting with empty HD) in the past two months, and in every case, the two devices I mentioned have to be created manually, and they are the ONLY devices that had to be created manually. DEVTMPFS does the rest, except for transients that eudev handles.

The permissions for those two devices cause no trouble here.

In the kernel:

Code:
CONFIG_DEVTMPFS=y
CONFIG_DEVTMPFS_MOUNT=y


takes care of further populating /dev
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43178
Location: 56N 3W

PostPosted: Sun Mar 19, 2017 2:49 pm    Post subject: Reply with quote

Schnulli,

Is devfs in the sysinit runlevel?

There should be no need for any /dev entries to be created manually any more.
/dev is in tmpfs (RAM). Its new every boot.

What does
Code:
mount
show?
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 7089
Location: Saint Amant, Acadiana

PostPosted: Sun Mar 19, 2017 4:42 pm    Post subject: Reply with quote

systemd has sysinit runlevel?
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43178
Location: 56N 3W

PostPosted: Sun Mar 19, 2017 4:58 pm    Post subject: Reply with quote

Jaglover,

Thank you, I missed systemd. I would have stayed out this thread had I noticed.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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