Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ACC permissions changed on /dev/null
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
atemv
n00b
n00b


Joined: 09 Aug 2014
Posts: 63

PostPosted: Mon Oct 19, 2015 6:34 pm    Post subject: ACC permissions changed on /dev/null Reply with quote

Hello evryone!

The ACC on my /dev/null chaged to:
Code:
-rw------- 1 root root 19 Oct 19 19:51 null

from the previous state what I can not recall.. maybe:
Code:
-rw-rw-rw- 1 root root 0 Oct 19 20:00 /dev/null


I fixed it with:
Code:
chmod 666 /dev/null


But I am more than curious about the reason...

Any suggestion?

Leads:
I established a very basic FIFO connection between Blender and Emacs when the problem occurred.
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Mon Oct 19, 2015 7:38 pm    Post subject: Re: ACC permissions changed on /dev/null Reply with quote

atemv wrote:
Code:
-rw------- 1 root root 19 Oct 19 19:51 null

atemv ... well, for whatever reason, its not a 'character device' (indicated by 'c' in the first field of the output).

Code:
# ls -l /dev/null
crw-rw-rw- 1 root root 1, 3 2015-10-05 08:45 /dev/null
# file /dev/null
/dev/null: character special (1/3)

I'm not sure how you are creating the device, perhaps your fifo clobbered it .... anyhow:

Code:
# mknod /dev/null c 1 3

HTH & best ... khay
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Mon Oct 19, 2015 7:43 pm    Post subject: Reply with quote

atemv,

Thats not fixed it, its marginally less broken.
Code:
 $ ls -l /dev/null
crw-rw-rw- 1 root root 1, 3 May 12  2013 /dev/null


/dev/null is a character special device. Thats the c in crw-rw-rw- above.
You have a normal file.

It you need to make any device nodes by hand, you must use mknod.
A reboot should fix it as for most users /dev is a fake filesystem in RAM and is recreated every boot.
_________________
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
atemv
n00b
n00b


Joined: 09 Aug 2014
Posts: 63

PostPosted: Tue Oct 20, 2015 10:14 am    Post subject: Reply with quote

NeddySeagoon wrote:
atemv,

/dev/null is a character special device. Thats the c in crw-rw-rw- above.
You have a normal file.


Thanks I got it, however I am very curious about the reason. I will tinker with similar things today, maybe it will reproduce the error.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Tue Oct 20, 2015 4:42 pm    Post subject: Reply with quote

atemv,

Whatever trashed your /dev/null was running as root, since it created a root owned ordinary file.
_________________
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 Networking & Security 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