On Tue, 2003-07-22 at 22:18, Russell Hires wrote:
> I've got a strange problem. The permissions for /dev/null are changing on me.
> The correct perms are:
> crw-rw-rw- 1 root root 1, 3 Jul 22 22:10 /dev/null
>
> but twice so far, in about two weeks, the perms changed to -rw-------
> I don't know why, and I don't know how to prevent this from happening. (It's
> surprising how many apps use /dev/null) Any one have a clue on this one?
What distro?
RedHat has the highly annoying (to me) habit of leaving everything 600
or 700 until someone logs in, then relies on PAM to reset the
permissions on certain files correctly for that user. It may be related
to this if you're running RedHat.
(It's annoying to me because it behaves differently depending on whether
you've logged into the console or remotely, and frequently I log in
remotely and expect to be able to use local devices, and don't feel like
tracking down every single config file that tells PAM what files to
change under what conditions. It also apparently sometimes doesn't
work.)
If you're not running RedHat, then I'm stumped. Something is clearly
changing it - look for apps that you're running with setuid root, or
look at CRON jobs to see if anything touches /dev/null that shouldn't.
-- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- "We all enter this world in the | Support Electronic Freedom same way: naked; screaming; soaked | http://www.eff.org/ in blood. But if you live your | http://www.anti-dmca.org/ life right, that kind of thing |--------------------------- doesn't have to stop there." -- Dana Gould
This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 19:45:45 EDT