1830239 Members
2204 Online
109999 Solutions
New Discussion

Permissions on /dev/null

 
Scott Hanson_1
Frequent Advisor

Permissions on /dev/null

Hello.

The permissions on /dev/null are being reset during reboot. Does anyone know how to stop this (apart from explicitly resetting the permissions).

Thanks.

Scott
4 REPLIES 4
John Poff
Honored Contributor

Re: Permissions on /dev/null

Hi,

What does your /dev/null look like after a reboot, and what are you resetting the permissions to?

JP
Scott Hanson_1
Frequent Advisor

Re: Permissions on /dev/null

We are resetting it to 666 but it keeps changing to 660.
Jean-Louis Phelix
Honored Contributor

Re: Permissions on /dev/null

Hi,

I did a 'chmod 777 /dev/null' and then executed a 'insf -e'. Now permissions are back to 666 ... Insf -e is sometimes called at reboot by ioinitrc (from inittab) but it depends on some tests.

Regards
It works for me (© Bill McNAMARA ...)
Pete Randall
Outstanding Contributor

Re: Permissions on /dev/null

Scott,

Maybe something is explicitly changing it. Try searching your startup scripts for a chmod:

find /sbin/init.d -exec grep -l "chmod" {} \;

You will find a few legitimate ones, but take a look at the ones you do get to see if any are altering /dev/null.

Pete

Pete