View previous topic :: View next topic |
Author |
Message |
atemv n00b

Joined: 09 Aug 2014 Posts: 63
|
Posted: Mon Oct 19, 2015 6:34 pm Post subject: ACC permissions changed on /dev/null |
|
|
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 |
|
 |
khayyam Watchman


Joined: 07 Jun 2012 Posts: 6227 Location: Room 101
|
Posted: Mon Oct 19, 2015 7:38 pm Post subject: Re: ACC permissions changed on /dev/null |
|
|
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 |
|
 |
NeddySeagoon Administrator


Joined: 05 Jul 2003 Posts: 47128 Location: 56N 3W
|
Posted: Mon Oct 19, 2015 7:43 pm Post subject: |
|
|
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 |
|
 |
atemv n00b

Joined: 09 Aug 2014 Posts: 63
|
Posted: Tue Oct 20, 2015 10:14 am Post subject: |
|
|
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 |
|
 |
NeddySeagoon Administrator


Joined: 05 Jul 2003 Posts: 47128 Location: 56N 3W
|
Posted: Tue Oct 20, 2015 4:42 pm Post subject: |
|
|
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 |
|
 |
|